Package apple.carplay

Class CPInterfaceController

  • All Implemented Interfaces:
    NSObject

    public class CPInterfaceController
    extends NSObject
    • Constructor Detail

      • CPInterfaceController

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • 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()
      • dismissTemplateAnimated

        public void dismissTemplateAnimated​(boolean animated)
        Dismiss the current modally-presented template, optionally animating the dismissal. [@note] If there is no current modally-presented template, this method will have no effect.
      • 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

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

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

        public void popTemplateAnimated​(boolean animated)
        Pop back a single level in the template navigation hierarchy.
      • popToRootTemplateAnimated

        public void popToRootTemplateAnimated​(boolean animated)
        Pop back to the first template in the template navigation hierarchy.
      • popToTemplateAnimated

        public void popToTemplateAnimated​(CPTemplate targetTemplate,
                                          boolean animated)
        Pop back to a specified template. targetTemplate must exist in the current template navigation hierarchy.
      • prefersDarkUserInterfaceStyle

        public boolean prefersDarkUserInterfaceStyle()
        Set the preferred interface style to UIUserInterfaceStyleDark for all templates. Set this value to YES prior to setting a root template or pushing any templates for first appearance to have style UIUserInterfaceStyleDark. The default value is NO which will allow templates to change between light and dark styles.
      • presentTemplateAnimated

        public void presentTemplateAnimated​(CPTemplate templateToPresent,
                                            boolean animated)
        Present a template modally over the navigation hierarchy. Only one template may be presented at a time. [@note] Supported template types: @c CPActionSheetTemplate, @c CPAlertTemplate, @c CPVoiceControlTemplate
      • presentedTemplate

        public CPTemplate presentedTemplate()
        The current modally-presented template. [@warning] Reading this property may synchronously perform an IPC call to retrieve the current presented template.
      • pushTemplateAnimated

        public void pushTemplateAnimated​(CPTemplate templateToPush,
                                         boolean animated)
        Push a new template onto the template navigation hierarchy, showing it immediately.
      • resolveClassMethod

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

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

        public CPTemplate rootTemplate()
        Returns the root template.
      • setPrefersDarkUserInterfaceStyle

        public void setPrefersDarkUserInterfaceStyle​(boolean value)
        Set the preferred interface style to UIUserInterfaceStyleDark for all templates. Set this value to YES prior to setting a root template or pushing any templates for first appearance to have style UIUserInterfaceStyleDark. The default value is NO which will allow templates to change between light and dark styles.
      • setRootTemplateAnimated

        public void setRootTemplateAnimated​(CPTemplate rootTemplate,
                                            boolean animated)
        Set the root template. If no existing templates exist in the template navigation hierarchy, the animated flag will be ignored. If there is an existing template navigation hierarchy, the existing stack will be replaced by the new root template.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        public NSArray<? extends CPTemplate> templates()
        The current stack of templates in the navigation hierarchy. [@warning] Reading this property may synchronously perform an IPC call to retrieve the current stack of templates.
      • topTemplate

        public CPTemplate topTemplate()
        The top template in the navigation hierarchy. [@warning] Reading this property may synchronously perform an IPC call to retrieve the current top-most template.
      • version_static

        public static long version_static()
      • carTraitCollection

        public UITraitCollection carTraitCollection()
        The trait collection for the car's primary screen. Your app should use this trait collection when deriving metrics, like screen scale, for your templates. For example, images you display in any template should be sized to a display scale matching the scale of the @c carTraitCollection, not the scale of the iOS device's main screen.
      • dismissTemplateAnimatedCompletion

        public void dismissTemplateAnimatedCompletion​(boolean animated,
                                                      CPInterfaceController.Block_dismissTemplateAnimatedCompletion completion)
        Dismiss the current modally-presented template, optionally animating the dismissal. [@note] If there is no current modally-presented template, this method will have no effect. The completion block will be called after the template has been dismissed. If the template was dismissed successfully, the boolean parameter will be YES. Otherwise, the boolean parameter will be NO and an @c NSError will be provided describing the failure.
      • popTemplateAnimatedCompletion

        public void popTemplateAnimatedCompletion​(boolean animated,
                                                  CPInterfaceController.Block_popTemplateAnimatedCompletion completion)
        Pop back a single level in the template navigation hierarchy. The completion block will be called after the pop completes. The success parameter in the completion block indicates if any template was popped.
      • popToRootTemplateAnimatedCompletion

        public void popToRootTemplateAnimatedCompletion​(boolean animated,
                                                        CPInterfaceController.Block_popToRootTemplateAnimatedCompletion completion)
        Pop back to the first template in the template navigation hierarchy. The completion block will be called after the pop completes. The success parameter in the completion block indicates if any templates were popped.
      • popToTemplateAnimatedCompletion

        public void popToTemplateAnimatedCompletion​(CPTemplate targetTemplate,
                                                    boolean animated,
                                                    CPInterfaceController.Block_popToTemplateAnimatedCompletion completion)
        Pop back to a specified template. targetTemplate must exist in the current template navigation hierarchy. The completion block will be called after the pop completes. If the specified template does not exist in the template stack, the completion block will be called with a success parameter of NO and a non-nil NSError.
      • presentTemplateAnimatedCompletion

        public void presentTemplateAnimatedCompletion​(CPTemplate templateToPresent,
                                                      boolean animated,
                                                      CPInterfaceController.Block_presentTemplateAnimatedCompletion completion)
        Present a template modally over the navigation hierarchy. Only one template may be presented at a time. [@note] Supported template types: @c CPActionSheetTemplate, @c CPAlertTemplate, @c CPVoiceControlTemplate The completion block will be called after the template has been presented. If the template was presented successfully, the boolean parameter will be YES. Otherwise, the boolean parameter will be NO and an @c NSError will be provided describing the failure. [@note] If the template presentation is not successful AND no completion block is specified, an exception will be thrown.
      • pushTemplateAnimatedCompletion

        public void pushTemplateAnimatedCompletion​(CPTemplate templateToPush,
                                                   boolean animated,
                                                   CPInterfaceController.Block_pushTemplateAnimatedCompletion completion)
        Push a new template onto the template navigation hierarchy, showing it immediately. The completion block will be called after the template has been presented. If the template was presented successfully, the boolean parameter will be YES. Otherwise, the boolean parameter will be NO and an @c NSError will be provided describing the failure. [@note] If the template presentation is not successful AND no completion block is specified, an exception will be thrown.
      • setRootTemplateAnimatedCompletion

        public void setRootTemplateAnimatedCompletion​(CPTemplate rootTemplate,
                                                      boolean animated,
                                                      CPInterfaceController.Block_setRootTemplateAnimatedCompletion completion)
        Set the root template. If no existing templates exist in the template navigation hierarchy, the animated flag will be ignored. If there is an existing template navigation hierarchy, the existing stack will be replaced by the new root template. The completion block will be called after the template has been presented. If the template was presented successfully, the boolean parameter will be YES. Otherwise, the boolean parameter will be NO and an @c NSError will be provided describing the failure. [@note] If the template presentation is not successful AND no completion block is specified, an exception will be thrown.