Class SFSafariViewController

    • Constructor Detail

      • SFSafariViewController

        protected SFSafariViewController​(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)
      • attemptRotationToDeviceOrientation

        public static void attemptRotationToDeviceOrientation()
      • 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()
      • clearTextInputContextIdentifier

        public static void clearTextInputContextIdentifier​(java.lang.String identifier)
      • 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()
      • 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()
      • prepareInterstitialAds

        public static void prepareInterstitialAds()
      • 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)
      • superclass_static

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

        public static long version_static()
      • initWithNibNameBundle

        public SFSafariViewController initWithNibNameBundle​(java.lang.String nibNameOrNil,
                                                            NSBundle nibBundleOrNil)
        Description copied from class: UIViewController
        The designated initializer. If you subclass UIViewController, you must call the super implementation of this method, even if you aren't using a NIB. (As a convenience, the default init method will do this for you, and specify nil for both of this methods arguments.) In the specified NIB, the File's Owner proxy should have its class set to your view controller subclass, with the view outlet connected to the main view. If you invoke this method with a nil nib name, then this class' -loadView method will attempt to load a NIB whose name is the same as your view controller's class. If no such NIB in fact exists then you must either call -setView: before -view is invoked, or override the -loadView method to set up your views programatically.
        Overrides:
        initWithNibNameBundle in class UIViewController
      • initWithURL

        public SFSafariViewController initWithURL​(NSURL URL)
        Returns a view controller that loads a URL.
        Parameters:
        URL - the initial URL to navigate to. Only supports initial URLs with http:// or https:// schemes.
      • initWithURLEntersReaderIfAvailable

        public SFSafariViewController initWithURLEntersReaderIfAvailable​(NSURL URL,
                                                                         boolean entersReaderIfAvailable)
        Returns a view controller that loads a URL.
        Parameters:
        URL - the initial URL to navigate to. Only supports initial URLs with http:// or https:// schemes.
        entersReaderIfAvailable - indicates if the Safari Reader version of content should be shown automatically when Safari Reader is available on a web page.
      • preferredBarTintColor

        public UIColor preferredBarTintColor()
        The preferred color to tint the background of the navigation bar and toolbar. If SFSafariViewController is in Private Browsing mode or is displaying an anti-phishing warning page, this color will be ignored. Changes made after the view controller has been presented will not be reflected.
      • preferredControlTintColor

        public UIColor preferredControlTintColor()
        The preferred color to tint the control buttons on the navigation bar and toolbar. If SFSafariViewController is in Private Browsing mode or is displaying an anti-phishing warning page, this color will be ignored. Changes made after the view controller has been presented will not be reflected.
      • setPreferredBarTintColor

        public void setPreferredBarTintColor​(UIColor value)
        The preferred color to tint the background of the navigation bar and toolbar. If SFSafariViewController is in Private Browsing mode or is displaying an anti-phishing warning page, this color will be ignored. Changes made after the view controller has been presented will not be reflected.
      • setPreferredControlTintColor

        public void setPreferredControlTintColor​(UIColor value)
        The preferred color to tint the control buttons on the navigation bar and toolbar. If SFSafariViewController is in Private Browsing mode or is displaying an anti-phishing warning page, this color will be ignored. Changes made after the view controller has been presented will not be reflected.
      • dismissButtonStyle

        public long dismissButtonStyle()
        The style of dismiss button to use in the navigation bar to close SFSafariViewController. The default value is SFSafariViewControllerDismissButtonStyleDone, which makes the button title the localized string "Done". You can use other values such as "Close" to provide consistency with your app. "Cancel" is ideal when using SFSafariViewController to log in to an external service. All values will show a string localized to the user's locale. Changing this property after SFSafariViewController is presented will animate the change.
      • initWithURLConfiguration

        public SFSafariViewController initWithURLConfiguration​(NSURL URL,
                                                               SFSafariViewControllerConfiguration configuration)
        Returns a view controller that loads a URL. This is a designated initializer. You can use [@link] -initWithURL: @/link to initialize an instance with the default configuration. Mutating the configuration after invoking the initializer has no effect on the view controller.
        Parameters:
        URL - the initial URL to navigate to. Only supports initial URLs with http:// or https:// schemes.
        configuration - the configuration for the new view controller.
      • setDismissButtonStyle

        public void setDismissButtonStyle​(long value)
        The style of dismiss button to use in the navigation bar to close SFSafariViewController. The default value is SFSafariViewControllerDismissButtonStyleDone, which makes the button title the localized string "Done". You can use other values such as "Close" to provide consistency with your app. "Cancel" is ideal when using SFSafariViewController to log in to an external service. All values will show a string localized to the user's locale. Changing this property after SFSafariViewController is presented will animate the change.