Package apple.carplay

Class CPContact

    • Constructor Detail

      • CPContact

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • actions

        public NSArray<? extends CPButton> actions()
        Action buttons that will be displayed when this @c CPContact is displayed in a @c CPContactTemplate.
      • allocWithZone

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

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

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

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

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

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

        public UIImage image()
        An image representing the contact.
      • informativeText

        public java.lang.String informativeText()
        Optional text that will be displayed in addition to the contact name
      • initWithNameImage

        public CPContact initWithNameImage​(java.lang.String name,
                                           UIImage image)
        Initializes a new contact to be used with @c CPContactTemplate, with a name and image [@note] When providing an image, your app should provide a @c UIImage that is display-ready. If necessary for the image, provide light and dark styles by using an asset from your asset catalog, prepared with light and dark styles or by using @c UIImageAsset to combine two @c UIImage instances into a single image with both styles. UIImageAsset is used to combine multiple UIImages with different trait collections into a single UIImage. To properly size your list images, your app should consider the display scale of the car screen. See -[CPInterfaceController carTraitCollection].
        Parameters:
        name - The name to be displayed for this contact.
        image - An image for this contact. The maximum image size in points is CPButtonMaximumImageSize; larger images will be scaled down.
      • 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

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • name

        public java.lang.String name()
        The name that will be displayed for this contact.
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

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

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

        public void setActions​(NSArray<? extends CPButton> value)
        Action buttons that will be displayed when this @c CPContact is displayed in a @c CPContactTemplate.
      • setImage

        public void setImage​(UIImage value)
        An image representing the contact.
      • setInformativeText

        public void setInformativeText​(java.lang.String value)
        Optional text that will be displayed in addition to the contact name
      • setName

        public void setName​(java.lang.String value)
        The name that will be displayed for this contact.
      • setSubtitle

        public void setSubtitle​(java.lang.String value)
        Optional text that will be displayed in addition to the contact name
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • subtitle

        public java.lang.String subtitle()
        Optional text that will be displayed in addition to the contact name
      • 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()