AudioView

Bottom auxiliary bar displayed when interacting with sound annotations. Provides buttons for recording/playing back SoundAnnotation as well as audio seek bar.

Constructors

Link copied to clipboard
constructor(@NonNull context: Context)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet, @AttrRes defStyleAttr: Int)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet, @AttrRes defStyleAttr: Int, @StyleRes defStyleRes: Int)

Types

Link copied to clipboard
Listener for the lifecycle of the AudioView.

Functions

Link copied to clipboard
Binds to audio playback controller.
Binds to audio recording controller.
Link copied to clipboard
Returns audio inspector height without any window insets (in immersive mode).
Link copied to clipboard
open fun hide(animate: Boolean)
Hides the audio view with an optional animation.
Link copied to clipboard
open fun isVisible(): Boolean
Indicates whether audio inspector is visible.
Link copied to clipboard
open fun onClick(v: View)
Handles click events on the audio view buttons (stop/close and play/record).
Link copied to clipboard
open fun setVisibility(visibility: Int)
Sets the visibility of this view.
Link copied to clipboard
open fun show(animate: Boolean)
Shows the audio view with an optional animation.
Link copied to clipboard
open fun unbindController()
Unbinds from controllers.