Package apple.intents

Class INPerson

    • Constructor Detail

      • INPerson

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static INPerson alloc()
      • allocWithZone

        public static INPerson 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()
      • 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()
      • 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)
      • new_objc

        public static INPerson new_objc()
      • resolveClassMethod

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

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

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        public static boolean supportsSecureCoding()
      • version_static

        public static long version_static()
      • aliases

        @Nullable
        public @Nullable NSArray<? extends INPersonHandle> aliases()
        If your application has other representations for the person's handle, you can supply it for INInteraction donation
      • contactIdentifier

        @Nullable
        public @Nullable java.lang.String contactIdentifier()
        Reference to this person, if present in the system's Contacts store
      • copyWithZone

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

        @Nullable
        public @Nullable java.lang.String customIdentifier()
        This property can be set to the app's identifier for this person It is also used as the vocabulary identifier for this person
      • displayName

        @NotNull
        public @NotNull java.lang.String displayName()
        This will return either the displayName if non-nil, else the formatted nameComponents, else the handle, else an empty string
      • handle

        @Nullable
        @Deprecated
        public @Nullable java.lang.String handle()
        Deprecated.
        The identity of the person in the application (e.g. email address, phone number, user handle, etc.) API-Since: 10.0 Deprecated-Since: 10.0 Deprecated-Message: Use personHandle instead
      • identifier

        @Nullable
        @Deprecated
        public @Nullable java.lang.String identifier()
        Deprecated.
        Description copied from interface: INSpeakable
        API-Since: 10.0 Deprecated-Since: 11.0 Deprecated-Message: Please use vocabularyIdentifier
        Specified by:
        identifier in interface INSpeakable
      • image

        @Nullable
        public @Nullable INImage image()
        Returns an image for the person.
      • initWithHandleDisplayNameContactIdentifier

        @Deprecated
        public INPerson initWithHandleDisplayNameContactIdentifier​(@NotNull
                                                                   @NotNull java.lang.String handle,
                                                                   @Nullable
                                                                   @Nullable java.lang.String displayName,
                                                                   @Nullable
                                                                   @Nullable java.lang.String contactIdentifier)
        Deprecated.
        Use this convenience initializer if the person's name is unknown API-Since: 10.0 Deprecated-Since: 10.0 Deprecated-Message: Use the designated initializer instead
      • initWithHandleNameComponentsContactIdentifier

        @Deprecated
        public INPerson initWithHandleNameComponentsContactIdentifier​(@NotNull
                                                                      @NotNull java.lang.String handle,
                                                                      @NotNull
                                                                      @NotNull NSPersonNameComponents nameComponents,
                                                                      @Nullable
                                                                      @Nullable java.lang.String contactIdentifier)
        Deprecated.
        This is the preferred convenience initializer if the app knows the name components of the person (e.g. given name, family name, etc). API-Since: 10.0 Deprecated-Since: 10.0 Deprecated-Message: Use the designated initializer instead
      • initWithHandleNameComponentsDisplayNameImageContactIdentifier

        @Deprecated
        public INPerson initWithHandleNameComponentsDisplayNameImageContactIdentifier​(@NotNull
                                                                                      @NotNull java.lang.String handle,
                                                                                      @Nullable
                                                                                      @Nullable NSPersonNameComponents nameComponents,
                                                                                      @Nullable
                                                                                      @Nullable java.lang.String displayName,
                                                                                      @Nullable
                                                                                      @Nullable INImage image,
                                                                                      @Nullable
                                                                                      @Nullable java.lang.String contactIdentifier)
        Deprecated.
        API-Since: 10.0 Deprecated-Since: 10.0 Deprecated-Message: Use the designated initializer instead
      • initWithPersonHandleNameComponentsDisplayNameImageContactIdentifierCustomIdentifier

        public INPerson initWithPersonHandleNameComponentsDisplayNameImageContactIdentifierCustomIdentifier​(@NotNull
                                                                                                            @NotNull INPersonHandle personHandle,
                                                                                                            @Nullable
                                                                                                            @Nullable NSPersonNameComponents nameComponents,
                                                                                                            @Nullable
                                                                                                            @Nullable java.lang.String displayName,
                                                                                                            @Nullable
                                                                                                            @Nullable INImage image,
                                                                                                            @Nullable
                                                                                                            @Nullable java.lang.String contactIdentifier,
                                                                                                            @Nullable
                                                                                                            @Nullable java.lang.String customIdentifier)
      • initWithPersonHandleNameComponentsDisplayNameImageContactIdentifierCustomIdentifierAliasesSuggestionType

        public INPerson initWithPersonHandleNameComponentsDisplayNameImageContactIdentifierCustomIdentifierAliasesSuggestionType​(@NotNull
                                                                                                                                 @NotNull INPersonHandle personHandle,
                                                                                                                                 @Nullable
                                                                                                                                 @Nullable NSPersonNameComponents nameComponents,
                                                                                                                                 @Nullable
                                                                                                                                 @Nullable java.lang.String displayName,
                                                                                                                                 @Nullable
                                                                                                                                 @Nullable INImage image,
                                                                                                                                 @Nullable
                                                                                                                                 @Nullable java.lang.String contactIdentifier,
                                                                                                                                 @Nullable
                                                                                                                                 @Nullable java.lang.String customIdentifier,
                                                                                                                                 @Nullable
                                                                                                                                 @Nullable NSArray<? extends INPersonHandle> aliases,
                                                                                                                                 long suggestionType)
      • nameComponents

        @Nullable
        public @Nullable NSPersonNameComponents nameComponents()
        Returns the person's name components if this was initialized with them
      • personHandle

        @Nullable
        public @Nullable INPersonHandle personHandle()
        The identity of the person in the application
      • pronunciationHint

        @Nullable
        public @Nullable java.lang.String pronunciationHint()
        Specified by:
        pronunciationHint in interface INSpeakable
      • relationship

        @Nullable
        public @Nullable java.lang.String relationship()
        This person's relationship to the user API-Since: 10.2
      • spokenPhrase

        @NotNull
        public @NotNull java.lang.String spokenPhrase()
        Specified by:
        spokenPhrase in interface INSpeakable
      • suggestionType

        public long suggestionType()
        What Contact property this INInteraction donation should be suggested as when this person is matched to a contact in the system's Contacts store.
      • _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
      • isMe

        public boolean isMe()
        This property is set to YES when the user says things like "Search for messages from me", etc. API-Since: 11.0
      • siriMatches

        @Nullable
        public @Nullable NSArray<? extends INPerson> siriMatches()
        This property is filled in with what Siri thinks are close matches to what the user said API-Since: 10.3
      • initWithPersonHandleNameComponentsDisplayNameImageContactIdentifierCustomIdentifierIsMe

        public INPerson initWithPersonHandleNameComponentsDisplayNameImageContactIdentifierCustomIdentifierIsMe​(@NotNull
                                                                                                                @NotNull INPersonHandle personHandle,
                                                                                                                @Nullable
                                                                                                                @Nullable NSPersonNameComponents nameComponents,
                                                                                                                @Nullable
                                                                                                                @Nullable java.lang.String displayName,
                                                                                                                @Nullable
                                                                                                                @Nullable INImage image,
                                                                                                                @Nullable
                                                                                                                @Nullable java.lang.String contactIdentifier,
                                                                                                                @Nullable
                                                                                                                @Nullable java.lang.String customIdentifier,
                                                                                                                boolean isMe)
        API-Since: 12.0
      • initWithPersonHandleNameComponentsDisplayNameImageContactIdentifierCustomIdentifierRelationship

        public INPerson initWithPersonHandleNameComponentsDisplayNameImageContactIdentifierCustomIdentifierRelationship​(@NotNull
                                                                                                                        @NotNull INPersonHandle personHandle,
                                                                                                                        @Nullable
                                                                                                                        @Nullable NSPersonNameComponents nameComponents,
                                                                                                                        @Nullable
                                                                                                                        @Nullable java.lang.String displayName,
                                                                                                                        @Nullable
                                                                                                                        @Nullable INImage image,
                                                                                                                        @Nullable
                                                                                                                        @Nullable java.lang.String contactIdentifier,
                                                                                                                        @Nullable
                                                                                                                        @Nullable java.lang.String customIdentifier,
                                                                                                                        @Nullable
                                                                                                                        @Nullable java.lang.String relationship)
        API-Since: 14.0
      • initWithPersonHandleNameComponentsDisplayNameImageContactIdentifierCustomIdentifierIsContactSuggestionSuggestionType

        public INPerson initWithPersonHandleNameComponentsDisplayNameImageContactIdentifierCustomIdentifierIsContactSuggestionSuggestionType​(@NotNull
                                                                                                                                             @NotNull INPersonHandle personHandle,
                                                                                                                                             @Nullable
                                                                                                                                             @Nullable NSPersonNameComponents nameComponents,
                                                                                                                                             @Nullable
                                                                                                                                             @Nullable java.lang.String displayName,
                                                                                                                                             @Nullable
                                                                                                                                             @Nullable INImage image,
                                                                                                                                             @Nullable
                                                                                                                                             @Nullable java.lang.String contactIdentifier,
                                                                                                                                             @Nullable
                                                                                                                                             @Nullable java.lang.String customIdentifier,
                                                                                                                                             boolean isContactSuggestion,
                                                                                                                                             long suggestionType)
        API-Since: 15.0
      • initWithPersonHandleNameComponentsDisplayNameImageContactIdentifierCustomIdentifierIsMeSuggestionType

        public INPerson initWithPersonHandleNameComponentsDisplayNameImageContactIdentifierCustomIdentifierIsMeSuggestionType​(@NotNull
                                                                                                                              @NotNull INPersonHandle personHandle,
                                                                                                                              @Nullable
                                                                                                                              @Nullable NSPersonNameComponents nameComponents,
                                                                                                                              @Nullable
                                                                                                                              @Nullable java.lang.String displayName,
                                                                                                                              @Nullable
                                                                                                                              @Nullable INImage image,
                                                                                                                              @Nullable
                                                                                                                              @Nullable java.lang.String contactIdentifier,
                                                                                                                              @Nullable
                                                                                                                              @Nullable java.lang.String customIdentifier,
                                                                                                                              boolean isMe,
                                                                                                                              long suggestionType)
        API-Since: 15.0
      • isContactSuggestion

        public boolean isContactSuggestion()
        Indicates that the person is confirmed API-Since: 15.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.