<tr>
<td><a href="#PushManager">PushManager</a></td>
<td>
-<div class="deprecated">void <a href="#PushManager::registerService">registerService</a> (<a href="application.html#ApplicationControl">ApplicationControl</a> appControl, <a href="#PushRegisterSuccessCallback">PushRegisterSuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
<div>void <a href="#PushManager::register">register</a> (<a href="#PushRegisterSuccessCallback">PushRegisterSuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
-<div class="deprecated">void <a href="#PushManager::unregisterService">unregisterService</a> (optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
<div>void <a href="#PushManager::unregister">unregister</a> (optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
-<div class="deprecated">void <a href="#PushManager::connectService">connectService</a> (<a href="#PushNotificationCallback">PushNotificationCallback</a> notificationCallback)</div>
<div>void <a href="#PushManager::connect">connect</a> (<a href="#PushRegistrationStateChangeCallback">PushRegistrationStateChangeCallback</a> stateChangeCallback, <a href="#PushNotificationCallback">PushNotificationCallback</a> notificationCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
-<div class="deprecated">void <a href="#PushManager::disconnectService">disconnectService</a> ()</div>
<div>void <a href="#PushManager::disconnect">disconnect</a> ()</div>
<div>
<a href="#PushRegistrationId">PushRegistrationId</a> <a href="#PushManager::getRegistrationId">getRegistrationId</a> ()</div>
The PushManager interface provides methods to manage push registration and notification.
</div>
<pre class="webidl prettyprint"> [NoInterfaceObject] interface PushManager {
- void registerService(<a href="application.html#ApplicationControl">ApplicationControl</a> appControl, <a href="#PushRegisterSuccessCallback">PushRegisterSuccessCallback</a> successCallback,
- optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
-
void register(<a href="#PushRegisterSuccessCallback">PushRegisterSuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
- void unregisterService(optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback,
- optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
-
void unregister(optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback,
optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
- void connectService(<a href="#PushNotificationCallback">PushNotificationCallback</a> notificationCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
-
void connect(<a href="#PushRegistrationStateChangeCallback">PushRegistrationStateChangeCallback</a> stateChangeCallback,
<a href="#PushNotificationCallback">PushNotificationCallback</a> notificationCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
- void disconnectService() raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
-
void disconnect() raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
<a href="#PushRegistrationId">PushRegistrationId</a> getRegistrationId() raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
/* Defines the error callback */
function errorCallback(response)
{
- console.log('The following error occurred: ' + response.name);
+ console.log("The following error occurred: " + response.name);
}
/* Defines the registration success callback */
function registerSuccessCallback(id)
{
- console.log("Registration succeeded with id: " + id);
+ console.log("Registration succeeded with id: " + id);
}
/* Requests registration */
/* Defines the error callback */
function errorCallback(response)
{
- console.log("The following error occurred: " + response.name);
+ console.log("The following error occurred: " + response.name);
}
/* Defines the registration success callback */
function registerSuccessCallback(id)
{
- console.log("Registration succeeded with id: " + id);
+ console.log("Registration succeeded with id: " + id);
}
/* Defines the state change callback */
function stateChangeCallback(state)
{
- console.log("The state is changed to: " + state);
+ console.log("The state is changed to: " + state);
- if (state == "UNREGISTERED")
- {
- /* Requests application registration */
- tizen.push.register(registerSuccessCallback, errorCallback);
- }
+ if (state == "UNREGISTERED")
+ {
+ /* Requests application registration */
+ tizen.push.register(registerSuccessCallback, errorCallback);
+ }
}
/* Defines the notification callback */
function notificationCallback(notification)
{
- console.log("A notification arrives.");
+ console.log("A notification arrives.");
}
/* Connects to push service */
/* Defines the error callback */
function errorCallback(response)
{
- console.log('The following error occurred: ' + response.name);
+ console.log("The following error occurred: " + response.name);
}
/* Defines the unregistration success callback */
function unregisterSuccessCallback()
{
- console.log("Unregistration succeeded.");
+ console.log("Unregistration succeeded.");
}
/* Requests unregistration */
/* Defines the error callback */
function errorCallback(response)
{
- console.log("The following error occurred: " + response.name);
+ console.log("The following error occurred: " + response.name);
}
/* Defines the unregistration success callback */
function unregisterSuccessCallback()
{
- console.log("Unregistration succeeded.");
+ console.log("Unregistration succeeded.");
}
/* Requests unregistration */
/* Defines the connect success callback */
function notificationCallback(noti)
{
- console.log("Notification received with alert message: " + noti.alertMessage);
+ console.log("Notification received with alert message: " + noti.alertMessage);
}
/* Defines the data to be used when this process is launched by notification service */
/* Defines the error callback */
function errorCallback(response)
{
- console.log("The following error occurred: " + response.name);
+ console.log("The following error occurred: " + response.name);
}
/* Defines the registration success callback */
function registerSuccessCallback(id)
{
- console.log("Registration succeeded with id: " + id);
+ console.log("Registration succeeded with id: " + id);
- /* Requests for push service connection */
- tizen.push.connectService(notificationCallback);
+ /* Requests for push service connection */
+ tizen.push.connectService(notificationCallback);
}
/* Requests registration */
/* Defines the state change callback */
function stateChangeCallback(state)
{
- console.log("The state is changed to: " + state);
+ console.log("The state is changed to: " + state);
}
/* Defines the notification callback */
function notificationCallback(notification)
{
- console.log("A notification arrives.");
+ console.log("A notification arrives.");
}
/* Defines the error callback */
function errorCallback(error)
{
- console.log("The following error occurred: " + error.name);
+ console.log("The following error occurred: " + error.name);
}
/* Requests for push service connection */
var registrationId = tizen.push.getRegistrationId();
if (registrationId != null)
{
- console.log("The registration id: " + registrationId);
+ console.log("The registration id: " + registrationId);
}
</pre>
</div>
/* Defines the state change callback */
function stateChangeCallback(state)
{
- console.log("The state is changed to: " + state);
+ console.log("The state is changed to: " + state);
- var id = tizen.push.getRegisterationId();
- console.log("The registration ID: " + id);
+ var id = tizen.push.getRegisterationId();
+ console.log("The registration ID: " + id);
}
/* Defines the notification callback */
function notificationCallback(notification)
{
- console.log("A notification arrives.");
+ console.log("A notification arrives.");
}
/* Requests for push service connection */
/* Defines the connect success callback */
function notificationCallback(message)
{
- console.log("New push message: " + message.alertMessage + ", date: " + message.date + ", data: " + message.appData);
+ console.log("New push message: " + message.alertMessage + ", date: " + message.date + ", data: " + message.appData);
}
/* Requests for push service connection */
/* Defines the state change callback */
function stateChangeCallback(state)
{
- console.log("The state is changed to: " + state);
+ console.log("The state is changed to: " + state);
- if (state === "REGISTERED")
- {
- /* Gets unread push notifications */
- tizen.push.getUnreadNotifications();
- }
+ if (state === "REGISTERED")
+ {
+ /* Gets unread push notifications */
+ tizen.push.getUnreadNotifications();
+ }
}
/* Defines the notification callback */
function notificationCallback(notification)
{
- console.log("A notification arrives.");
+ console.log("A notification arrives.");
}
/* Requests for push service connection */
<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
try
{
- var message = tizen.push.getPushMessage();
- console.log('Message received from: ' + message.sender);
+ var message = tizen.push.getPushMessage();
+ console.log("Message received from: " + message.sender);
}
catch (err)
{
- console.log('Exception - code: ' + err.name + ' message: ' + err.message);
+ console.log("Exception - code: " + err.name + " message: " + err.message);
}
</pre>
</div>
</p>
<div class="example">
<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
+/* Defines the state change callback */
+function stateChangeCallback(state)
+{
+ console.log("The state is changed to: " + state);
+}
+
/* Defines the connect success callback */
function notificationCallback(noti)
{
- console.log('notification received on ' + noti.date + ' from: ' + noti.sender);
- console.log('Details:');
- console.log(' - data: ' + noti.appData);
- console.log(' - alert message: ' + noti.alertMessage);
- console.log(' - message: ' + noti.message);
- console.log(' - session: ' + noti.sessionInfo);
- console.log(' - request ID: ' + noti.requestId);
+ console.log("notification received on " + noti.date + " from: " + noti.sender);
+ console.log("Details:");
+ console.log(" - data: " + noti.appData);
+ console.log(" - alert message: " + noti.alertMessage);
+ console.log(" - message: " + noti.message);
+ console.log(" - session: " + noti.sessionInfo);
+ console.log(" - request ID: " + noti.requestId);
}
/* Requests for push service connection */
-tizen.push.connectService(notificationCallback);
+tizen.push.connect(stateChangeCallback, notificationCallback);
</pre>
</div>
<div class="output">
-<span class="title"><p>Output example:</p></span><pre> Notification received on Thu Jan 01 2015 from: xyz.AnotherApp
+<span class="title"><p>Output example:</p></span><pre> The state is changed to: REGISTERED
+ notification received on Thu Jan 01 2015 from: xyz.AnotherApp
Details:
- data: {id:asdf}
- alert message: Hi
<a href="tizen.html#Tizen">Tizen</a> implements <a href="#PushManagerObject">PushManagerObject</a>;
[NoInterfaceObject] interface PushManager {
- void registerService(<a href="application.html#ApplicationControl">ApplicationControl</a> appControl, <a href="#PushRegisterSuccessCallback">PushRegisterSuccessCallback</a> successCallback,
- optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
-
void register(<a href="#PushRegisterSuccessCallback">PushRegisterSuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
- void unregisterService(optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback,
- optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
-
void unregister(optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback,
optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
- void connectService(<a href="#PushNotificationCallback">PushNotificationCallback</a> notificationCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
-
void connect(<a href="#PushRegistrationStateChangeCallback">PushRegistrationStateChangeCallback</a> stateChangeCallback,
<a href="#PushNotificationCallback">PushNotificationCallback</a> notificationCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
- void disconnectService() raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
-
void disconnect() raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
<a href="#PushRegistrationId">PushRegistrationId</a> getRegistrationId() raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
<tr>
<td><a href="#PushManager">PushManager</a></td>
<td>
-<div class="deprecated">void <a href="#PushManager::registerService">registerService</a> (<a href="application.html#ApplicationControl">ApplicationControl</a> appControl, <a href="#PushRegisterSuccessCallback">PushRegisterSuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
<div>void <a href="#PushManager::register">register</a> (<a href="#PushRegisterSuccessCallback">PushRegisterSuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
-<div class="deprecated">void <a href="#PushManager::unregisterService">unregisterService</a> (optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
<div>void <a href="#PushManager::unregister">unregister</a> (optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
-<div class="deprecated">void <a href="#PushManager::connectService">connectService</a> (<a href="#PushNotificationCallback">PushNotificationCallback</a> notificationCallback)</div>
<div>void <a href="#PushManager::connect">connect</a> (<a href="#PushRegistrationStateChangeCallback">PushRegistrationStateChangeCallback</a> stateChangeCallback, <a href="#PushNotificationCallback">PushNotificationCallback</a> notificationCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
-<div class="deprecated">void <a href="#PushManager::disconnectService">disconnectService</a> ()</div>
<div>void <a href="#PushManager::disconnect">disconnect</a> ()</div>
<div>
<a href="#PushRegistrationId">PushRegistrationId</a> <a href="#PushManager::getRegistrationId">getRegistrationId</a> ()</div>
The PushManager interface provides methods to manage push registration and notification.
</div>
<pre class="webidl prettyprint"> [NoInterfaceObject] interface PushManager {
- void registerService(<a href="application.html#ApplicationControl">ApplicationControl</a> appControl, <a href="#PushRegisterSuccessCallback">PushRegisterSuccessCallback</a> successCallback,
- optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
-
void register(<a href="#PushRegisterSuccessCallback">PushRegisterSuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
- void unregisterService(optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback,
- optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
-
void unregister(optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback,
optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
- void connectService(<a href="#PushNotificationCallback">PushNotificationCallback</a> notificationCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
-
void connect(<a href="#PushRegistrationStateChangeCallback">PushRegistrationStateChangeCallback</a> stateChangeCallback,
<a href="#PushNotificationCallback">PushNotificationCallback</a> notificationCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
- void disconnectService() raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
-
void disconnect() raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
<a href="#PushRegistrationId">PushRegistrationId</a> getRegistrationId() raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
/* Defines the error callback */
function errorCallback(response)
{
- console.log('The following error occurred: ' + response.name);
+ console.log("The following error occurred: " + response.name);
}
/* Defines the registration success callback */
function registerSuccessCallback(id)
{
- console.log("Registration succeeded with id: " + id);
+ console.log("Registration succeeded with id: " + id);
}
/* Requests registration */
/* Defines the error callback */
function errorCallback(response)
{
- console.log("The following error occurred: " + response.name);
+ console.log("The following error occurred: " + response.name);
}
/* Defines the registration success callback */
function registerSuccessCallback(id)
{
- console.log("Registration succeeded with id: " + id);
+ console.log("Registration succeeded with id: " + id);
}
/* Defines the state change callback */
function stateChangeCallback(state)
{
- console.log("The state is changed to: " + state);
+ console.log("The state is changed to: " + state);
- if (state == "UNREGISTERED")
- {
- /* Requests application registration */
- tizen.push.register(registerSuccessCallback, errorCallback);
- }
+ if (state == "UNREGISTERED")
+ {
+ /* Requests application registration */
+ tizen.push.register(registerSuccessCallback, errorCallback);
+ }
}
/* Defines the notification callback */
function notificationCallback(notification)
{
- console.log("A notification arrives.");
+ console.log("A notification arrives.");
}
/* Connects to push service */
/* Defines the error callback */
function errorCallback(response)
{
- console.log('The following error occurred: ' + response.name);
+ console.log("The following error occurred: " + response.name);
}
/* Defines the unregistration success callback */
function unregisterSuccessCallback()
{
- console.log("Unregistration succeeded.");
+ console.log("Unregistration succeeded.");
}
/* Requests unregistration */
</li>
<li class="param">
<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
- The method to be called when the unregistration request fails.
+ The callback to be called when the unregistration request fails.
</li>
</ul>
</div>
/* Defines the error callback */
function errorCallback(response)
{
- console.log("The following error occurred: " + response.name);
+ console.log("The following error occurred: " + response.name);
}
/* Defines the unregistration success callback */
function unregisterSuccessCallback()
{
- console.log("Unregistration succeeded.");
+ console.log("Unregistration succeeded.");
}
/* Requests unregistration */
/* Defines the connect success callback */
function notificationCallback(noti)
{
- console.log("Notification received with alert message: " + noti.alertMessage);
+ console.log("Notification received with alert message: " + noti.alertMessage);
}
/* Defines the data to be used when this process is launched by notification service */
/* Defines the error callback */
function errorCallback(response)
{
- console.log("The following error occurred: " + response.name);
+ console.log("The following error occurred: " + response.name);
}
/* Defines the registration success callback */
function registerSuccessCallback(id)
{
- console.log("Registration succeeded with id: " + id);
+ console.log("Registration succeeded with id: " + id);
- /* Requests for push service connection */
- tizen.push.connectService(notificationCallback);
+ /* Requests for push service connection */
+ tizen.push.connectService(notificationCallback);
}
/* Requests registration */
/* Defines the state change callback */
function stateChangeCallback(state)
{
- console.log("The state is changed to: " + state);
+ console.log("The state is changed to: " + state);
}
/* Defines the notification callback */
function notificationCallback(notification)
{
- console.log("A notification arrives.");
+ console.log("A notification arrives.");
}
/* Defines the error callback */
function errorCallback(error)
{
- console.log("The following error occurred: " + error.name);
+ console.log("The following error occurred: " + error.name);
}
/* Requests for push service connection */
var registrationId = tizen.push.getRegistrationId();
if (registrationId != null)
{
- console.log("The registration id: " + registrationId);
+ console.log("The registration id: " + registrationId);
}
</pre>
</div>
/* Defines the state change callback */
function stateChangeCallback(state)
{
- console.log("The state is changed to: " + state);
+ console.log("The state is changed to: " + state);
- var id = tizen.push.getRegisterationId();
- console.log("The registration ID: " + id);
+ var id = tizen.push.getRegisterationId();
+ console.log("The registration ID: " + id);
}
/* Defines the notification callback */
function notificationCallback(notification)
{
- console.log("A notification arrives.");
+ console.log("A notification arrives.");
}
/* Requests for push service connection */
/* Defines the connect success callback */
function notificationCallback(message)
{
- console.log("New push message: " + message.alertMessage + ", date: " + message.date + ", data: " + message.appData);
+ console.log("New push message: " + message.alertMessage + ", date: " + message.date + ", data: " + message.appData);
}
/* Requests for push service connection */
/* Defines the state change callback */
function stateChangeCallback(state)
{
- console.log("The state is changed to: " + state);
+ console.log("The state is changed to: " + state);
- if (state === "REGISTERED")
- {
- /* Gets unread push notifications */
- tizen.push.getUnreadNotifications();
- }
+ if (state === "REGISTERED")
+ {
+ /* Gets unread push notifications */
+ tizen.push.getUnreadNotifications();
+ }
}
/* Defines the notification callback */
function notificationCallback(notification)
{
- console.log("A notification arrives.");
+ console.log("A notification arrives.");
}
/* Requests for push service connection */
<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
try
{
- var message = tizen.push.getPushMessage();
- console.log('Message received from: ' + message.sender);
+ var message = tizen.push.getPushMessage();
+ console.log("Message received from: " + message.sender);
}
catch (err)
{
- console.log('Exception - code: ' + err.name + ' message: ' + err.message);
+ console.log("Exception - code: " + err.name + " message: " + err.message);
}
</pre>
</div>
</p>
<div class="example">
<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
+/* Defines the state change callback */
+function stateChangeCallback(state)
+{
+ console.log("The state is changed to: " + state);
+}
+
/* Defines the connect success callback */
function notificationCallback(noti)
{
- console.log('notification received on ' + noti.date + ' from: ' + noti.sender);
- console.log('Details:');
- console.log(' - data: ' + noti.appData);
- console.log(' - alert message: ' + noti.alertMessage);
- console.log(' - message: ' + noti.message);
- console.log(' - session: ' + noti.sessionInfo);
- console.log(' - request ID: ' + noti.requestId);
+ console.log("notification received on " + noti.date + " from: " + noti.sender);
+ console.log("Details:");
+ console.log(" - data: " + noti.appData);
+ console.log(" - alert message: " + noti.alertMessage);
+ console.log(" - message: " + noti.message);
+ console.log(" - session: " + noti.sessionInfo);
+ console.log(" - request ID: " + noti.requestId);
}
/* Requests for push service connection */
-tizen.push.connectService(notificationCallback);
+tizen.push.connect(stateChangeCallback, notificationCallback);
</pre>
</div>
<div class="output">
-<span class="title"><p>Output example:</p></span><pre> Notification received on Thu Jan 01 2015 from: xyz.AnotherApp
+<span class="title"><p>Output example:</p></span><pre> The state is changed to: REGISTERED
+ notification received on Thu Jan 01 2015 from: xyz.AnotherApp
Details:
- data: {id:asdf}
- alert message: Hi
<a href="tizen.html#Tizen">Tizen</a> implements <a href="#PushManagerObject">PushManagerObject</a>;
[NoInterfaceObject] interface PushManager {
- void registerService(<a href="application.html#ApplicationControl">ApplicationControl</a> appControl, <a href="#PushRegisterSuccessCallback">PushRegisterSuccessCallback</a> successCallback,
- optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
-
void register(<a href="#PushRegisterSuccessCallback">PushRegisterSuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
- void unregisterService(optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback,
- optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
-
void unregister(optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback,
optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
- void connectService(<a href="#PushNotificationCallback">PushNotificationCallback</a> notificationCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
-
void connect(<a href="#PushRegistrationStateChangeCallback">PushRegistrationStateChangeCallback</a> stateChangeCallback,
<a href="#PushNotificationCallback">PushNotificationCallback</a> notificationCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
- void disconnectService() raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
-
void disconnect() raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
<a href="#PushRegistrationId">PushRegistrationId</a> getRegistrationId() raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);