CollaborationStartingState

@Immutable
@PublicApi
@AutoValue
public abstract class CollaborationStartingState



Starting state of the add-on when the participant accepts the invitation to collaborate.

Summary

Constants

static final int

Maximum length of the additional data

static final int

Maximum length of the main stage URL and side panel URL.

Public constructors

Public methods

abstract @Nullable String

Returns data set by the add-on when the session started.

static CollaborationStartingState.Builder
abstract @Nullable Uri

Returns the URL that the main stage opens for users joining the collaboration.

abstract @Nullable Uri

Returns the URL that the side panel opens for users joining the collaboration.

Constants

MAX_ADDITIONAL_DATA_CHARS

public static final int MAX_ADDITIONAL_DATA_CHARS = 4096

Maximum length of the additional data

MAX_URL_CHARS

public static final int MAX_URL_CHARS = 512

Maximum length of the main stage URL and side panel URL.

Public constructors

CollaborationStartingState

public CollaborationStartingState()

Public methods

additionalData

public abstract @Nullable String additionalData()

Returns data set by the add-on when the session started. This may be used to share static state between session participants, such as an app-specific "session ID" value.

builder

public static CollaborationStartingState.Builder builder()

mainStageUrl

public abstract @Nullable Uri mainStageUrl()

Returns the URL that the main stage opens for users joining the collaboration.

sidePanelUrl

public abstract @Nullable Uri sidePanelUrl()

Returns the URL that the side panel opens for users joining the collaboration.