LogoRobo.js
Framework

isCapable()

Function: isCapable()

function isCapable(type): boolean

Checks if a capability/event type is supported by the host.

Parameters

ParameterTypeDescription
typestringThe event type to check

Returns

boolean

true if the capability is supported

Example

import { isCapable, emit } from 'robo.js/ipc'

if (isCapable('open:url')) {
  emit('open:url', { url: 'https://example.com' })
}

On this page