MediaRouter.AddCallback Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
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.