public interface INUIHostedViewControlling
| Modifier and Type | Interface and Description |
|---|---|
static interface |
INUIHostedViewControlling.Block_configureViewForParametersOfInteractionInteractiveBehaviorContextCompletion |
static interface |
INUIHostedViewControlling.Block_configureWithInteractionContextCompletion |
| Modifier and Type | Method and Description |
|---|---|
default void |
configureViewForParametersOfInteractionInteractiveBehaviorContextCompletion(NSSet<? extends INParameter> parameters,
INInteraction interaction,
long interactiveBehavior,
long context,
INUIHostedViewControlling.Block_configureViewForParametersOfInteractionInteractiveBehaviorContextCompletion completion)
Perform configuration of UI based on the provided INInteraction and INParameter objects.
|
default void |
configureWithInteractionContextCompletion(INInteraction interaction,
long context,
INUIHostedViewControlling.Block_configureWithInteractionContextCompletion completion)
Perform configuration of UI based on the provided INInteraction object.
|
default void configureWithInteractionContextCompletion(INInteraction interaction, long context, INUIHostedViewControlling.Block_configureWithInteractionContextCompletion completion)
When configuration is complete for the given interaction, the hosted view controller should call the completion block with its view's desired size. This size will be constrained between hostedViewMinimumAllowedSize and hostedViewMaximumAllowedSize of the extension context.
interaction - The input interactioncontext - The hosting context for this interaction. The hosted view will be displayed alongside this context -- for instance, a Siri result snippet, or a place card within Maps.completion - The response handling block takes one parameter corresponding the optional desiredSize property of the INUIHostedViewControlling protocolINInteractiondefault void configureViewForParametersOfInteractionInteractiveBehaviorContextCompletion(NSSet<? extends INParameter> parameters, INInteraction interaction, long interactiveBehavior, long context, INUIHostedViewControlling.Block_configureViewForParametersOfInteractionInteractiveBehaviorContextCompletion completion)
When configuration is complete for the given parameters and interaction, the hosted view controller should call the completion block with whether it was successful, the parameters it configured itself with, and its view's desired size. The size of the view will ultimately be constrained between hostedViewMinimumAllowedSize and hostedViewMaximumAllowedSize of the extension context.
parameters - The parameters of the interaction for which to configure the viewinteraction - The input interactioninteractiveBehavior - The behavior that will be driven by user interaction of this viewcontext - The hosting context for this interaction. The hosted view will be displayed within/alongside this context -- for instance, a Siri result snippet, or a place card within Maps.completion - The response handling block takes the following: A) a success boolean, which tells the hosted view context if this view was successfully configured, B) the set of parameters that this view was successfully configured for, and C) a desiredSize for this view to be sized at within the hosted view context.INParameter,
INInteraction