MediaRouter.AddCallback MediaRouter.AddCallback Method

Definition

Overloads

AddCallback(MediaRouteType, MediaRouter+Callback) AddCallback(MediaRouteType, MediaRouter+Callback)

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

AddCallback(MediaRouteType, MediaRouter+Callback, MediaRouterCallbackFlags) AddCallback(MediaRouteType, MediaRouter+Callback, MediaRouterCallbackFlags)

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

AddCallback(MediaRouteType, MediaRouter+Callback) 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);
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 MediaRouteType

Types of routes this callback is interested in

Remarks

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.

AddCallback(MediaRouteType, MediaRouter+Callback, MediaRouterCallbackFlags) 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", ApiSince=18)]
public virtual void AddCallback (Android.Media.MediaRouteType types, Android.Media.MediaRouter.Callback cb, Android.Media.MediaRouterCallbackFlags flags);
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 MediaRouteType

Types of routes this callback is interested in

flags
MediaRouterCallbackFlags MediaRouterCallbackFlags

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

Remarks

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