public static interface

Megacool.ShareListener

co.megacool.megacool.Megacool.ShareListener

Class Overview

Listener to respond to share completion/dismissal. The Megacool.ShareListener methods will be called on the same thread that setShareListener(ShareListener) is called on.

Summary

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).

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

public abstract void didCompleteShare ()

Called when a share is completed successfully. Few apps will actually report this.

public abstract void didDismissShare ()

Called when a user initiates a share, but doesn't select a channel to share to.

public 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). 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.