Back to project page capture-the-flag.
The source code is released under:
Copyright ? 2014 Microsoft Mobile Oy. All rights reserved. Microsoft is a registered trademark of Microsoft Corporation. Nokia and HERE are trademarks and/or registered trademarks of Nokia Corporati...
If you think the Android project capture-the-flag listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * Copyright (c) 2014 Microsoft Mobile. All rights reserved. * See the license text file provided with this project for more information. *///ww w .jav a 2 s. c om package com.nokia.example.capturetheflag.notifications; /** * Interface for registering the application to the platform's push notification * service for receiving push notifications from the game server. */ public interface NotificationsManagerInterface { /** * Enumeration defining supported notification services types, * * @see {@link NotificationsManagerInterface#getServiceType()}. */ public enum NotificationServiceType { NOKIA_NOTIFICATIONS, GOOGLE_CLOUD_MESSAGING } /** * Registers the application for receiving push notifications. * * @see {@link NotificationsManagerInterface#getRegistrationId()}. */ public void register(); /** * Returns the application's registration id. * * @return The registration id if available, null otherwise. * @see {@link NotificationsManagerInterface#register()}. */ public String getRegistrationId(); /** * Returns the type of the instantiated push notification service. * * @return Notification service type. * @see {@link NotificationServiceType}. */ public NotificationServiceType getServiceType(); /** * Releases any allocated resources and closes opened connections when * the application is terminated. */ public void onDestroy(); }