gpgs.clearNotifications()

Type Function
Return value none
Revision Release 2024.3703
Keywords Google Play Games Services, game network, gpgs, clearNotifications
Platforms Android
See also gpgs.*

This feature is currently only supported on Android.

Overview

Clears all notifications, or clears specified types of notifications.

Syntax

gpgs.clearNotifications( [notificationTypes] )
notificationTypes (optional)

Array. Populate this array with string elements indicating the notification types to be cleared. Accepted values include "all", "multiplayer", "invitation", "level up", "match update", "quest", and "request". If this array is omitted, all notifications will be cleared.