removeCategory method
Remove the overlay from the collection.
Parameters
- IN overlayId the overlay id. The list of available overlays can be obtained by using OverlayService
- IN categoryId The category id in OverlayInfo.categories result list
Returns
- GemError.success on success, GemError.notFound if the overlay is not in the collection
Throws
- An exception if it fails
Implementation
GemError removeCategory({
required final int overlayId,
required final int categoryId,
}) {
final OperationResult resultString = objectMethod(
_pointerId,
'OverlayMutableCollection',
'removeCategory',
args: <String, int>{'overlayId': overlayId, 'categoryId': categoryId},
);
return GemErrorExtension.fromCode(resultString['result']);
}