Class CPInterfaceController

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

public class CPInterfaceController
extends NSObject
Since:
Available in iOS 12.0 and later.
  • Constructor Details

    • CPInterfaceController

      protected CPInterfaceController()
    • CPInterfaceController

      protected CPInterfaceController​(NSObject.Handle h, long handle)
    • CPInterfaceController

      protected CPInterfaceController​(NSObject.SkipInit skipInit)
  • Method Details

    • getDelegate

      public CPInterfaceControllerDelegate getDelegate()
    • setDelegate

      public void setDelegate​(CPInterfaceControllerDelegate v)
    • prefersDarkUserInterfaceStyle

      public boolean prefersDarkUserInterfaceStyle()
      Since:
      Available in iOS 13.0 and later.
    • setPrefersDarkUserInterfaceStyle

      public void setPrefersDarkUserInterfaceStyle​(boolean v)
      Since:
      Available in iOS 13.0 and later.
    • getPresentedTemplate

      public CPTemplate getPresentedTemplate()
    • getRootTemplate

      public CPTemplate getRootTemplate()
    • getTopTemplate

      public CPTemplate getTopTemplate()
    • getTemplates

      public NSArray<CPTemplate> getTemplates()
    • getCarTraitCollection

      public UITraitCollection getCarTraitCollection()
      Since:
      Available in iOS 14.0 and later.
    • setRootTemplate

      public void setRootTemplate​(CPTemplate rootTemplate, boolean animated, VoidBlock2<Boolean,​NSError> completion)
      Since:
      Available in iOS 14.0 and later.
    • pushTemplate

      public void pushTemplate​(CPTemplate templateToPush, boolean animated, VoidBlock2<Boolean,​NSError> completion)
      Since:
      Available in iOS 14.0 and later.
    • popTemplate

      public void popTemplate​(boolean animated, VoidBlock2<Boolean,​NSError> completion)
      Since:
      Available in iOS 14.0 and later.
    • popToRootTemplate

      public void popToRootTemplate​(boolean animated, VoidBlock2<Boolean,​NSError> completion)
      Since:
      Available in iOS 14.0 and later.
    • popToTemplate

      public void popToTemplate​(CPTemplate targetTemplate, boolean animated, VoidBlock2<Boolean,​NSError> completion)
      Since:
      Available in iOS 14.0 and later.
    • presentTemplate

      public void presentTemplate​(CPTemplate templateToPresent, boolean animated, VoidBlock2<Boolean,​NSError> completion)
      Since:
      Available in iOS 14.0 and later.
    • dismissTemplate

      public void dismissTemplate​(boolean animated, VoidBlock2<Boolean,​NSError> completion)
      Since:
      Available in iOS 14.0 and later.
    • setRootTemplate

      @Deprecated public void setRootTemplate​(CPTemplate rootTemplate, boolean animated)
      Deprecated.
      Deprecated in iOS 14.0. Use -setRootTemplate:animated:completion:
      Since:
      Available in iOS 12.0 and later.
    • pushTemplate

      @Deprecated public void pushTemplate​(CPTemplate templateToPush, boolean animated)
      Deprecated.
      Deprecated in iOS 14.0. Use -pushTemplate:animated:completion:
      Since:
      Available in iOS 12.0 and later.
    • popTemplateAnimated

      @Deprecated public void popTemplateAnimated​(boolean animated)
      Deprecated.
      Deprecated in iOS 14.0. Use -popTemplateAnimated:completion:
      Since:
      Available in iOS 12.0 and later.
    • popToRootTemplateAnimated

      @Deprecated public void popToRootTemplateAnimated​(boolean animated)
      Deprecated.
      Deprecated in iOS 14.0. Use -popToRootTemplateAnimated:completion:
      Since:
      Available in iOS 12.0 and later.
    • popToTemplate

      @Deprecated public void popToTemplate​(CPTemplate targetTemplate, boolean animated)
      Deprecated.
      Deprecated in iOS 14.0. Use -popToTemplate:animated:completion:
      Since:
      Available in iOS 12.0 and later.
    • presentTemplate

      @Deprecated public void presentTemplate​(CPTemplate templateToPresent, boolean animated)
      Deprecated.
      Deprecated in iOS 14.0. Use -presentTemplate:animated:completion:
      Since:
      Available in iOS 12.0 and later.
    • dismissTemplateAnimated

      @Deprecated public void dismissTemplateAnimated​(boolean animated)
      Deprecated.
      Deprecated in iOS 14.0. Use -dismissTemplateAnimated:completion:
      Since:
      Available in iOS 12.0 and later.