Stay organized with collections
Save and categorize content based on your preferences.
ScanRequest
class ScanRequest
Represents a set of parameters for scanning requests.
See requestScan(android.media.MediaRouter2.ScanRequest)
for more details.
Summary
Public methods |
Boolean |
Returns whether the scan request corresponds to a screen-off scan.
|
Public methods
isScreenOffScan
fun isScreenOffScan(): Boolean
Returns whether the scan request corresponds to a screen-off scan.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# MediaRouter2.ScanRequest\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nScanRequest\n===========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/media/MediaRouter2.ScanRequest \"View this page in Java\") \n\n```\nclass ScanRequest\n```\n\n|---|---------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.media.MediaRouter2.ScanRequest](#) |\n\nRepresents a set of parameters for scanning requests.\n\nSee [requestScan(android.media.MediaRouter2.ScanRequest)](/reference/kotlin/android/media/MediaRouter2#requestScan(android.media.MediaRouter2.ScanRequest)) for more details.\n\nSummary\n-------\n\n| Nested classes ||\n|---|-----------------------------------------------------------------------------------------------------------------|\n| | [Builder](/reference/kotlin/android/media/MediaRouter2.ScanRequest.Builder) Builder class for [ScanRequest](#). |\n\n| Public methods ||\n|------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [isScreenOffScan](#isScreenOffScan())`()` Returns whether the scan request corresponds to a screen-off scan. |\n\nPublic methods\n--------------\n\n### isScreenOffScan\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun isScreenOffScan(): Boolean\n```\n\nReturns whether the scan request corresponds to a screen-off scan. \n**See Also**\n\n- [#requestScan(ScanRequest)](/reference/kotlin/android/media/MediaRouter2#requestScan(android.media.MediaRouter2.ScanRequest))"]]