addToBuilder static method
void
addToBuilder(
- ObjCProtocolBuilder builder, {
- required void insertText_client_(
- ObjCObjectBase,
- ObjCObjectBase
- required void doCommandBySelector_client_(
- Pointer<
ObjCSelector> , - ObjCObjectBase
- Pointer<
- required void markedTextAbandoned_(
- ObjCObjectBase? sender
- required void markedTextSelectionChanged_client_(
- NSRange,
- ObjCObjectBase
- required void terminate_(
- ObjCObjectBase? sender
- required bool canBeDisabled(),
- required bool wantsToInterpretAllKeystrokes(),
- required bool wantsToHandleMouseEvents(),
- required bool wantsToDelayTextChangeNotifications(),
- required void inputClientBecomeActive_(
- ObjCObjectBase? sender
- required void inputClientResignActive_(
- ObjCObjectBase? sender
- required void inputClientEnabled_(
- ObjCObjectBase? sender
- required void inputClientDisabled_(
- ObjCObjectBase? sender
- required void activeConversationWillChange_fromOldConversation_(
- ObjCObjectBase,
- DartNSInteger
- required void activeConversationChanged_toNewConversation_(
- ObjCObjectBase,
- DartNSInteger
- bool $keepIsolateAlive = true,
Adds the implementation of the NSInputServiceProvider protocol to an existing
objc.ObjCProtocolBuilder.
Note: You cannot call this method after you have called builder.build.
Implementation
static void addToBuilder(
objc.ObjCProtocolBuilder builder, {
required void Function(objc.ObjCObjectBase, objc.ObjCObjectBase)
insertText_client_,
required void Function(ffi.Pointer<objc.ObjCSelector>, objc.ObjCObjectBase)
doCommandBySelector_client_,
required void Function(objc.ObjCObjectBase?) markedTextAbandoned_,
required void Function(NSRange, objc.ObjCObjectBase)
markedTextSelectionChanged_client_,
required void Function(objc.ObjCObjectBase?) terminate_,
required bool Function() canBeDisabled,
required bool Function() wantsToInterpretAllKeystrokes,
required bool Function() wantsToHandleMouseEvents,
required bool Function() wantsToDelayTextChangeNotifications,
required void Function(objc.ObjCObjectBase?) inputClientBecomeActive_,
required void Function(objc.ObjCObjectBase?) inputClientResignActive_,
required void Function(objc.ObjCObjectBase?) inputClientEnabled_,
required void Function(objc.ObjCObjectBase?) inputClientDisabled_,
required void Function(objc.ObjCObjectBase, DartNSInteger)
activeConversationWillChange_fromOldConversation_,
required void Function(objc.ObjCObjectBase, DartNSInteger)
activeConversationChanged_toNewConversation_,
bool $keepIsolateAlive = true,
}) {
NSInputServiceProvider.insertText_client_.implement(
builder,
insertText_client_,
);
NSInputServiceProvider.doCommandBySelector_client_.implement(
builder,
doCommandBySelector_client_,
);
NSInputServiceProvider.markedTextAbandoned_.implement(
builder,
markedTextAbandoned_,
);
NSInputServiceProvider.markedTextSelectionChanged_client_.implement(
builder,
markedTextSelectionChanged_client_,
);
NSInputServiceProvider.terminate_.implement(builder, terminate_);
NSInputServiceProvider.canBeDisabled.implement(builder, canBeDisabled);
NSInputServiceProvider.wantsToInterpretAllKeystrokes.implement(
builder,
wantsToInterpretAllKeystrokes,
);
NSInputServiceProvider.wantsToHandleMouseEvents.implement(
builder,
wantsToHandleMouseEvents,
);
NSInputServiceProvider.wantsToDelayTextChangeNotifications.implement(
builder,
wantsToDelayTextChangeNotifications,
);
NSInputServiceProvider.inputClientBecomeActive_.implement(
builder,
inputClientBecomeActive_,
);
NSInputServiceProvider.inputClientResignActive_.implement(
builder,
inputClientResignActive_,
);
NSInputServiceProvider.inputClientEnabled_.implement(
builder,
inputClientEnabled_,
);
NSInputServiceProvider.inputClientDisabled_.implement(
builder,
inputClientDisabled_,
);
NSInputServiceProvider.activeConversationWillChange_fromOldConversation_
.implement(builder, activeConversationWillChange_fromOldConversation_);
NSInputServiceProvider.activeConversationChanged_toNewConversation_
.implement(builder, activeConversationChanged_toNewConversation_);
builder.addProtocol($protocol);
}