getAllowedFeaturesAsFlow

fun getAllowedFeaturesAsFlow(    featureName: String,     coroutineScope: CoroutineScope,     getDisposable: (disposable: Disposable) -> Unit): StateFlow<Boolean>

Call this method to check whether the messaging feature is allowed or not.

See also

Parameters

featureName

A string marked with a custom annotation that represents the name of the feature whose allowability is being checked.

coroutineScope

An object that determines the scope of the coroutine that will be launched by the function.

getDisposable

A lambda function that takes a Disposable object as input and returns Unit. A Disposable is an object that can be used to dispose of resources when they are no longer needed.


fun getAllowedFeaturesAsFlow(    featureName: String,     coroutineScope: CoroutineScope,     lifecycleOwner: LifecycleOwner): StateFlow<Boolean>

Call this method to check whether the messaging feature is allowed or not.

See also

Parameters

featureName

A string marked with a custom annotation that represents the name of the feature whose allowability is being checked.

coroutineScope

An object that determines the scope of the coroutine that will be launched by the function.

lifecycleOwner

An object that has an associated lifecycle, such as an Activity or Fragment..