ActionResult.Builder


public static final class ActionResult.Builder
extends Object

java.lang.Object
   ↳ android.companion.ActionResult.Builder


Builder for creating an ActionResult.

Summary

Public constructors

Builder(int action, int resultCode)

Public methods

ActionResult build()

Builds the ActionResult object.

Inherited methods

Public constructors

Builder

public Builder (int action, 
                int resultCode)

Parameters
action int: The action this result is for, e.g. ActionRequest.REQUEST_NEARBY_SCANNING.
Value is one of the following:
resultCode int: The result code for this result.
Value is one of the following:

Public methods

build

public ActionResult build ()

Builds the ActionResult object.

Returns
ActionResult This value cannot be null.