MediaSession.Callback.OnCustomAction(String, Bundle) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當需要 MediaController 執行某件事 PlaybackState.CustomAction 時,才會被打電話。
[Android.Runtime.Register("onCustomAction", "(Ljava/lang/String;Landroid/os/Bundle;)V", "GetOnCustomAction_Ljava_lang_String_Landroid_os_Bundle_Handler")]
public virtual void OnCustomAction(string action, Android.OS.Bundle? extras);
[<Android.Runtime.Register("onCustomAction", "(Ljava/lang/String;Landroid/os/Bundle;)V", "GetOnCustomAction_Ljava_lang_String_Landroid_os_Bundle_Handler")>]
abstract member OnCustomAction : string * Android.OS.Bundle -> unit
override this.OnCustomAction : string * Android.OS.Bundle -> unit
參數
- action
- String
原本傳送在 PlaybackState.CustomAction.
- extras
- Bundle
可選附加功能由 MediaController.
- 屬性
備註
當需要 MediaController 執行某件事 PlaybackState.CustomAction 時,才會被打電話。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。