Google is committed to advancing racial equity for Black communities. See how.


public final class Actions extends Object

Provides convenience methods to construct common type of actions.

Public Constructor Summary

Public Method Summary

static Action
newView(String name, String url)
Constructs a "view" action.

Inherited Method Summary

Public Constructors

public Actions ()

Public Methods

public static Action newView (String name, String url)

Constructs a "view" action.

name The name of the object being viewed (e.g. the title of an article).
url The URL of the object that is viewed (this URL needs to be handled by the app to take the user to the right place).