Partager via


WifiAwareManager.IsDeviceAttached Property

Definition

Return the current status of the Aware service: whether or not the device is already attached to an Aware cluster.

public virtual bool IsDeviceAttached { [Android.Runtime.Register("isDeviceAttached", "()Z", "GetIsDeviceAttachedHandler", ApiSince=31)] [Android.Runtime.RequiresPermission("android.permission.ACCESS_WIFI_STATE")] get; }
[<get: Android.Runtime.Register("isDeviceAttached", "()Z", "GetIsDeviceAttachedHandler", ApiSince=31)>]
[<get: Android.Runtime.RequiresPermission("android.permission.ACCESS_WIFI_STATE")>]
member this.IsDeviceAttached : bool

Property Value

A boolean indicating whether the device is attached to a cluster at this time (true) or not (false).

Attributes

Remarks

Return the current status of the Aware service: whether or not the device is already attached to an Aware cluster. To attach to an Aware cluster, please use #attach(AttachCallback, Handler) or #attach(AttachCallback, IdentityChangedListener, Handler).

Java documentation for android.net.wifi.aware.WifiAwareManager.isDeviceAttached().

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