Package org.robovm.apple.uikit
Class UIPresentationController
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.uikit.UIPresentationController
-
- All Implemented Interfaces:
NSObjectProtocol
,UIAppearanceContainer
,UIContentContainer
,UIFocusEnvironment
,UITraitEnvironment
,org.robovm.objc.ObjCProtocol
- Direct Known Subclasses:
UIPopoverPresentationController
public class UIPresentationController extends NSObject implements UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment
- Since:
- Available in iOS 8.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UIPresentationController.UIPresentationControllerPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UIPresentationController()
protected
UIPresentationController(NSObject.Handle h, long handle)
protected
UIPresentationController(NSObject.SkipInit skipInit)
UIPresentationController(UIViewController presentedViewController, UIViewController presentingViewController)
-
Method Summary
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
UIPresentationController
protected UIPresentationController()
-
UIPresentationController
protected UIPresentationController(NSObject.Handle h, long handle)
-
UIPresentationController
protected UIPresentationController(NSObject.SkipInit skipInit)
-
UIPresentationController
public UIPresentationController(UIViewController presentedViewController, UIViewController presentingViewController)
-
-
Method Detail
-
getPresentingViewController
public UIViewController getPresentingViewController()
-
getPresentedViewController
public UIViewController getPresentedViewController()
-
getPresentationStyle
public UIModalPresentationStyle getPresentationStyle()
-
getContainerView
public UIView getContainerView()
-
getDelegate
public UIAdaptivePresentationControllerDelegate getDelegate()
-
setDelegate
public void setDelegate(UIAdaptivePresentationControllerDelegate v)
-
getAdaptivePresentationStyle
public UIModalPresentationStyle getAdaptivePresentationStyle()
-
getPresentedView
public UIView getPresentedView()
-
getFrameOfPresentedViewInContainerView
public CGRect getFrameOfPresentedViewInContainerView()
-
shouldPresentInFullscreen
public boolean shouldPresentInFullscreen()
-
shouldRemovePresentersView
public boolean shouldRemovePresentersView()
-
getOverrideTraitCollection
public UITraitCollection getOverrideTraitCollection()
-
setOverrideTraitCollection
public void setOverrideTraitCollection(UITraitCollection v)
-
getTraitCollection
public UITraitCollection getTraitCollection()
- Specified by:
getTraitCollection
in interfaceUITraitEnvironment
- Since:
- Available in iOS 8.0 and later.
-
getPreferredContentSize
public CGSize getPreferredContentSize()
- Specified by:
getPreferredContentSize
in interfaceUIContentContainer
- Since:
- Available in iOS 8.0 and later.
-
getPreferredFocusEnvironments
public java.util.List<UIFocusEnvironment> getPreferredFocusEnvironments()
- Specified by:
getPreferredFocusEnvironments
in interfaceUIFocusEnvironment
-
getParentFocusEnvironment
public UIFocusEnvironment getParentFocusEnvironment()
- Specified by:
getParentFocusEnvironment
in interfaceUIFocusEnvironment
- Since:
- Available in iOS 12.0 and later.
-
getFocusItemContainer
public UIFocusItemContainer getFocusItemContainer()
- Specified by:
getFocusItemContainer
in interfaceUIFocusEnvironment
- Since:
- Available in iOS 12.0 and later.
-
getPreferredFocusedView
@Deprecated public UIView getPreferredFocusedView()
Deprecated.Deprecated in iOS 10.0. Use -preferredFocusEnvironments instead.- Specified by:
getPreferredFocusedView
in interfaceUIFocusEnvironment
- Since:
- Available in iOS 9.0 and later.
-
init
protected long init(UIViewController presentedViewController, UIViewController presentingViewController)
-
getAdaptivePresentationStyleForTraitCollection
public UIModalPresentationStyle getAdaptivePresentationStyleForTraitCollection(UITraitCollection traitCollection)
- Since:
- Available in iOS 8.3 and later.
-
containerViewWillLayoutSubviews
public void containerViewWillLayoutSubviews()
-
containerViewDidLayoutSubviews
public void containerViewDidLayoutSubviews()
-
presentationTransitionWillBegin
public void presentationTransitionWillBegin()
-
presentationTransitionDidEnd
public void presentationTransitionDidEnd(boolean completed)
-
dismissalTransitionWillBegin
public void dismissalTransitionWillBegin()
-
dismissalTransitionDidEnd
public void dismissalTransitionDidEnd(boolean completed)
-
traitCollectionDidChange
public void traitCollectionDidChange(UITraitCollection previousTraitCollection)
- Specified by:
traitCollectionDidChange
in interfaceUITraitEnvironment
- Since:
- Available in iOS 8.0 and later.
-
preferredContentSizeDidChangeForChildContentContainer
public void preferredContentSizeDidChangeForChildContentContainer(UIContentContainer container)
- Specified by:
preferredContentSizeDidChangeForChildContentContainer
in interfaceUIContentContainer
- Since:
- Available in iOS 8.0 and later.
-
systemLayoutFittingSizeDidChangeForChildContentContainer
public void systemLayoutFittingSizeDidChangeForChildContentContainer(UIContentContainer container)
- Specified by:
systemLayoutFittingSizeDidChangeForChildContentContainer
in interfaceUIContentContainer
- Since:
- Available in iOS 8.0 and later.
-
sizeForChildContentContainer
public CGSize sizeForChildContentContainer(UIContentContainer container, CGSize parentSize)
- Specified by:
sizeForChildContentContainer
in interfaceUIContentContainer
- Since:
- Available in iOS 8.0 and later.
-
viewWillTransitionToSize
public void viewWillTransitionToSize(CGSize size, UIViewControllerTransitionCoordinator coordinator)
- Specified by:
viewWillTransitionToSize
in interfaceUIContentContainer
- Since:
- Available in iOS 8.0 and later.
-
willTransitionToTraitCollection
public void willTransitionToTraitCollection(UITraitCollection newCollection, UIViewControllerTransitionCoordinator coordinator)
- Specified by:
willTransitionToTraitCollection
in interfaceUIContentContainer
- Since:
- Available in iOS 8.0 and later.
-
setNeedsFocusUpdate
public void setNeedsFocusUpdate()
- Specified by:
setNeedsFocusUpdate
in interfaceUIFocusEnvironment
-
updateFocusIfNeeded
public void updateFocusIfNeeded()
- Specified by:
updateFocusIfNeeded
in interfaceUIFocusEnvironment
-
shouldUpdateFocus
public boolean shouldUpdateFocus(UIFocusUpdateContext context)
- Specified by:
shouldUpdateFocus
in interfaceUIFocusEnvironment
-
didUpdateFocus
public void didUpdateFocus(UIFocusUpdateContext context, UIFocusAnimationCoordinator coordinator)
- Specified by:
didUpdateFocus
in interfaceUIFocusEnvironment
-
-