PushNotificationListener( notifications ) method

Callback function that will be invoked when push notifications are available. Push notification listeners can be added with hwc.addPushNotificationListener.

Syntax

<static> PushNotificationListener( notifications ) → {number}

Parameters

Name Type Description
notifications Array An array of notifications.

Returns

A number indicating whether other push notification listeners should be called after this one. Must be either hwc.NOTIFICATION_CANCEL (if no more listener callbacks should be called) or hwc.NOTIFICATION_CONTINUE (if more listener callbacks should be called).

[/reference/refbody/section/sectiondiv {""})

Type:

number

(sectiondiv]

Source

hwc-api.js, line 3676.