Package apple.intents

Class INRelevantShortcut

  • All Implemented Interfaces:
    NSCoding, NSCopying, NSSecureCoding, NSObject

    public class INRelevantShortcut
    extends NSObject
    implements NSSecureCoding, NSCopying
    Lets you provide relevant shortcut to Siri, for display on the Siri Watch Face. Including relevance information allows Siri to make suggestions for shortcuts that the user might be interested in but has not previously performed. API-Since: 12.0
    • Constructor Detail

      • INRelevantShortcut

        protected INRelevantShortcut​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static INRelevantShortcut allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • copyWithZone

        @NotNull
        public @NotNull java.lang.Object copyWithZone​(@Nullable
                                                      @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • initWithShortcut

        public INRelevantShortcut initWithShortcut​(@NotNull
                                                   @NotNull INShortcut shortcut)
        Creates a relevant shortcut for the given shortcut.
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • relevanceProviders

        @NotNull
        public @NotNull NSArray<? extends INRelevanceProvider> relevanceProviders()
        A collection of relevance information that is attached to the relevant shortcuts. Providing additional relevance information allows Siri to suggest a shortcut that the user is interested in but has not previously performed.
        See Also:
        INRelevanceProvider
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setRelevanceProviders

        public void setRelevanceProviders​(@NotNull
                                          @NotNull NSArray<? extends INRelevanceProvider> value)
        A collection of relevance information that is attached to the relevant shortcuts. Providing additional relevance information allows Siri to suggest a shortcut that the user is interested in but has not previously performed.
        See Also:
        INRelevanceProvider
      • setShortcutRole

        public void setShortcutRole​(long value)
        The role of the relevant shortcut. Provides a hint to Siri about the expected user experience. The default is @c INRelevantShortcutRoleAction.
        See Also:
        INRelevantShortcutRole
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • setWatchTemplate

        public void setWatchTemplate​(@Nullable
                                     @Nullable INDefaultCardTemplate value)
        Customizes the display of the relevant shortcut on the Siri watch face. By default, the UI for the relevant shortcut can be derivied from the information provided in the @c INShortcut. In certain situations, it may be desirable to override this behavior and provide a custom template.
        See Also:
        INDefaultCardTemplate
      • shortcut

        @NotNull
        public @NotNull INShortcut shortcut()
        The shortcut that will be performed when this relevant shortcut is invoked.
        See Also:
        INShortcut
      • shortcutRole

        public long shortcutRole()
        The role of the relevant shortcut. Provides a hint to Siri about the expected user experience. The default is @c INRelevantShortcutRoleAction.
        See Also:
        INRelevantShortcutRole
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
      • version_static

        public static long version_static()
      • watchTemplate

        @Nullable
        public @Nullable INDefaultCardTemplate watchTemplate()
        Customizes the display of the relevant shortcut on the Siri watch face. By default, the UI for the relevant shortcut can be derivied from the information provided in the @c INShortcut. In certain situations, it may be desirable to override this behavior and provide a custom template.
        See Also:
        INDefaultCardTemplate
      • setWidgetKind

        public void setWidgetKind​(@Nullable
                                  @Nullable java.lang.String value)
        Links the relevant shortcut to a specific WidgetKit widget kind. When a relevant shortcut is linked to a WidgetKit widget, it hints to the system when to show the widget in a stack. API-Since: 15.0
      • widgetKind

        @Nullable
        public @Nullable java.lang.String widgetKind()
        Links the relevant shortcut to a specific WidgetKit widget kind. When a relevant shortcut is linked to a WidgetKit widget, it hints to the system when to show the widget in a stack. API-Since: 15.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.