public enum AlexaScope extends Enum<AlexaScope>
Enum Constant and Description |
---|
APPLICATION
State saved in this scope is shared across the whole application (skill) by all users
|
SESSION
State saved in this scope is persistent throughout a single user session in a skill and
won't be saved permanently.
|
USER
State saved in this scope is shared across all sessions by an Amazon user (amzn-user-id)
|
Modifier and Type | Method and Description |
---|---|
boolean |
excludes(AlexaScope scope)
Checks if the given scope is not covered by this scope.
|
int |
getValue() |
boolean |
includes(AlexaScope scope)
Checks if the given scope is covered by this scope.
|
boolean |
isIn(AlexaScope... scopes) |
static AlexaScope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AlexaScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AlexaScope SESSION
public static final AlexaScope USER
public static final AlexaScope APPLICATION
public static AlexaScope[] values()
for (AlexaScope c : AlexaScope.values()) System.out.println(c);
public static AlexaScope valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
public boolean includes(AlexaScope scope)
scope
- The scope to test for coverage by this scopepublic boolean isIn(AlexaScope... scopes)
public boolean excludes(AlexaScope scope)
scope
- The scope to test for coverage by this scopeCopyright © 2017. All rights reserved.