public class UIAlertController extends UIViewController
Modifier and Type | Method and Description |
---|---|
List<UIAlertAction> |
actions()
Returns a list of actions that this alert provides to the user.
|
void |
addAction(UIAlertAction action)
Adds an action to the alert or the action sheet.
|
void |
addTextFieldWithConfigurationHandler(org.robovm.objc.block.VoidBlock1<UITextField> configurationHandler)
Used in order to adds a text field to an alert.
|
static UIAlertController |
alertControllerWithTitle(String title,
String message,
int UIAlertControllerStyle)
Constructs an alert controller with the specified parameters.
|
String |
message()
Returns a text that contains the details of the alert purpose.
|
int |
preferredStyle()
Returns the style of alert controller.
|
void |
setMessage(String message)
Sets a text that contains the details of the alert purpose.
|
List<UITextField> |
textFields()
Returns an array of text fields that are displayed by this alert.
|
void |
viewWillAppear(boolean animated)
Called before the view is added to the view controller's hierarchy with
animation or not according to the Boolean parameter.
|
addChildViewController, additionalSafeAreaInsets, allowedChildViewControllersForUnwindingFromSource, attemptRotationToDeviceOrientation, automaticallyAdjustsScrollViewInsets, beginAppearanceTransition, bottomLayoutGuide, childViewControllerContainingSegueSource, childViewControllerForStatusBarHidden, childViewControllerForStatusBarStyle, childViewControllers, contentSizeForViewInPopover, definesPresentationContext, didReceiveMemoryWarning, didRotateFromInterfaceOrientation, disablesAutomaticKeyboardDismissal, dismissModalViewControllerAnimated, dismissViewControllerAnimated, edgesForExtendedLayout, editButtonItem, endAppearanceTransition, extensionContext, hidesBottomBarWhenPushed, interfaceOrientation, isEditing, isModalInPopover, isViewLoaded, loadView, loadViewIfNeeded, modalPresentationStyle, modalTransitionStyle, navigationController, navigationItem, nextResponder, nibName, parentViewController, performSegueWithIdentifier, preferredInterfaceOrientationForPresentation, preferredStatusBarStyle, prefersStatusBarHidden, prepareForSegue, presentedViewController, presentingViewController, presentModalViewController, presentViewController, providesPresentationContextTransitionStyle, removeFromParentViewController, restorationIdentifier, rotatingFooterView, rotatingHeaderView, setAdditionalSafeAreaInsets, setAutomaticallyAdjustsScrollViewInsets, setContentSizeForViewInPopover, setDefinesPresentationContext, setEdgesForExtendedLayout, setEditing, setEditing, setHidesBottomBarWhenPushed, setModalInPopover, setModalPresentationStyle, setModalTransitionStyle, setNeedsStatusBarAppearanceUpdate, setProvidesPresentationContextTransitionStyle, setRestorationIdentifier, setTabBarItem, setTitle, setToolbarItems, setToolbarItems, setView, setWantsFullScreenLayout, shouldAutomaticallyForwardAppearanceMethods, shouldAutorotate, shouldAutorotateToInterfaceOrientation, shouldPerformSegueWithIdentifier, showDetailViewController, showViewController, splitViewController, storyboard, supportedInterfaceOrientations, tabBarController, tabBarItem, title, toolbarItems, topLayoutGuide, transitionFromViewController, view, viewDidAppear, viewDidDisappear, viewDidLayoutSubviews, viewDidLoad, viewDidUnload, viewIfLoaded, viewSafeAreaInsetsDidChange, viewWillDisappear, viewWillLayoutSubviews, wantsFullScreenLayout, willAnimateRotationToInterfaceOrientation, willRotateToInterfaceOrientation
becomeFirstResponder, isFirstResponder, resignFirstResponder, touchesBegan, touchesCancelled, touchesEnded, touchesMoved
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
public static UIAlertController alertControllerWithTitle(String title, String message, int UIAlertControllerStyle)
title
- The title of the alert.message
- The text with details of the alert purpose.UIAlertControllerStyle
- The style of the alert controller.UIAlertControllerStyle
public String message()
public void setMessage(String message)
message
- The String with the details of the alert purpose.public int preferredStyle()
public void addAction(UIAlertAction action)
action
- The action to be added to the alert or the action sheet.public List<UIAlertAction> actions()
public void addTextFieldWithConfigurationHandler(org.robovm.objc.block.VoidBlock1<UITextField> configurationHandler)
configurationHandler
- A block use for the configuration of the text
field before being displayed to the alert.public List<UITextField> textFields()
public void viewWillAppear(boolean animated)
UIViewController
viewWillAppear
in class UIViewController
animated
- If set TRUE the view is added with animation.Copyright © 2020. All rights reserved.