@Deprecated public class UIActionSheet extends UIView
This object is deprecated, please use UIAlertController with UIAlertControllerStyle.Alert instead.
UIAlertController
,
UIAlertControllerStyle.Sheet
NoIntrinsicMetric
Constructor and Description |
---|
UIActionSheet(String title,
UIActionSheetDelegate delegate,
String cancelButtonTitle,
String destructiveButtonTitle,
String... otherButtonTitles)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
addButtonWithTitle(String title)
Deprecated.
Add a new button to the action sheet
|
int |
cancelButtonIndex()
Deprecated.
|
UIActionSheetDelegate |
delegate()
Deprecated.
|
int |
destructiveButtonIndex()
Deprecated.
|
void |
dismissWithClickedButtonIndex(int buttonIndex,
boolean animated)
Deprecated.
|
int |
firstOtherButtonIndex()
Deprecated.
|
int |
numberOfButtons()
Deprecated.
|
void |
setDelegate(UIActionSheetDelegate delegate)
Deprecated.
|
void |
setTitle(String title)
Deprecated.
Sets the title of this action sheet
|
void |
showFromTabBar(UITabBar bar)
Deprecated.
|
void |
showFromToolbar(UIToolbar bar)
Deprecated.
|
void |
showInView(UIView view)
Deprecated.
|
String |
title()
Deprecated.
Returns the title of this action sheet.
|
accessibilityIdentifier, addConstraint, addConstraints, addGestureRecognizer, addLayoutGuide, addSubview, alpha, animateWithDuration, animateWithDuration, animateWithDuration, areAnimationsEnabled, autoresizesSubviews, autoresizingMask, backgroundColor, bottomAnchor, bounds, bringSubviewToFront, center, centerXAnchor, centerYAnchor, clipsToBounds, constraints, contentCompressionResistancePriorityForAxis, contentHuggingPriorityForAxis, contentMode, convertPointFromView, convertPointToView, convertRectFromView, convertRectToView, didAddSubview, didMoveToSuperview, didMoveToWindow, drawRect, frame, gestureRecognizers, heightAnchor, hitTest, insertSubview, insetsLayoutMarginsFromSafeArea, intrinsicContentSize, invalidateIntrinsicContentSize, isHidden, isMultipleTouchEnabled, isOpaque, isUserInteractionEnabled, layer, layoutIfNeeded, layoutMargins, layoutMarginsDidChange, layoutMarginsGuide, layoutSubviews, leadingAnchor, leftAnchor, maskView, needsUpdateConstraints, nextResponder, overrideUserInterfaceStyle, pointInside, preservesSuperviewLayoutMargins, removeConstraint, removeConstraints, removeFromSuperview, removeGestureRecognizer, removeLayoutGuide, requiresConstraintBasedLayout, restorationIdentifier, rightAnchor, safeAreaInsets, safeAreaLayoutGuide, sendSubviewToBack, setAccessibilityIdentifier, setAlpha, setAnimationBeginsFromCurrentState, setAnimationCurve, setAnimationDelay, setAnimationDuration, setAnimationRepeatAutoreverses, setAnimationRepeatCount, setAnimationsEnabled, setAnimationStartDate, setAutoresizesSubviews, setAutoresizingMask, setBackgroundColor, setBounds, setCenter, setClearsContextBeforeDrawing, setClipsToBounds, setContentCompressionResistancePriority, setContentHuggingPriority, setContentMode, setFrame, setGestureRecognizers, setHidden, setInsetsLayoutMarginsFromSafeArea, setLayoutMargins, setMaskView, setMultipleTouchEnabled, setNeedsDisplay, setNeedsLayout, setNeedsUpdateConstraints, setOpaque, setOverrideUserInterfaceStyle, setPreservesSuperviewLayoutMargins, setRestorationIdentifier, setTag, setTintAdjustmentMode, setTintColor, setTransform, setTranslatesAutoresizingMaskIntoConstraints, setUserInteractionEnabled, sizeThatFits, sizeToFit, subviews, superview, tag, tintAdjustmentMode, tintColor, tintColorDidChange, topAnchor, toString, trailingAnchor, transform, transitionWithView, translatesAutoresizingMaskIntoConstraints, updateConstraints, updateConstraintsIfNeeded, userInterfaceLayoutDirection, viewForFirstBaselineLayout, viewForLastBaselineLayout, widthAnchor, willMoveToSuperview, willMoveToWindow, willRemoveSubview, window
becomeFirstResponder, isFirstResponder, resignFirstResponder, touchesBegan, touchesCancelled, touchesEnded, touchesMoved
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
@Deprecated public UIActionSheet(String title, UIActionSheetDelegate delegate, String cancelButtonTitle, String destructiveButtonTitle, String... otherButtonTitles)
title
- The title of the action sheet.delegate
- The preferred delegate.cancelButtonTitle
- Cancel button's title.destructiveButtonTitle
- Destructive button's titleotherButtonTitles
- Titles for the other buttons.public String title()
public void setTitle(String title)
title
- the new title of this action sheetpublic int addButtonWithTitle(String title)
title
- the index number of this action sheet@Deprecated public UIActionSheetDelegate delegate()
@Deprecated public void setDelegate(UIActionSheetDelegate delegate)
delegate
- The delegate for this action sheet.@Deprecated public int cancelButtonIndex()
@Deprecated public int destructiveButtonIndex()
@Deprecated public int firstOtherButtonIndex()
@Deprecated public int numberOfButtons()
@Deprecated public void showFromTabBar(UITabBar bar)
bar
- The preferred tab bar.@Deprecated public void showFromToolbar(UIToolbar bar)
bar
- The preferred toolbar.@Deprecated public void showInView(UIView view)
view
- The preferred view.@Deprecated public void dismissWithClickedButtonIndex(int buttonIndex, boolean animated)
buttonIndex
- The index of the button,animated
- Defines whether the dismissal will be animated or not.Copyright © 2020. All rights reserved.