public class SLComposeViewController extends UIViewController
Modifier and Type | Method and Description |
---|---|
boolean |
addImage(UIImage image)
Adds the specified image to the post.
|
boolean |
addURL(NSURL url)
Adds the specified URL to the post.
|
static SLComposeViewController |
composeViewControllerForServiceType(String serviceType)
Creates and returns a new social compose view controller of the specified
type.
|
static boolean |
isAvailableForServiceType(String serviceType)
Returns a Boolean that shows whether you can send a request of the
particular type.
|
boolean |
removeAllImages()
Removes all images from the post.
|
boolean |
removeAllURLs()
Removes all URLs from the post.
|
String |
serviceType()
Returns the social networking service.
|
void |
setCompletionHandler(SLComposeViewControllerCompletionHandler completionHandler)
Sets the handler to be called after the user has composed a post.
|
boolean |
setInitialText(String text)
Sets the initial text to be posted.
|
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 void setCompletionHandler(SLComposeViewControllerCompletionHandler completionHandler)
completionHandler
- The handler to be called after the user has
composed a post.public static boolean isAvailableForServiceType(String serviceType)
serviceType
- The social networking service.public static SLComposeViewController composeViewControllerForServiceType(String serviceType)
serviceType
- The type of the social networking service.public String serviceType()
public boolean setInitialText(String text)
text
- The initial text.public boolean addImage(UIImage image)
image
- The image to be added to the post.public boolean removeAllImages()
public boolean addURL(NSURL url)
url
- The URL to be added to the post.public boolean removeAllURLs()
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.