Package apple.carplay

Class CPAlertAction

  • All Implemented Interfaces:
    NSCoding, NSSecureCoding, NSObject

    public class CPAlertAction
    extends NSObject
    implements NSSecureCoding
    [@c] CPAlertAction represents a single action that appears inside of a @c CPActionSheetTemplate or @c CPAlertTemplate. The style of the parent template and the style of the @c CPAlertAction will together determine the action's appearance. The action has a customizable title, style, and a block callback that is invoked when the user taps this button. API-Since: 12.0
    • Constructor Detail

      • CPAlertAction

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

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

        public CPAlertAction initWithTitleStyleHandler​(@NotNull
                                                       @NotNull java.lang.String title,
                                                       long style,
                                                       @NotNull
                                                       @NotNull CPAlertAction.Block_initWithTitleStyleHandler handler)
        Create an alert action with a title, display style, and a callback handler that is invoked when the user taps this action.
      • 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)
      • 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)
      • style

        public long style()
      • 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
      • title

        @NotNull
        public @NotNull java.lang.String title()
      • version_static

        public static long version_static()
      • color

        @Nullable
        public @Nullable UIColor color()
        API-Since: 16.0
      • initWithTitleColorHandler

        public CPAlertAction initWithTitleColorHandler​(@NotNull
                                                       @NotNull java.lang.String title,
                                                       @NotNull
                                                       @NotNull UIColor color,
                                                       @NotNull
                                                       @NotNull CPAlertAction.Block_initWithTitleColorHandler handler)
        Create an alert action with a title, a custom action color, and a callback handler that is invoked when the user taps this action. The system will automatically determine if the provided color meets contrast requirements. If the provided color does not meet contrast requirements, the system default will be used. Font color will automatically be adjusted by the system to correspond with this color. Alpha values will be ignored. API-Since: 16.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.