다음을 통해 공유


MediaRouter.AddCallback Method

Definition

Overloads

AddCallback(MediaRouteType, MediaRouter+Callback)

Add a callback to listen to events about specific kinds of media routes.

AddCallback(MediaRouteType, MediaRouter+Callback, MediaRouterCallbackFlags)

Add a callback to listen to events about specific kinds of media routes.

AddCallback(MediaRouteType, MediaRouter+Callback)

Add a callback to listen to events about specific kinds of media routes.

[Android.Runtime.Register("addCallback", "(ILandroid/media/MediaRouter$Callback;)V", "GetAddCallback_ILandroid_media_MediaRouter_Callback_Handler")]
public virtual void AddCallback (Android.Media.MediaRouteType types, Android.Media.MediaRouter.Callback? cb);
[<Android.Runtime.Register("addCallback", "(ILandroid/media/MediaRouter$Callback;)V", "GetAddCallback_ILandroid_media_MediaRouter_Callback_Handler")>]
abstract member AddCallback : Android.Media.MediaRouteType * Android.Media.MediaRouter.Callback -> unit
override this.AddCallback : Android.Media.MediaRouteType * Android.Media.MediaRouter.Callback -> unit

Parameters

types
MediaRouteType

Types of routes this callback is interested in

cb
MediaRouter.Callback

Callback to add

Attributes

Remarks

Java documentation for android.media.MediaRouter.addCallback(int, android.media.Callback).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

AddCallback(MediaRouteType, MediaRouter+Callback, MediaRouterCallbackFlags)

Add a callback to listen to events about specific kinds of media routes.

[Android.Runtime.Register("addCallback", "(ILandroid/media/MediaRouter$Callback;I)V", "GetAddCallback_ILandroid_media_MediaRouter_Callback_IHandler")]
public virtual void AddCallback (Android.Media.MediaRouteType types, Android.Media.MediaRouter.Callback? cb, Android.Media.MediaRouterCallbackFlags flags);
[<Android.Runtime.Register("addCallback", "(ILandroid/media/MediaRouter$Callback;I)V", "GetAddCallback_ILandroid_media_MediaRouter_Callback_IHandler")>]
abstract member AddCallback : Android.Media.MediaRouteType * Android.Media.MediaRouter.Callback * Android.Media.MediaRouterCallbackFlags -> unit
override this.AddCallback : Android.Media.MediaRouteType * Android.Media.MediaRouter.Callback * Android.Media.MediaRouterCallbackFlags -> unit

Parameters

types
MediaRouteType

Types of routes this callback is interested in

cb
MediaRouter.Callback

Callback to add

flags
MediaRouterCallbackFlags

Flags to control the behavior of the callback. May be zero or a combination of CallbackFlagPerformActiveScan and CallbackFlagUnfilteredEvents.

Attributes

Remarks

Java documentation for android.media.MediaRouter.addCallback(int, android.media.Callback).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to