Added in API level 28

Stage

class Stage
kotlin.Any
   ↳ android.media.audiofx.DynamicsProcessing.Stage

base class for the different stages.

Summary

Public constructors
Stage(inUse: Boolean, enabled: Boolean)

Class constructor for stage

Public methods
open Boolean

returns enabled state of the stage

open Boolean

returns inUse state of the stage.

open Unit
setEnabled(enabled: Boolean)

sets enabled state of the stage

open String

Public constructors

Stage

Added in API level 28
Stage(
    inUse: Boolean,
    enabled: Boolean)

Class constructor for stage

Parameters
inUse Boolean: true if this stage is set to be used. False otherwise. Stages that are not set "inUse" at initialization time are not available to be used at any time.
enabled Boolean: true if this stage is currently used to process sound. When disabled, the stage is bypassed and the sound is copied unaltered from input to output.

Public methods

isEnabled

Added in API level 28
open fun isEnabled(): Boolean

returns enabled state of the stage

Return
Boolean true if stage is enabled for processing, false otherwise

isInUse

Added in API level 28
open fun isInUse(): Boolean

returns inUse state of the stage.

Return
Boolean inUse state of the stage. True if this stage is currently used to process sound. When false, the stage is bypassed and the sound is copied unaltered from input to output.

setEnabled

Added in API level 28
open fun setEnabled(enabled: Boolean): Unit

sets enabled state of the stage

Parameters
enabled Boolean: true for enabled, false otherwise

toString

Added in API level 28
open fun toString(): String
Return
String a string representation of the object.