PlaySynchronizerInterface

interface PlaySynchronizerInterface

Synchronize of the start, end and cancellation between associated plays. (Associated plays means that have equal dialogRequestId)

Types

Link copied to clipboard
interface Listener
Link copied to clipboard
interface OnRequestSyncListener
Link copied to clipboard
interface SynchronizeObject

The synchronize object to interact with PlaySynchronizerInterface

Functions

Link copied to clipboard
abstract fun addListener(listener: PlaySynchronizerInterface.Listener)

Add a listener

Link copied to clipboard
abstract fun cancelSync(dialogRequestId: String)

Cancel plays(synchronizeObject) with matching dialogRequestId

Link copied to clipboard
abstract fun prepareSync(synchronizeObject: PlaySynchronizerInterface.SynchronizeObject)

Notify that a synchronizeObject is preparing to start.

Link copied to clipboard
abstract fun releaseSync(synchronizeObject: PlaySynchronizerInterface.SynchronizeObject, listener: PlaySynchronizerInterface.OnRequestSyncListener? = null)

Notify that a synchronizeObject was finished.

Link copied to clipboard
abstract fun releaseSyncImmediately(synchronizeObject: PlaySynchronizerInterface.SynchronizeObject, listener: PlaySynchronizerInterface.OnRequestSyncListener? = null)

Notify that a synchronizeObject was stopped or canceled.

Link copied to clipboard
abstract fun removeListener(listener: PlaySynchronizerInterface.Listener)

Remove a listener

Link copied to clipboard
abstract fun startSync(synchronizeObject: PlaySynchronizerInterface.SynchronizeObject, listener: PlaySynchronizerInterface.OnRequestSyncListener? = null)

Notify that a synchronizeObject has been started.