C# Class Appverse.Core.PushNotifications.AbstractPushNotifications

Inheritance: IPushNotifications, IWeakDelegateManager
ファイルを表示 Open project: Appverse/appverse-mobile

Public Methods

Method Description
AbstractPushNotifications ( ) : System
DidRegisterUserNotificationSettings ( UIApplication application, UIUserNotificationSettings notificationSettings ) : void
FailedToRegisterForRemoteNotifications ( UIApplication application, NSError error ) : void
FinishedLaunching ( UIApplication application, NSDictionary launchOptions ) : void
OnActivated ( UIApplication application ) : void
ReceivedRemoteNotification ( UIApplication application, NSDictionary userInfo ) : void
RegisterForRemoteNotifications ( string senderId, RemoteNotificationType types ) : void
RegisteredForRemoteNotifications ( UIApplication application, NSData deviceToken ) : void
UnRegisterForRemoteNotifications ( ) : void
WebViewLoadingFinished ( UIApplicationState applicationState, NSDictionary options ) : void
processNotification ( NSDictionary options, bool fromFinishedLaunching, UIApplicationState applicationState ) : void

Processes the notification.

Private Methods

Method Description
PlayNotificationSound ( String soundName ) : void
ProcessRemoteNotification ( NSDictionary options, bool fromFinishedLaunching, UIApplicationState applicationState ) : void
ShowNotificationAlert ( string title, string message ) : void

Manually shows a notification alert.

UpdateApplicationIconBadgeNumber ( int badge ) : void

Method Details

AbstractPushNotifications() public method

public AbstractPushNotifications ( ) : System
return System

DidRegisterUserNotificationSettings() public method

public DidRegisterUserNotificationSettings ( UIApplication application, UIUserNotificationSettings notificationSettings ) : void
application UIApplication
notificationSettings UIUserNotificationSettings
return void

FailedToRegisterForRemoteNotifications() public method

public FailedToRegisterForRemoteNotifications ( UIApplication application, NSError error ) : void
application UIApplication
error NSError
return void

FinishedLaunching() public method

public FinishedLaunching ( UIApplication application, NSDictionary launchOptions ) : void
application UIApplication
launchOptions NSDictionary
return void

OnActivated() public method

public OnActivated ( UIApplication application ) : void
application UIApplication
return void

ReceivedRemoteNotification() public method

public ReceivedRemoteNotification ( UIApplication application, NSDictionary userInfo ) : void
application UIApplication
userInfo NSDictionary
return void

RegisterForRemoteNotifications() public abstract method

public abstract RegisterForRemoteNotifications ( string senderId, RemoteNotificationType types ) : void
senderId string
types RemoteNotificationType
return void

RegisteredForRemoteNotifications() public method

public RegisteredForRemoteNotifications ( UIApplication application, NSData deviceToken ) : void
application UIApplication
deviceToken NSData
return void

UnRegisterForRemoteNotifications() public abstract method

public abstract UnRegisterForRemoteNotifications ( ) : void
return void

WebViewLoadingFinished() public method

public WebViewLoadingFinished ( UIApplicationState applicationState, NSDictionary options ) : void
applicationState UIApplicationState
options NSDictionary
return void

processNotification() public static method

Processes the notification.
public static processNotification ( NSDictionary options, bool fromFinishedLaunching, UIApplicationState applicationState ) : void
options NSDictionary Options.
fromFinishedLaunching bool True if this method comes from the 'FinishedLaunching' delegated method
applicationState UIApplicationState The application state that received the remote notification
return void