AwareResources.AvailablePublishSessionsCount Property

Definition

Return the number of Aware publish sessions which an app could create.

public int AvailablePublishSessionsCount { [Android.Runtime.Register("getAvailablePublishSessionsCount", "()I", "", ApiSince=31)] get; }
[<get: Android.Runtime.Register("getAvailablePublishSessionsCount", "()I", "", ApiSince=31)>]
member this.AvailablePublishSessionsCount : int

Property Value

A Non-negative integer, number of publish sessions that could be created.

Attributes

Remarks

Return the number of Aware publish sessions which an app could create. Please refer to the WifiAwareSession#publish(PublishConfig, DiscoverySessionCallback, Handler) to create a publish session.

Note that these resources aren't reserved - other apps could use them by the time you attempt to create a publish session.

Java documentation for android.net.wifi.aware.AwareResources.getAvailablePublishSessionsCount().

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