getState

open fun <S : AvailabilityState?> getState(stateType: Class<S>, defaultState: S): S

Return AvailabilityState information for the application.

Return

the readiness state

Parameters

<S>

the state type

stateType

the state type

defaultState

the default state to return if no event of the given type hasbeen published yet (must not be null).

See also


open fun <S : AvailabilityState?> getState(stateType: Class<S>): S

Return AvailabilityState information for the application.

Return

the readiness state or null if no event of the given type has beenpublished yet

Parameters

<S>

the state type

stateType

the state type

See also