Udostępnij za pośrednictwem


CompanionDeviceManager.ResultDiscoveryTimeout Field

Definition

Caution

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

The result code to propagate back to the user activity, indicates the association dialog is dismissed if there's no device found after 20 seconds.

[Android.Runtime.Register("RESULT_DISCOVERY_TIMEOUT", ApiSince=34)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Companion.CompanionDeviceResult enum directly instead of this field.", true)]
public const Android.Companion.CompanionDeviceResult ResultDiscoveryTimeout = 2;
[<Android.Runtime.Register("RESULT_DISCOVERY_TIMEOUT", ApiSince=34)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Companion.CompanionDeviceResult enum directly instead of this field.", true)>]
val mutable ResultDiscoveryTimeout : Android.Companion.CompanionDeviceResult

Field Value

Value = 2
Attributes

Remarks

The result code to propagate back to the user activity, indicates the association dialog is dismissed if there's no device found after 20 seconds.

Java documentation for android.companion.CompanionDeviceManager.RESULT_DISCOVERY_TIMEOUT.

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