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

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 KeyedAppState.

abstract KeyedAppState.KeyedAppStateBuilder setData(String data)

Set KeyedAppState.getData().

abstract KeyedAppState.KeyedAppStateBuilder setKey(String key)

Set KeyedAppState.getKey().

abstract KeyedAppState.KeyedAppStateBuilder setMessage(String message)

Set KeyedAppState.getMessage().

abstract KeyedAppState.KeyedAppStateBuilder setSeverity(int severity)

Set KeyedAppState.getSeverity().

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)

Set KeyedAppState.getData().

Parameters
data String

Returns
KeyedAppState.KeyedAppStateBuilder

setKey

public abstract KeyedAppState.KeyedAppStateBuilder setKey (String key)

Set KeyedAppState.getKey().

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