enableOverlay static method

GemError enableOverlay(
  1. int uid, {
  2. int categUid = -1,
})

Enable an overlay (or a single category) globally.

The operation affects all registered consumers such as map views and alarms.

Parameters

  • uid: The overlay UID to enable.
  • categUid: Optional category UID within the overlay. When set to -1 the whole overlay is enabled.

Returns

See also:

Implementation

static GemError enableOverlay(final int uid, {final int categUid = -1}) {
  final OperationResult resultString = staticMethod(
    'OverlayService',
    'enableOverlay',
    args: <String, int>{'uid': uid, 'categUid': categUid},
  );

  return GemErrorExtension.fromCode(resultString['result']);
}