WifiAwareManager.IsAvailable Property
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.
Returns the current status of Aware API: whether or not Aware is available.
public virtual bool IsAvailable { [Android.Runtime.Register("isAvailable", "()Z", "GetIsAvailableHandler", ApiSince=26)] [Android.Runtime.RequiresPermission("android.permission.ACCESS_WIFI_STATE")] get; }
[<get: Android.Runtime.Register("isAvailable", "()Z", "GetIsAvailableHandler", ApiSince=26)>]
[<get: Android.Runtime.RequiresPermission("android.permission.ACCESS_WIFI_STATE")>]
member this.IsAvailable : bool
Property Value
A boolean indicating whether the app can use the Aware API at this time (true) or not (false).
- Attributes
Remarks
Returns the current status of Aware API: whether or not Aware is available. To track changes in the state of Aware API register for the #ACTION_WIFI_AWARE_STATE_CHANGED
broadcast.
Java documentation for android.net.wifi.aware.WifiAwareManager.isAvailable()
.
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.