public class

NotificationsClient

extends GoogleApi<Games.GamesOptions>
java.lang.Object
   ↳ com.google.android.gms.common.api.GoogleApi<com.google.android.gms.games.Games.GamesOptions>
     ↳ com.google.android.gms.games.NotificationsClient

Class Overview

A client to interact with Notifications.

Summary

Constants
int NOTIFICATION_TYPES_ALL Notification types for any notification.
int NOTIFICATION_TYPES_MULTIPLAYER Notification types for multiplayer notifications.
int NOTIFICATION_TYPE_INVITATION Notification type for invites to multiplayer games.
int NOTIFICATION_TYPE_LEVEL_UP Notification type for level-ups.
int NOTIFICATION_TYPE_MATCH_UPDATE Notification type for updates to match information.
Public Methods
Task<Void> clear(int notificationTypes)
Returns a Task which asynchronously clears the notifications of the specified type for the current game and signed-in player.
Task<Void> clearAll()
Returns a Task which asynchronously clears all notifications for the current game and signed-in player.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int NOTIFICATION_TYPES_ALL

Notification types for any notification.

Constant Value: 19 (0x00000013)

public static final int NOTIFICATION_TYPES_MULTIPLAYER

Notification types for multiplayer notifications.

Constant Value: 3 (0x00000003)

public static final int NOTIFICATION_TYPE_INVITATION

Notification type for invites to multiplayer games.

Constant Value: 1 (0x00000001)

public static final int NOTIFICATION_TYPE_LEVEL_UP

Notification type for level-ups.

Constant Value: 16 (0x00000010)

public static final int NOTIFICATION_TYPE_MATCH_UPDATE

Notification type for updates to match information.

Constant Value: 2 (0x00000002)

Public Methods

public Task<Void> clear (int notificationTypes)

Returns a Task which asynchronously clears the notifications of the specified type for the current game and signed-in player. This should be a mask comprised of values from the constants NOTIFICATION_TYPE_INVITATION, NOTIFICATION_TYPE_MATCH_UPDATE, NOTIFICATION_TYPES_MULTIPLAYER, NOTIFICATION_TYPE_LEVEL_UP and NOTIFICATION_TYPES_ALL.

Required Scopes: SCOPE_GAMES_LITE

Parameters
notificationTypes int: Mask of notification types to clear.
Returns
Task<Void>

public Task<Void> clearAll ()

Returns a Task which asynchronously clears all notifications for the current game and signed-in player.

Required Scopes: SCOPE_GAMES_LITE

Returns
Task<Void>