AwareResources


public final class AwareResources
extends Object implements Parcelable

java.lang.Object
   ↳ android.net.wifi.aware.AwareResources


The resources of the Aware service.

Summary

Inherited constants

Fields

public static final Creator<AwareResources> CREATOR

Public constructors

AwareResources(int availableDataPathsCount, int availablePublishSessionsCount, int availableSubscribeSessionsCount)

Construct a AwareResources object, which represents the currently available Aware resources.

Public methods

int describeContents()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

int getAvailableDataPathsCount()

Return the number of Aware data-paths (also known as NDPs - NAN Data Paths) which an app could create.

int getAvailablePublishSessionsCount()

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

int getAvailableSubscribeSessionsCount()

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

void writeToParcel(Parcel des