public static class

Audience.Builder

extends Object
java.lang.Object
   ↳ com.urbanairship.iam.Audience.Builder

Class Overview

Audience builder.

Summary

Public Methods
Audience.Builder addLanguageTag(String languageTag)
Adds a BCP 47 location tag.
Audience build()
Builds the in-app message audience.
Audience.Builder setTagSelector(TagSelector tagSelector)
Sets the tag selector.
Audience.Builder setVersionMatcher(ValueMatcher valueMatcher)
Value matcher to be used to match the app's version int.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public Audience.Builder addLanguageTag (String languageTag)

Adds a BCP 47 location tag. Only the language and country code are used to determine the audience.

Parameters
languageTag A BCP 47 language tag.
Returns
  • The builder.

public Audience build ()

Builds the in-app message audience.

Returns
  • The audience.

public Audience.Builder setTagSelector (TagSelector tagSelector)

Sets the tag selector. Tag selector will only be applied to channel tags set through the SDK.

Parameters
tagSelector The tag selector.
Returns
  • The builder.

public Audience.Builder setVersionMatcher (ValueMatcher valueMatcher)

Value matcher to be used to match the app's version int.

Parameters
valueMatcher Value matcher to be applied to the app's version int.
Returns
  • The builder.