# Push

class Push

This class provides wrapping of function execution related to push notification.

## Constructors

Push
Link copied to clipboard
constructor()

## Functions

getNotificationOptions
Link copied to clipboard
open fun getNotificationOptions(@NonNull context: Context): GamebaseNotificationOptions
Get notification options in device.
queryNotificationAllowed
Link copied to clipboard
open fun queryNotificationAllowed(@NonNull context: Context, @NonNull callback: GamebaseDataCallback<Boolean>)
This API tells that the user has allowed the device to display notification.
queryPush
Link copied to clipboard
open fun queryPush(@NonNull activity: Activity, @NonNull callback: GamebaseDataCallback<PushConfiguration>)
Get push settings from the the push server.
queryTokenInfo
Link copied to clipboard
open fun queryTokenInfo(@NonNull activity: Activity, @NonNull callback: GamebaseDataCallback<GamebasePushTokenInfo>)
Get push settings from the the push server.
registerPush
Link copied to clipboard
open fun registerPush(@NonNull activity: Activity, @NonNull pushConfiguration: PushConfiguration, @NonNull callback: GamebaseCallback)
open fun registerPush(@NonNull activity: Activity, @NonNull pushConfiguration: PushConfiguration, @NonNull notificationOptions: GamebaseNotificationOptions, @NonNull callback: GamebaseCallback)
Register push information to the push server.