co.megacool.megacool.Megacool.ShareListener |
This interface is deprecated.
Extend EventListener
instead.
Listener to respond to share completion/dismissal. The Megacool.ShareListener
methods will
be called on the same thread that setShareListener(ShareListener)
is
called on.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
public static final AtomicReference<Handler> | handler | This creates a Handler using the android.os.Looper of the thread that the callback is created on |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
didCompleteShare()
Called when a share is completed successfully.
| ||||||||||
abstract void |
didDismissShare()
Called when a user initiates a share, but doesn't select a channel to share to.
| ||||||||||
abstract void |
didPossiblyCompleteShare()
Called when the user has at least selected a channel to share to (API level 23 and up),
or when we're unable to tell if a channel was selected or not (API level 22 and down).
|
This creates a Handler using the android.os.Looper of the thread that the callback is created on
Called when a share is completed successfully. Few apps will actually report this.
Called when a user initiates a share, but doesn't select a channel to share to.
Called when the user has at least selected a channel to share to (API level 23 and up), or when we're unable to tell if a channel was selected or not (API level 22 and down). Most apps do not report the result of a share, so we can't be sure that the user actually completed the share or not.