Język

BluetoothAdapter.DiscoverableTimeout Property

Definition

Get the timeout duration of the SCAN_MODE_CONNECTABLE_DISCOVERABLE.

public Java.Time.Duration? DiscoverableTimeout { [Android.Runtime.Register("getDiscoverableTimeout", "()Ljava/time/Duration;", "", ApiSince=33)] [Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_SCAN")] get; }
[<get: Android.Runtime.Register("getDiscoverableTimeout", "()Ljava/time/Duration;", "", ApiSince=33)>]
[<get: Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_SCAN")>]
member this.DiscoverableTimeout : Java.Time.Duration

Property Value

the duration of the discoverable timeout or null if an error has occurred

Attributes

Remarks

Get the timeout duration of the SCAN_MODE_CONNECTABLE_DISCOVERABLE. For apps targeting Build.VERSION_CODES.S or or higher, this requires the Manifest.permission.BLUETOOTH_SCAN permission which can be gained with android.app.Activity.requestPermissions(String[],int). Requires Manifest.permission.BLUETOOTH_SCAN

Android reference for android.bluetooth.BluetoothAdapter.getDiscoverableTimeout.

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