Private & Confidential

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

The ICE Layer API allows for control and manipulation of Layers within the ICE system. Layers in ICE are identified by a unique ID, and all layer-related messages require the "id" parameter to specify the target layer.

Layer List

The layer list messages are used to track the layers currently present in the ICE workspace and retrieve their corresponding IDs. This is helpful for obtaining an overview of the existing layers.

Get Layer List:

The layerList/get message retrieves the list of layers in the workspace along with their IDs.

Subscribe to Layer List:

The layerList/subscribe message allows you to subscribe to updates regarding changes in the layer list. Whenever a new layer is added or an existing layer is removed, a notification will be sent back to the client.

Common Layer Messages

Common layer messages are independent of the layer type and may be set, retrieved, or subscribed to.

Please refer to the API documentation for further details on specific usage for each mesage

For example,

Layer Name (Get, Set and Subscribe allowed):

  • Set Layer Name: layer/general/name/set?id=n+value=v

  • Get Layer Name: layer/general/name/get?id=n

  • Subscribe to Layer Name: layer/general/name/subscribe?id=n

Layer Type (Get and Subscribe allowed):

  • Get Layer Type: layer/general/type/get?id=n

  • Subscribe to Layer Type: layer/general/type/subscribe?id=n

Contextual Layer Messages

Contextual layer messages are specific to the layer type and may vary based on the type of layer being manipulated.

For example,

WebView Layer URL:

  • Set WebView Layer URL: layer/contextual/url/set?id=n+url=v

  • Get WebView Layer URL: layer/contextual/url/get?id=n

  • Subscribe to WebView Layer URL: layer/contextual/url/subscribe?id=n

Video Layer Filepath:

  • Set Video Layer Filepath: layer/contextual/filepath/set?id=n+path=v

  • Get Video Layer Filepath: layer/contextual/filepath/get?id=n

  • Subscribe to Video Layer Filepath: layer/contextual/filepath/subscribe?id=n

By utilising these layer-specific messages and their corresponding parameters, you can control, retrieve information, and subscribe to updates for both common and contextual properties of the layers within the ICE system. Please refer to the API documentation for further details on available properties and their specific usage.

General

Message

Path

Queries

Functions

Name

layer/general/name/

id=n+value=v

GET SET SUBSCRIBE

Type

layer/general/type/

id=n+value=v

GET SUBSCRIBE

Pin

layer/general/pin/

id=n+value=v

GET SET SUBSCRIBE

Background

layer/general/background/

id=n+value=v

GET SET SUBSCRIBE

Always On Top

layer/general/alwaysOnTop/

id=n+value=v

GET SET SUBSCRIBE

Enabled

layer/general/enabled/

id=n+value=v

GET SET SUBSCRIBE

Enable Home Layer

layer/general/enableHomeLayer

Geometry

Message

Path

Queries

Functions

Reset Geometry

layer/geometry/reset

id=n

Stretch Geometry

layer/geometry/stretch

id=n

Maximise Geometry

layer/geometry/maximise

id=n

Position

layer/geometry/position/

id=n+x=a+y=b

GET SET SUBSCRIBE

Scale

layer/geometry/scale/

id=n+value=v

GET SET SUBSCRIBE

Aspect Ratio

layer/geometry/aspectRatio/

id=n+value=v

GET SET SUBSCRIBE

Resize Mode

layer/geometry/resizeMode/

id=n+value=v

GET SET SUBSCRIBE

Position Mode

layer/geometry/positionMode/

id=n+value=v

GET SET SUBSCRIBE

Layout

layer/geometry/layout/

id=n+index=n

GET SET SUBSCRIBE

Region

layer/geometry/region/

id=n+index=n

GET SET SUBSCRIBE

Custom Ratio

layer/geometry/customRatio/

id=n+x=a+y=b

GET SET SUBSCRIBE

Start Crop

layer/geometry/startCrop/

id=n+x=a+y=b

GET SET SUBSCRIBE

Crop Size

layer/geometry/cropSize/

id=n+width=a+height=b

GET SET SUBSCRIBE

Size

layer/geometry/size/

id=n+width=a+height=b

GET SET SUBSCRIBE

Wrap

layer/geometry/wrap/

id=n+x=a+y=b

GET SET SUBSCRIBE

  • No labels