You are currently viewing the Homey Apps SDK v2 documentation. New apps should use Homey Apps SDK v3 ››

Homey.Notification

const { Notification } = require('homey');

This class holds a Homey Notification.

Table of Contents

Constructor

new Homey.Notification(options)

Parameters:
Name Type Description
options Object
Name Type Description
excerpt string

A short message describing the notification. Use asterisks to highlight variable words.

Methods

register(callbackopt) → {Promise}

Register the notification. This is a shorthand method for ManagerNotifications.registerNotification().

Parameters:
Name Type Attributes Description
callback genericCallbackFunction <optional>
Returns:
Type:
Promise