Ejemplo n.º 1
0
 internal static void Reset()
 {
     lock (_lock)
     {
         Log.Info(Interop.PushClient.LogTag, "Making _instance as null");
         _instance = null;
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// API to disconnect from the push service.
 /// </summary>
 /// <since_tizen> 3 </since_tizen>
 public static void PushServiceDisconnect()
 {
     PushImpl.PushServiceDisconnect();
     //PushImpl.Reset();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// API to connect with the push service.
 /// </summary>
 /// <since_tizen> 3 </since_tizen>
 /// <privilege>http://tizen.org/privilege/push</privilege>
 /// <exception cref="InvalidOperationException"> In case of privilege not defined. </exception>
 /// <param name="pushAppId"> The Push Application ID Registered with the server.</param>
 public static void PushServiceConnect(string pushAppId)
 {
     PushImpl.PushServiceConnect(pushAppId);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// registration ID received from server.
 /// </summary>
 /// <since_tizen> 3 </since_tizen>
 /// <returns>
 /// It is the string, which is the ID received from the server.
 /// </returns>
 public static string GetRegistrationId()
 {
     return(PushImpl.GetRegistrationId());
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Gets the unread notifications for the application.
 /// </summary>
 /// <since_tizen> 3 </since_tizen>
 public static void GetUnreadNotifications()
 {
     PushImpl.GetUnreadNotifications();
 }
Ejemplo n.º 6
0
 /// <summary>
 /// API to Deregister the application from the push server.
 /// </summary>
 /// <since_tizen> 3 </since_tizen>
 /// <returns>
 /// The method returns a task, which on completion will give a ServerResponse Object.
 /// </returns>
 public static Task <ServerResponse> PushServerUnregister()
 {
     return(PushImpl.PushServerUnregister());
 }