class Teak.Notification

Methods for scheduling and canceling Teak notifications.

Static Methods

schedule

Schedule a notification to be sent to the current user in the future.

Future<Reply> schedule(final String creativeId,
                             final long delayInSeconds);

Return

A Future for the Reply to this operation.

Parameters

Name Description

creativeId

The identifier of the notification creative on the Teak dashboard.

delayInSeconds

The delay, in seconds, before sending the notification.

schedule

Schedule a notification to be sent to the current user in the future.

Future<Reply> schedule(final String creativeId,
                             final long delayInSeconds,
                             final Map<String, Object> personalizationData);

Return

A Future for the Reply to this operation.

Parameters

Name Description

creativeId

The identifier of the notification creative on the Teak dashboard.

delayInSeconds

The delay, in seconds, before sending the notification.

personalizationData

A dictionary containing parameters that the server can use for templating.