The Android Developer Challenge is back! Submit your idea before December 2.

KeyedAppStateBuilder

abstract class KeyedAppStateBuilder
kotlin.Any
   ↳ androidx.enterprise.feedback.KeyedAppState.KeyedAppStateBuilder

The builder for KeyedAppState.

Summary

Public methods

open KeyedAppState

Instantiate the KeyedAppState.

abstract KeyedAppState.KeyedAppStateBuilder
setData(@Nullable data: String?)

Set KeyedAppState#getData().

abstract KeyedAppState.KeyedAppStateBuilder
setKey(@NonNull key: String)

Set KeyedAppState#getKey().

abstract KeyedAppState.KeyedAppStateBuilder
setMessage(@Nullable message: String?)

Set KeyedAppState#getMessage().

abstract KeyedAppState.KeyedAppStateBuilder
setSeverity(severity: Int)

Set KeyedAppState#getSeverity().

Public methods

build

@NonNull open fun build(): KeyedAppState

Instantiate the KeyedAppState.

Severity will default to SEVERITY_INFO if not set.

Assumes the key is set, key length is at most 100 characters, message length is as most 1000 characters, data length is at most 1000 characters, and severity is set to either SEVERITY_INFO or SEVERITY_ERROR.

setData

@NonNull abstract fun setData(@Nullable data: String?): KeyedAppState.KeyedAppStateBuilder

Set KeyedAppState#getData().

setKey

@NonNull abstract fun setKey(@NonNull key: String): KeyedAppState.KeyedAppStateBuilder

Set KeyedAppState#getKey().

setMessage

@NonNull abstract fun setMessage(@Nullable message: String?): KeyedAppState.KeyedAppStateBuilder

Set KeyedAppState#getMessage().

setSeverity

@NonNull abstract fun setSeverity(severity: Int): KeyedAppState.KeyedAppStateBuilder

Set KeyedAppState#getSeverity().