public interface UIIndirectScribbleInteractionDelegate
| Modifier and Type | Interface and Description |
|---|---|
static interface |
UIIndirectScribbleInteractionDelegate.Block_indirectScribbleInteractionFocusElementIfNeededReferencePointCompletion |
static interface |
UIIndirectScribbleInteractionDelegate.Block_indirectScribbleInteractionRequestElementsInRectCompletion |
| Modifier and Type | Method and Description |
|---|---|
default void |
indirectScribbleInteractionDidFinishWritingInElement(UIIndirectScribbleInteraction interaction,
java.lang.Object elementIdentifier)
Will be called when the user finished writing into an element, after the last word has been transcribed and committed.
|
void |
indirectScribbleInteractionFocusElementIfNeededReferencePointCompletion(UIIndirectScribbleInteraction interaction,
java.lang.Object elementIdentifier,
CGPoint focusReferencePoint,
UIIndirectScribbleInteractionDelegate.Block_indirectScribbleInteractionFocusElementIfNeededReferencePointCompletion completion)
Asks the delegate to focus an element to handle text edits.
|
CGRect |
indirectScribbleInteractionFrameForElement(UIIndirectScribbleInteraction interaction,
java.lang.Object elementIdentifier)
Asks the delegate to provide the frame of an element.
|
boolean |
indirectScribbleInteractionIsElementFocused(UIIndirectScribbleInteraction interaction,
java.lang.Object elementIdentifier)
Asks the delegate if an element is currently focused, according to the internal state of the interaction's view.
|
void |
indirectScribbleInteractionRequestElementsInRectCompletion(UIIndirectScribbleInteraction interaction,
CGRect rect,
UIIndirectScribbleInteractionDelegate.Block_indirectScribbleInteractionRequestElementsInRectCompletion completion)
This method will be called to request the text input elements in a certain rect of the view, each of which represents an area where the user can start writing even if it's not a text input field itself.
|
default boolean |
indirectScribbleInteractionShouldDelayFocusForElement(UIIndirectScribbleInteraction interaction,
java.lang.Object elementIdentifier)
Allow the delegate to delay focusing an element.
|
default void |
indirectScribbleInteractionWillBeginWritingInElement(UIIndirectScribbleInteraction interaction,
java.lang.Object elementIdentifier)
Will be called when the user begins writing into an element.
|
default void indirectScribbleInteractionDidFinishWritingInElement(UIIndirectScribbleInteraction interaction, java.lang.Object elementIdentifier)
interaction - The interaction notifying about writing state changes.elementIdentifier - The identifier of the element the user finished writing into.void indirectScribbleInteractionFocusElementIfNeededReferencePointCompletion(UIIndirectScribbleInteraction interaction, java.lang.Object elementIdentifier, CGPoint focusReferencePoint, UIIndirectScribbleInteractionDelegate.Block_indirectScribbleInteractionFocusElementIfNeededReferencePointCompletion completion)
interaction - The interaction that is requesting to focus an element.elementIdentifier - The identifier of the element that should be focused.completion - You must always call the completion handler, either synchronously or asynchronously. On success, the first parameter should be the text input that became first responder and that will handle text operations for this element. On failure, call the completion with a nil parameter.CGRect indirectScribbleInteractionFrameForElement(UIIndirectScribbleInteraction interaction, java.lang.Object elementIdentifier)
interaction - The interaction asking for the element's frame.elementIdentifier - The identifier of the element the interaction is asking about.boolean indirectScribbleInteractionIsElementFocused(UIIndirectScribbleInteraction interaction, java.lang.Object elementIdentifier)
interaction - The interaction asking for the focused state.elementIdentifier - The identifier of the element the interaction is asking about.void indirectScribbleInteractionRequestElementsInRectCompletion(UIIndirectScribbleInteraction interaction, CGRect rect, UIIndirectScribbleInteractionDelegate.Block_indirectScribbleInteractionRequestElementsInRectCompletion completion)
interaction - The interaction asking for the elements.rect - The rect around the area where the user is trying to write, in the interaction's view coordinate system. Only elements intersecting this rect should be returned.completion - You must call the completion handler, synchronously or asynchronously, with an array of identifiers of the available elements, or an empty array if no elements are available.default boolean indirectScribbleInteractionShouldDelayFocusForElement(UIIndirectScribbleInteraction interaction, java.lang.Object elementIdentifier)
interaction - The interaction asking about delaying focus.elementIdentifier - The identifier of the element the interaction is asking about.default void indirectScribbleInteractionWillBeginWritingInElement(UIIndirectScribbleInteraction interaction, java.lang.Object elementIdentifier)
interaction - The interaction notifying about writing state changes.elementIdentifier - The identifier of the element the user is writing into.