Class Action.Builder

  • Enclosing class:
    Action

    public static class Action.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder​(String title,
                       int entityIdentifier)
        Builds an action with all required properties, ready to build(). Most extensions will want to add a viewIntent(android.content.Intent).
        Parameters:
        title - The title to be used for the user-visible button.
        entityIdentifier - The entity identifier of the update request this action is published for.
    • Method Detail

      • viewIntent

        public Action.Builder viewIntent​(Intent viewIntent)
        Sets the (optional) activity Intent that will be started when the user clicks the button for the action.

        The activity that this intent resolves to must have android:exported set to true.

      • build

        public Action build()