representativeItem property

UIBarButtonItem? get representativeItem

In order to display as many items as possible, bars that support UIBarButtonItemGroup may choose to collapse items associated with groups to the representativeItem specified by the group. A bar will only collapse groups that have a representativeItem set, but may still choose to use an alternate presentation of these items. A UIBarButtonItem may only be either the representativeItem or a member of the barButtonItems of a single UIBarButtonItemGroup and may only represent a single group. If the representativeItem has an action, then that action will be invoked, otherwise the bar will present a standard UI to allow selection of the barButtonItems in the representedItem's group.

Implementation

UIBarButtonItem? get representativeItem {
  objc.checkOsVersionInternal('UIBarButtonItemGroup.representativeItem', iOS: (false, (9, 0, 0)));
  final $ret = _objc_msgSend_151sglz(object$.ref.pointer, _sel_representativeItem);
  return $ret.address == 0 ? null : UIBarButtonItem.fromPointer($ret, retain: true, release: true);
}
set representativeItem (UIBarButtonItem? value)

In order to display as many items as possible, bars that support UIBarButtonItemGroup may choose to collapse items associated with groups to the representativeItem specified by the group. A bar will only collapse groups that have a representativeItem set, but may still choose to use an alternate presentation of these items. A UIBarButtonItem may only be either the representativeItem or a member of the barButtonItems of a single UIBarButtonItemGroup and may only represent a single group. If the representativeItem has an action, then that action will be invoked, otherwise the bar will present a standard UI to allow selection of the barButtonItems in the representedItem's group.

Implementation

set representativeItem(UIBarButtonItem? value) {
  objc.checkOsVersionInternal('UIBarButtonItemGroup.setRepresentativeItem:', iOS: (false, (9, 0, 0)));
  _objc_msgSend_xtuoz7(object$.ref.pointer, _sel_setRepresentativeItem_, value?.ref.pointer ?? ffi.nullptr);
}