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

Homey.ManagerImages

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

Table of Contents

Library:

Methods

getImage(id) → {Image|Error}

Get a registered Image.

Parameters:
Name Type Description
id String
Returns:
Type:
Image | Error

registerImage(imageInstance, callbackopt) → {Promise}

Register a Image.

Parameters:
Name Type Attributes Description
imageInstance Image
callback function <optional>
Name Type Description
err Error
image Image
Returns:
Type:
Promise

unregisterImage(imageInstance, callbackopt) → {Promise}

Unregister a Image.

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