Partager via


MediaRouter.CallbackFlagPerformActiveScan Field

Definition

Caution

This constant will be removed in the future version. Use Android.Media.MediaRouterCallbackFlags enum directly instead of this field.

Flag for #addCallback: Actively scan for routes while this callback is registered.

[Android.Runtime.Register("CALLBACK_FLAG_PERFORM_ACTIVE_SCAN")]
[System.Obsolete("This constant will be removed in the future version. Use Android.Media.MediaRouterCallbackFlags enum directly instead of this field.", true)]
public const Android.Media.MediaRouterCallbackFlags CallbackFlagPerformActiveScan = 1;
[<Android.Runtime.Register("CALLBACK_FLAG_PERFORM_ACTIVE_SCAN")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Media.MediaRouterCallbackFlags enum directly instead of this field.", true)>]
val mutable CallbackFlagPerformActiveScan : Android.Media.MediaRouterCallbackFlags

Field Value

Value = 1
Attributes

Remarks

Flag for #addCallback: Actively scan for routes while this callback is registered.

When this flag is specified, the media router will actively scan for new routes. Certain routes, such as wifi display routes, may not be discoverable except when actively scanning. This flag is typically used when the route picker dialog has been opened by the user to ensure that the route information is up to date.

Active scanning may consume a significant amount of power and may have intrusive effects on wireless connectivity. Therefore it is important that active scanning only be requested when it is actually needed to satisfy a user request to discover and select a new route.

Java documentation for android.media.MediaRouter.CALLBACK_FLAG_PERFORM_ACTIVE_SCAN.

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