public class

OpenChannelRegistrationOptions

extends Object
implements JsonSerializable
java.lang.Object
   ↳ com.urbanairship.contacts.OpenChannelRegistrationOptions

Class Overview

Open channel registration options.

Summary

Constants
String IDENTIFIERS_KEY
String PLATFORM_NAME_KEY
Public Methods
static OpenChannelRegistrationOptions options(String platformName)
Creates default options.
static OpenChannelRegistrationOptions options(String platformName, Map<StringString> identifiers)
Creates default options.
JsonValue toJsonValue()
Returns the objects represented as a JsonValue.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.urbanairship.json.JsonSerializable

Constants

public static final String IDENTIFIERS_KEY

Constant Value: "identifiers"

public static final String PLATFORM_NAME_KEY

Constant Value: "platform_name"

Public Methods

public static OpenChannelRegistrationOptions options (String platformName)

Creates default options.

Parameters
platformName The platform name
Returns
  • The open channel options.

public static OpenChannelRegistrationOptions options (String platformName, Map<StringString> identifiers)

Creates default options.

Parameters
platformName The platform name
identifiers Optional identifiers.
Returns
  • The open channel options.

public JsonValue toJsonValue ()

Returns the objects represented as a JsonValue.

Returns
  • The object as a JsonValue.