containsCategory method

bool containsCategory(
  1. int overlayId,
  2. int categoryId
)

Check if overlay is added to the collection.

Parameters

  • IN overlayId The overlay id. The list of available overlays can be obtained by using OverlayService.
  • IN categoryId The overlay category id in OverlayInfo.getCategories result list.

Returns

  • True if overlay category is in the collection, false otherwise.

Throws

  • An exception if it fails

Implementation

bool containsCategory(final int overlayId, final int categoryId) {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'OverlayCollection',
    'containsCategory',
    args: <String, int>{'overlayId': overlayId, 'categoryId': categoryId},
  );
  return resultString['result'];
}