TWTRSETweetShareViewControllerDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | TWTRSETweetShareViewControllerDelegate.h |
Overview
Methods invoked by TWTRSETweetShareViewController
to notify about events occured in the UI.
All of these methods are called in the main thread.
– shareViewControllerDidFinishSendingTweet
required method
Called when the user has tapped on the tweet button and the request callback was called with .success or .willPostAsynchronously
The view controller is not dismissed automatically, you must call dismissViewController
.
- (void)shareViewControllerDidFinishSendingTweet
Declared In
TWTRSETweetShareViewControllerDelegate.h
– shareViewControllerWantsToCancelComposerWithPartiallyComposedTweet:
required method
Called when the user taps on the “Cancel” button on the composer.
The view controller is not dismissed automatically, you must call dismissViewController
.
This gives you the oportunity to implement another behavior, like presenting a confirmation alert, or offer the option
to safe a draft.
- (void)shareViewControllerWantsToCancelComposerWithPartiallyComposedTweet:(TWTRSETweet *)partiallyComposedTweet
Parameters
partiallyComposedTweet |
The contents of the Tweet up the moment the user cancelled. This can be used to be saved as a draft. |
---|
Declared In
TWTRSETweetShareViewControllerDelegate.h
– shareViewControllerPresentedWithNoAccounts
required method
Called when the composer UI is presented passing an empty array of accounts.
An alert is presented to the user informing them of this error.
The view controller is not dismissed automatically, you must call dismissViewController
when this method is called.
- (void)shareViewControllerPresentedWithNoAccounts
Declared In
TWTRSETweetShareViewControllerDelegate.h
– shareViewControllerDidSelectAccount:
Called when the user changes the currently selected account.
- (void)shareViewControllerDidSelectAccount:(id<TWTRSEAccount>)account
Parameters
account |
The account that the user selected. This will be one of the objects proviced when the controller was instantiated. |
---|
Declared In
TWTRSETweetShareViewControllerDelegate.h