java.lang.Object | |
↳ | com.urbanairship.automation.Audience |
Audience conditions for an in-app message. Audiences are normally only validated at display time, and if the audience is not met, the in-app message will not be displayed.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
class | Audience.Builder | Audience builder. | |||||||||
@interface | Audience.MissBehavior |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | MISS_BEHAVIOR_CANCEL | Cancel the message's schedule when the audience check fails. | |||||||||
String | MISS_BEHAVIOR_PENALIZE | Skip and penalize the message's schedule when the audience check fails. | |||||||||
String | MISS_BEHAVIOR_SKIP | Skip the message's schedule when the audience check fails. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Audience(AudienceSelector selector)
Default constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean | equals(Object o) | ||||||||||
static Audience |
fromJson(JsonValue value)
Parses the json value.
| ||||||||||
AudienceSelector | getAudienceSelector() | ||||||||||
Boolean |
getLocationOptIn()
Gets the location opt-in status.
| ||||||||||
String |
getMissBehavior()
Gets the audience miss behavior.
| ||||||||||
Boolean |
getNewUser()
Gets the new user status.
| ||||||||||
Boolean |
getNotificationsOptIn()
Gets the notification opt-in status.
| ||||||||||
JsonPredicate |
getPermissionsPredicate()
Gets the permissions predicate.
| ||||||||||
Boolean |
getRequiresAnalytics()
Gets the requires analytics flag.
| ||||||||||
TagSelector |
getTagSelector()
Gets the tag selector.
| ||||||||||
JsonPredicate |
getVersionPredicate()
Gets the app version predicate.
| ||||||||||
int | hashCode() | ||||||||||
static Audience.Builder |
newBuilder()
Builder factory method.
| ||||||||||
JsonValue |
toJsonValue()
Returns the objects represented as a JsonValue.
| ||||||||||
String | toString() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.urbanairship.json.JsonSerializable
|
Cancel the message's schedule when the audience check fails.
Skip and penalize the message's schedule when the audience check fails.
Skip the message's schedule when the audience check fails.
Default constructor.
selector | The AudienceSelector object. |
---|
Parses the json value.
value | The json value. |
---|
JsonException | If the json is invalid. |
---|
Gets the location opt-in status.
Gets the audience miss behavior.
Gets the notification opt-in status.
Gets the permissions predicate.
Gets the requires analytics flag.
Gets the app version predicate.
Builder factory method.
Returns the objects represented as a JsonValue.