INNER CODE UNIT · Swift

invokeListenerPlayPause

florent37/Flutter-AssetsAudioPlayer · darwin/Classes/Music.swift:213

    func invokeListenerPlayPause(){
        self.channel.invokeMethod(Music.METHOD_PLAY_OR_PAUSE, arguments: [])
    }
    
    func invokeListenerStop(){
        self.channel.invokeMethod(Music.METHOD_CURRENT, arguments: nil)
    }
    
    func setupMediaPlayerNotificationView(notificationSettings: NotificationSettings, audioMetas: AudioMetas, isPlaying: Bool) {
        self.notificationSettings = notificationSettings
        self.audioMetas = audioMetas
        
        UIApplication.shared.beginReceivingRemoteControlEvents()
        let commandCenter = MPRemoteCommandCenter.shared()
        
        // Fallback on earlier versions
        
        

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…