PublishConfig
class PublishConfig : Parcelable
Defines the configuration of an Aware publish session. Built using PublishConfig.Builder
. A publish session is created using WifiAwareSession#publish(PublishConfig, DiscoverySessionCallback,
or updated using PublishDiscoverySession#updatePublish(PublishConfig)
.
Summary
Constants |
static Int |
Defines a solicited publish session - a publish session which is silent, waiting for a matching active subscribe session - and responding to it in unicast.
|
static Int |
Defines an unsolicited publish session - a publish session where the publisher is advertising itself by broadcasting on-the-air.
|
Inherited constants |
From class Parcelable
Int |
CONTENTS_FILE_DESCRIPTOR
Descriptor bit used with describeContents() : indicates that the Parcelable object's flattened representation includes a file descriptor.
|
Int |
PARCELABLE_WRITE_RETURN_VALUE
Flag for use with writeToParcel : the object being written is a return value, that is the result of a function such as "Parcelable someFunction() ", "void someFunction(out Parcelable) ", or "void someFunction(inout Parcelable) ". Some implementations may want to release resources at this point.
|
|
Constants
PUBLISH_TYPE_SOLICITED
static val PUBLISH_TYPE_SOLICITED: Int
Defines a solicited publish session - a publish session which is silent, waiting for a matching active subscribe session - and responding to it in unicast. A solicited publish session is paired with an active subscribe session SubscribeConfig#SUBSCRIBE_TYPE_ACTIVE
. Configuration is done using PublishConfig.Builder#setPublishType(int)
.
Value: 1
Public methods
describeContents
fun describeContents(): Int
equals
fun equals(other: Any?): Boolean
Parameters |
obj |
the reference object with which to compare. |
Return |
Boolean |
true if this object is the same as the obj argument; false otherwise. |
getInstantCommunicationBand
fun getInstantCommunicationBand(): Int
Get the Wi-Fi band for instant communication mode for this publish session
getPairingConfig
fun getPairingConfig(): AwarePairingConfig?
Get the Aware Pairing config for this publish session
hashCode
fun hashCode(): Int
Return |
Int |
a hash code value for this object. |
isInstantCommunicationModeEnabled
fun isInstantCommunicationModeEnabled(): Boolean
Check if instant communication mode is enabled for this publish session.
Return |
Boolean |
true for enabled, false otherwise. |
toString
fun toString(): String
Return |
String |
a string representation of the object. |
Properties