KeyedAppState.KeyedAppStateBuilder
public
static
abstract
class
KeyedAppState.KeyedAppStateBuilder
extends Object
java.lang.Object | |
↳ | androidx.enterprise.feedback.KeyedAppState.KeyedAppStateBuilder |
The builder for KeyedAppState
.
Summary
Public methods | |
---|---|
KeyedAppState
|
build()
Instantiate the |
abstract
KeyedAppState.KeyedAppStateBuilder
|
setData(String data)
|
abstract
KeyedAppState.KeyedAppStateBuilder
|
setKey(String key)
|
abstract
KeyedAppState.KeyedAppStateBuilder
|
setMessage(String message)
|
abstract
KeyedAppState.KeyedAppStateBuilder
|
setSeverity(int severity)
|
Inherited methods | |
---|---|
Public methods
build
public KeyedAppState build ()
Instantiate the KeyedAppState
.
Severity will default to KeyedAppState.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 KeyedAppState.SEVERITY_INFO
or KeyedAppState.SEVERITY_ERROR
.
Returns | |
---|---|
KeyedAppState |
setData
public abstract KeyedAppState.KeyedAppStateBuilder setData (String data)
Parameters | |
---|---|
data |
String |
Returns | |
---|---|
KeyedAppState.KeyedAppStateBuilder |
setKey
public abstract KeyedAppState.KeyedAppStateBuilder setKey (String key)
Parameters | |
---|---|
key |
String |
Returns | |
---|---|
KeyedAppState.KeyedAppStateBuilder |
setMessage
public abstract KeyedAppState.KeyedAppStateBuilder setMessage (String message)
Set KeyedAppState.getMessage()
.
Parameters | |
---|---|
message |
String |
Returns | |
---|---|
KeyedAppState.KeyedAppStateBuilder |
setSeverity
public abstract KeyedAppState.KeyedAppStateBuilder setSeverity (int severity)
Set KeyedAppState.getSeverity()
.
Parameters | |
---|---|
severity |
int |
Returns | |
---|---|
KeyedAppState.KeyedAppStateBuilder |