init
TypeScriptstatic initImageHandler(image: _UIKit_UIImage, handler?: (((arg0: CPBarButton) => void)) | null): CPBarButtonSwift declarationinit(image: UIImage, handler: CPBarButtonHandler? = nil)class · iOS 12.0+ · SDK 27.1
class CPBarButtonstatic initImageHandler(image: _UIKit_UIImage, handler?: (((arg0: CPBarButton) => void)) | null): CPBarButtonSwift declarationinit(image: UIImage, handler: CPBarButtonHandler? = nil)static initTitleHandler(title: string, handler?: (((arg0: CPBarButton) => void)) | null): CPBarButtonSwift declarationinit(title: String, handler: CPBarButtonHandler? = nil)get buttonStyle(): CPBarButtonStyleSwift declarationvar buttonStyle: CPBarButtonStyle { get set }set buttonStyle(value: CPBarButtonStyle)Swift declarationvar buttonStyle: CPBarButtonStyle { get set }get buttonType(): CPBarButton_TypeSwift declarationvar buttonType: CPBarButton.Type { get }get isEnabled(): booleanSwift declarationvar isEnabled: Bool { get set }set isEnabled(value: boolean)Swift declarationvar isEnabled: Bool { get set }get image(): (_UIKit_UIImage) | nullSwift declarationvar image: UIImage? { get set }set image(value: (_UIKit_UIImage) | null)Swift declarationvar image: UIImage? { get set }get title(): (string) | nullSwift declarationvar title: String? { get set }set title(value: (string) | null)Swift declarationvar title: String? { get set }2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
CPBarButton.init(type:handler:)
The iOS SDK compiler rejected this binding: cannot convert value of type 'CPBarButton.Type' to expected argument type 'CPBarButton.`Type`'
CPBarButton.init()
inherited init: cannot prove legal (class declares 3 custom initializers)