public class NewSurface implements HelperIntent
Helper intent response to request user to transfer to another surface with the specified capabilities. For example, the user may need to continue the conversation on a device with a screen output.
More details here.
Usage:
ResponseBuilder responseBuilder = getResponseBuilder();
responseBuilder.add(new NewSurface(
Capability.SCREEN_OUTPUT.getValue(),
"To show you an image",
"Check out this image"));
Constructor and Description |
---|
NewSurface()
Helper intent response to request user to transfer to another surface with
the specified capabilities. For example, the user may need to continue the
conversation on a device with a screen output.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
java.util.Map<java.lang.String,java.lang.Object> |
getParameters() |
NewSurface |
setCapabilities(java.util.List<java.lang.String> capabilities) |
NewSurface |
setCapability(java.lang.String capability) |
NewSurface |
setContext(java.lang.String context) |
NewSurface |
setNotificationTitle(java.lang.String notificationTitle) |
getName, getParameters
public NewSurface()
Helper intent response to request user to transfer to another surface with the specified capabilities. For example, the user may need to continue the conversation on a device with a screen output.
More details here.
Usage:
ResponseBuilder responseBuilder = getResponseBuilder();
responseBuilder.add(new NewSurface(
Capability.SCREEN_OUTPUT.getValue(),
"To show you an image",
"Check out this image"));
public NewSurface setCapabilities(java.util.List<java.lang.String> capabilities)
public NewSurface setCapability(java.lang.String capability)
public NewSurface setContext(java.lang.String context)
public NewSurface setNotificationTitle(java.lang.String notificationTitle)
public java.lang.String getName()
public java.util.Map<java.lang.String,java.lang.Object> getParameters()