wrap

Wraps a String as an ActionValue.

Return

The ActionValue object.

Parameters

value

The action's value as a string.


fun wrap(value: Int): ActionValue(source)

Wraps an int as an ActionValue.

Return

The ActionValue object.

Parameters

value

The action's value as an int.


fun wrap(value: Long): ActionValue(source)

Wraps a long as an ActionValue.

Return

The ActionValue object.

Parameters

value

The action's value as a long.


fun wrap(value: Char): ActionValue(source)

Wraps a char as an ActionValue.

Return

The ActionValue object.

Parameters

value

The action's value as a char.


Wraps a boolean as an ActionValue.

Return

The ActionValue object.

Parameters

value

The action's value as a boolean.


Wraps a JsonSerializable object as an ActionValue.

Return

The ActionValue object.

Parameters

value

The action's value as a JsonSerializable object.


Wraps a com.urbanairship.json.JsonValue compatible object as an ActionValue.

Return

The ActionValue object.

Parameters

value

The action's value.

Throws

If the object is unable to be wrapped into an action value.