MediaRouter2.ScanRequest.Builder.SetScreenOffScan(Boolean) 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.
Sets whether the app is requesting to scan even while the screen is off, bypassing default scanning restrictions.
[Android.Runtime.Register("setScreenOffScan", "(Z)Landroid/media/MediaRouter2$ScanRequest$Builder;", "", ApiSince=35)]
public Android.Media.MediaRouter2.ScanRequest.Builder SetScreenOffScan(bool isScreenOffScan);
[<Android.Runtime.Register("setScreenOffScan", "(Z)Landroid/media/MediaRouter2$ScanRequest$Builder;", "", ApiSince=35)>]
member this.SetScreenOffScan : bool -> Android.Media.MediaRouter2.ScanRequest.Builder
Parameters
- isScreenOffScan
- Boolean
Returns
- Attributes
Remarks
Sets whether the app is requesting to scan even while the screen is off, bypassing default scanning restrictions. Only apps holding Manifest.permission.MEDIA_ROUTING_CONTROL or Manifest.permission.MEDIA_CONTENT_CONTROL should set this to true.
Android reference for android.media.MediaRouter2.ScanRequest.Builder.setScreenOffScan.
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.