public final class PnsSpecificRegistrationFactory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
Registration |
createNativeRegistration(java.lang.String notificationHubPath)
Creates native registration according the PNS supported on device
|
TemplateRegistration |
createTemplateRegistration(java.lang.String notificationHubPath)
Creates template registration according the PNS supported on device
TODO: This API needs to be deprecated
|
java.lang.String |
getAPIOrigin()
Returns API origin value according the PNS supported on device
|
static PnsSpecificRegistrationFactory |
getInstance()
Returns the instance of PnsSpecificRegistrationFactory
|
java.lang.String |
getPNSHandleFieldName()
Returns PNS handle field name according the PNS supported on device
|
boolean |
isTemplateRegistration(java.lang.String xml)
Indicates if a registration xml is a Template Registration
|
void |
setRegistrationType(Registration.RegistrationType type) |
public static PnsSpecificRegistrationFactory getInstance()
public void setRegistrationType(Registration.RegistrationType type)
public Registration createNativeRegistration(java.lang.String notificationHubPath)
notificationHubPath
- The Notification Hub pathpublic TemplateRegistration createTemplateRegistration(java.lang.String notificationHubPath)
notificationHubPath
- The Notification Hub pathpublic boolean isTemplateRegistration(java.lang.String xml)
xml
- The xml to checkpublic java.lang.String getPNSHandleFieldName()
public java.lang.String getAPIOrigin()