MaestroEventInterface

This is the public API that the app can use to make calls to the SDK related to the currently-loaded event.

Functions

Link copied to clipboard
abstract fun clipDidFailToPlay(index: Int)

Tells the SDK that the user tried to play the clip but it failed to play back.

Link copied to clipboard
abstract fun didHideOverlay()
Link copied to clipboard
abstract fun didHidePanel()

Tells the SDK that the app hid the MaestroPanel.

Link copied to clipboard
abstract fun didShowOverlay()
Link copied to clipboard
abstract fun didShowPanel(maestroPanelType: MaestroPanelType)

Tells the SDK that the app displayed the MaestroPanel.

Link copied to clipboard
abstract fun didStartPlayingClip(index: Int)

Tells the SDK that the user just started playing a new key play clip at the given index.

Link copied to clipboard
abstract fun didStopPlayingClip(index: Int)

Tells the SDK that the user just stopped playing a key play clip at the given index.

Link copied to clipboard
abstract fun didUpdatePlaybackProgressOfClip(index: Int, progress: Float)

Updates the SDK with the latest progress in the playback of the currently-played key play clip, from 0 to 1.

Link copied to clipboard
abstract fun getCurrentClipPlaybackProgress(): StateFlow<Float>

Retrieves the progress (between 0 and 1) of the currently-played key play clip.

Link copied to clipboard
abstract fun getCurrentEventID(): StateFlow<String?>

Retrieves the event ID for the currently loaded event.

Link copied to clipboard
abstract fun getCurrentlyPlayingClipIndex(): StateFlow<Int>

Retrieves the array index of the key play clip that is currently being played.

Link copied to clipboard
abstract fun getKeyPlaysCount(): StateFlow<Int>

Retrieves the number of key plays.

Link copied to clipboard
abstract fun getLastPlayedClipIndex(): StateFlow<Int?>

Retrieves the array index of the key plays clip that was most recently played.

Link copied to clipboard
abstract fun onKeyPlayFocusChanged(index: Int)

Tells the SDK that the keyplay with index index needs to gain focus