Package zendesk.support
Enum Support
- java.lang.Object
-
- java.lang.Enum<Support>
-
- zendesk.support.Support
-
-
Enum Constant Summary
Enum Constants Enum Constant and Description INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
init(Zendesk zendesk)
Initialises the Zendesk SDKboolean
isInitialized()
Gets whetherSupport.init(Zendesk)
was called or not.ProviderStore
provider()
Gets aProviderStore
for accessing all available SDK Providers.boolean
refreshRequest(java.lang.String requestId, Context context)
Refreshes the Support SDK RequestActivity if it is currently being displayed (afterActivity#onResume()
but beforeActivity#onPause()
) for the given request ID, or the RequestListActivity if it has not been destroyed (ie, byActivity#onDestroy()
.static Support
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Support[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final Support INSTANCE
-
-
Method Detail
-
values
public static Support[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Support c : Support.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Support valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
init
public void init(Zendesk zendesk)
Initialises the Zendesk SDKUse this constructor when you have enabled the Conversations feature. This requires some authentication settings. Your zendeskUrl must be your full Zendesk URL in the form of https://{subdomain.zendesk.com You should replace {subdomain} with your own subdomain.
A lazy loading strategy is applied to all Provider calls to ensure that settings are always present before a call to Zendesk.
- Parameters:
zendesk
- The instance of zendesk to initialize Support with
-
isInitialized
public boolean isInitialized()
Gets whetherSupport.init(Zendesk)
was called or not.- Returns:
- true if init was successfully called, false otherwise.
-
provider
public ProviderStore provider()
Gets aProviderStore
for accessing all available SDK Providers.- Returns:
- an instance of
ProviderStore
-
refreshRequest
public boolean refreshRequest(java.lang.String requestId, Context context)
Refreshes the Support SDK RequestActivity if it is currently being displayed (afterActivity#onResume()
but beforeActivity#onPause()
) for the given request ID, or the RequestListActivity if it has not been destroyed (ie, byActivity#onDestroy()
. This is intended for use in the handling of push notifications for updates on Zendesk Support requests. If not using push notifications, or using a provider-only integration (ie, not using the Support SDK UI), then this method should not be used. The method should be called from theandroid.content.BroadcastReceiver
being used to receive your push notifications. If the Support SDK UI is currently on screen, this method will trigger a refresh to capture the update, and return true. If it is not on screen, this method will return false. We recommend showing a notification to the user only if this method returns false.- Parameters:
requestId
- the ID of the request to refreshcontext
- the application Context- Returns:
- true if the conversation UI was refreshed on screen, false if not.
-
-