STWMyBusinessSettingsApi

object STWMyBusinessSettingsApi : ObservableApi

Properties

Link copied to clipboard
const val CLASS_NAME: String

Functions

Link copied to clipboard
suspend fun enableProcessAutoSave(context: Context, enable: Boolean): ApiResult<Any?>

Call this function to enable/disable the process auto-save.

Link copied to clipboard
fun getAllowedFeaturesAsFlow(    featureName: String,     coroutineScope: CoroutineScope,     lifecycleOwner: LifecycleOwner): StateFlow<Boolean>
fun getAllowedFeaturesAsFlow(    featureName: String,     coroutineScope: CoroutineScope,     getDisposable: (disposable: Disposable) -> Unit): StateFlow<Boolean>

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

Link copied to clipboard
fun getMyBusinessAutoDeletionPeriod(context: Context): MBAutoDeletionPeriod

Gets MyBusiness process Auto-Deletion period

Link copied to clipboard
fun getProcessAutoSaveInterval(context: Context): Long

Call this function to retrieve the process auto-save interval value (minutes)

Link copied to clipboard
fun isAutoCompleteAllowed(context: Context): Boolean

Check whether process auto completion is allowed or not

Link copied to clipboard
fun isMyBusinessAllowed(context: Context): Boolean

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

Link copied to clipboard
fun isMyBusinessAutoDeletionEnabled(context: Context): Boolean

Call this method to check whether the MyBusiness process Auto-Deletion feature is enabled or not

Link copied to clipboard
fun isProcessAutoSaveEnabled(context: Context): Boolean

Call this function to check if the process auto-save option is enabled or not

Link copied to clipboard
fun setMyBusinessAutoDeletionEnabled(context: Context, enabled: Boolean)

Call this method to enabled or disable the MyBusiness process Auto-Deletion feature

fun setMyBusinessAutoDeletionEnabled(    context: Context,     enabled: Boolean,     period: MBAutoDeletionPeriod)

Call this method to enabled or disable the MyBusiness process Auto-Deletion feature with the possibility of defining the period

Link copied to clipboard
fun setMyBusinessAutoDeletionPeriod(context: Context, period: MBAutoDeletionPeriod)

Set the MyBusiness process Auto-Deletion period, If My business auto deletion is already enabled, the automatic deletion will be re-configured automatically Otherwise, only the new period will be saved as well

Inherited functions

Link copied to clipboard
fun subscribe(listener: STWEventListener<STWEvent>): Disposable
Link copied to clipboard
fun subscribeFor(eventTypes: Array<Class<out STWEvent>>, listener: STWEventListener<STWEvent>): Disposable
fun subscribeFor(eventTypes: Array<String>, listener: STWEventListener<STWEvent>): Disposable

Subscribes to the specific eventTypes of the client.

fun subscribeFor(    lifecycleOwner: LifecycleOwner,     eventTypes: Array<Class<out STWEvent>>,     listener: STWEventListener<STWEvent>): Disposable
fun subscribeFor(    lifecycleOwner: LifecycleOwner,     eventTypes: Array<String>,     listener: STWEventListener<STWEvent>): Disposable

Subscribes to the specific eventTypes of the client, in the lifecycle of lifecycleOwner.

fun subscribeFor(    eventTypes: Array<String>,     filter: (STWEvent) -> Boolean,     listener: STWEventListener<STWEvent>): Disposable

Subscribes to the specific eventTypes of the client with additional filter.

fun subscribeFor(    lifecycleOwner: LifecycleOwner,     eventTypes: Array<String>,     filter: (STWEvent) -> Boolean,     listener: STWEventListener<STWEvent>): Disposable

Subscribes to the specific eventTypes of the client with additional filter, in the lifecycle of lifecycleOwner.

Link copied to clipboard
fun <T : STWEvent> subscribeForSingle(eventType: Class<T>, listener: STWEventListener<T>): Disposable
fun subscribeForSingle(eventType: String, listener: STWEventListener<STWEvent>): Disposable

Subscribes for the next event with the given eventType.

fun subscribeForSingle(    eventType: String,     filter: (STWEvent) -> Boolean,     listener: STWEventListener<STWEvent>): Disposable

Subscribes for the next event with the given eventType with additional filter.