Represents a co-doing session.
Public Method Summary
abstract void |
broadcastStateUpdate(CoDoingState
updatedCoDoingState)
Broadcasts state to all other current participants, and becomes the default
state for any participants until some other state is broadcast.
|
Public Methods
public abstract void broadcastStateUpdate (CoDoingState updatedCoDoingState)
Broadcasts state to all other current participants, and becomes the default state for any participants until some other state is broadcast.
Note: This shared state is eventually consistent across participants. For predictable behavior, this binary state should be complete state, not partial, as the Live Sharing SDK does not provide guarantees around the delivery of individual messages -- only eventual consistency.
Note: In a race condition where two participants call this method simultaneously, the Live Sharing SDK will select a canonical winning update. The losing update may or may not be applied to participants, but the winning update will always be applied later.
Parameters
updatedCoDoingState | the updated activity state that will be broadcast to other participants. |
---|
Throws
NullPointerException | if updatedCoDoingState is null. |
---|---|
LiveSharingException | if there was an unexpected error. |
IllegalStateException | if called after the co-doing session has ended. |