Language

PublishType Enum

Definition

public enum PublishType
type PublishType = 
Inheritance
PublishType

Fields

Name Value Description
Unsolicited 0

Defines an unsolicited publish session - a publish session where the publisher is advertising itself by broadcasting on-the-air. An unsolicited publish session is paired with a passive subscribe session SubscribeConfig.SUBSCRIBE_TYPE_PASSIVE. Configuration is done using PublishConfig.Builder.setPublishType(int).

Android reference for android.net.wifi.aware.PublishConfig.PUBLISH_TYPE_UNSOLICITED.

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.

Solicited 1

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).

Android reference for android.net.wifi.aware.PublishConfig.PUBLISH_TYPE_SOLICITED.

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.

Remarks

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