enableOverlay static method

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

Enables the overlay with the given uid. This will activate the overlay for all registered services ( map views, alarms, etc ).

If categUid is given the value -1, then the whole overlay will be enabled.

Parameters

  • IN uid The overlay uid
  • IN categUid The overlay category uid ( optional )

Returns

Throws

  • An exception if it fails

Implementation

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

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