SwiftinitAppIntentsAppIntents.IntentParameter

init

AppIntents.IntentParameter< where A.ValueType == Duration>.init<A, B where A1: AppIntents.ResolverSpecification, B1: AppIntents.DynamicOptionsProvider, B1.DefaultValue.ValueType == Duration>(title: Foundation.LocalizedStringResource?, description: Foundation.LocalizedStringResource?, capabilities: Set<AppIntents.IntentParameterCapability>, defaultUnit: _const AppIntents.IntentParameter<A>< where A.ValueType == Duration>.DurationUnit?, requestValueDialog: AppIntents.IntentDialog?, inputConnectionBehavior: _const AppIntents.InputConnectionBehavior, optionsProvider: B1, resolvers: () -> A1) -> AppIntents.IntentParameter<A>

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

generic{}

ABA1B1

req{}

param{}

  1. 0title:
  2. 1description:
  3. 2capabilities:
  4. 3defaultUnit:
  5. 4requestValueDialog:
  6. 5inputConnectionBehavior:
  7. 6optionsProvider:
    genericParameterB1
  8. 7resolvers:
    function() -> A1escaping
    • returnsgenericParameterA1

result{}

  • arggenericParameterA