CollaborationStartingState

@Immutable
@PublicApi
@AutoValue
abstract class CollaborationStartingState


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

Summary

Constants

const Int

Maximum length of the additional data

const Int

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

Public constructors

Public functions

abstract String?

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

java-static CollaborationStartingState.Builder!
abstract Uri?

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

abstract Uri?

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

Constants

MAX_ADDITIONAL_DATA_CHARS

const val MAX_ADDITIONAL_DATA_CHARS = 4096: Int

Maximum length of the additional data

MAX_URL_CHARS

const val MAX_URL_CHARS = 512: Int

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

Public constructors

CollaborationStartingState

CollaborationStartingState()

Public functions

additionalData

abstract fun additionalData(): String?

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

java-static fun builder(): CollaborationStartingState.Builder!

mainStageUrl

abstract fun mainStageUrl(): Uri?

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

sidePanelUrl

abstract fun sidePanelUrl(): Uri?

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