categoryId property

int get categoryId

Category identifier for this overlay item.

The returned ID refers to the root category for the item; it might differ from the direct parent category in multi-level hierarchies.

Returns

  • The root category ID, or 0 when no category is assigned.

See also:

Implementation

int get categoryId {
  final OperationResult resultString = objectMethod(
    pointerId,
    'OverlayItem',
    'getCategoryId',
  );

  return resultString['result'];
}