Package apple.carplay
Class CPInterfaceController
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.carplay.CPInterfaceController
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCPInterfaceController.Block_dismissTemplateAnimatedCompletionstatic interfaceCPInterfaceController.Block_popTemplateAnimatedCompletionstatic interfaceCPInterfaceController.Block_popToRootTemplateAnimatedCompletionstatic interfaceCPInterfaceController.Block_popToTemplateAnimatedCompletionstatic interfaceCPInterfaceController.Block_presentTemplateAnimatedCompletionstatic interfaceCPInterfaceController.Block_pushTemplateAnimatedCompletionstatic interfaceCPInterfaceController.Block_setRootTemplateAnimatedCompletion-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCPInterfaceController(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static CPInterfaceControlleralloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)UITraitCollectioncarTraitCollection()The trait collection for the car's primary screen.static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()static java.lang.StringdebugDescription_static()CPInterfaceControllerDelegatedelegate()The delegate for this interface controller.static java.lang.Stringdescription_static()voiddismissTemplateAnimated(boolean animated)Dismiss the current modally-presented template, optionally animating the dismissal.voiddismissTemplateAnimatedCompletion(boolean animated, CPInterfaceController.Block_dismissTemplateAnimatedCompletion completion)Dismiss the current modally-presented template, optionally animating the dismissal.static longhash_static()CPInterfaceControllerinit()static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static java.lang.Objectnew_objc()voidpopTemplateAnimated(boolean animated)Pop back a single level in the template navigation hierarchy.voidpopTemplateAnimatedCompletion(boolean animated, CPInterfaceController.Block_popTemplateAnimatedCompletion completion)Pop back a single level in the template navigation hierarchy.voidpopToRootTemplateAnimated(boolean animated)Pop back to the first template in the template navigation hierarchy.voidpopToRootTemplateAnimatedCompletion(boolean animated, CPInterfaceController.Block_popToRootTemplateAnimatedCompletion completion)Pop back to the first template in the template navigation hierarchy.voidpopToTemplateAnimated(CPTemplate targetTemplate, boolean animated)Pop back to a specified template.voidpopToTemplateAnimatedCompletion(CPTemplate targetTemplate, boolean animated, CPInterfaceController.Block_popToTemplateAnimatedCompletion completion)Pop back to a specified template.booleanprefersDarkUserInterfaceStyle()Set the preferred interface style to UIUserInterfaceStyleDark for all templates.CPTemplatepresentedTemplate()The current modally-presented template.voidpresentTemplateAnimated(CPTemplate templateToPresent, boolean animated)Present a template modally over the navigation hierarchy.voidpresentTemplateAnimatedCompletion(CPTemplate templateToPresent, boolean animated, CPInterfaceController.Block_presentTemplateAnimatedCompletion completion)Present a template modally over the navigation hierarchy.voidpushTemplateAnimated(CPTemplate templateToPush, boolean animated)Push a new template onto the template navigation hierarchy, showing it immediately.voidpushTemplateAnimatedCompletion(CPTemplate templateToPush, boolean animated, CPInterfaceController.Block_pushTemplateAnimatedCompletion completion)Push a new template onto the template navigation hierarchy, showing it immediately.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)CPTemplaterootTemplate()Returns the root template.voidsetDelegate(CPInterfaceControllerDelegate value)The delegate for this interface controller.voidsetDelegate_unsafe(CPInterfaceControllerDelegate value)The delegate for this interface controller.voidsetPrefersDarkUserInterfaceStyle(boolean value)Set the preferred interface style to UIUserInterfaceStyleDark for all templates.voidsetRootTemplateAnimated(CPTemplate rootTemplate, boolean animated)Set the root template.voidsetRootTemplateAnimatedCompletion(CPTemplate rootTemplate, boolean animated, CPInterfaceController.Block_setRootTemplateAnimatedCompletion completion)Set the root template.static voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()NSArray<? extends CPTemplate>templates()The current stack of templates in the navigation hierarchy.CPTemplatetopTemplate()The top template in the navigation hierarchy.static longversion_static()-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static CPInterfaceController alloc()
-
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()
-
delegate
public CPInterfaceControllerDelegate delegate()
The delegate for this interface controller.
-
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()
-
init
public CPInterfaceController init()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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.
-
setDelegate_unsafe
public void setDelegate_unsafe(CPInterfaceControllerDelegate value)
The delegate for this interface controller.
-
setDelegate
public void setDelegate(CPInterfaceControllerDelegate value)
The delegate for this interface controller.
-
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.
-
-