public abstract class InviteChannelPlugin
extends java.lang.Object
Base abstract class for all GetSocial invite channel plugins.
Use this class as a base for your own invite channel plugins implementations. List of supported invite channels is defined inInviteChannelIds
.Modifier and Type | Method and Description |
---|---|
android.content.Context |
getContext() |
abstract boolean |
isAvailableForDevice(InviteChannel inviteChannel)
Method should check if plugin is available on the device.
|
abstract void |
presentChannelInterface(InviteChannel inviteChannel,
InvitePackage invitePackage,
InviteCallback callback)
Implementation of the method should present invite channel plugin UI interface.
|
public android.content.Context getContext()
public abstract boolean isAvailableForDevice(InviteChannel inviteChannel)
InviteChannel.isEnabled()
.inviteChannel
- Invite channel to be checked.public abstract void presentChannelInterface(InviteChannel inviteChannel, InvitePackage invitePackage, InviteCallback callback)
Implementation of the method should present invite channel plugin UI interface.
IMPORTANT: At least one method of providedInviteCallback
should be invoked as a result
of method execution. Ignoring this requirement will result in misbehaviour of the GetSocial SDK and incorrect
analytics data.inviteChannel
- Invite channel to be presented.invitePackage
- Content of the invite message including message, referral link, etc.callback
- Callback to indicate result of the method execution.(c) Copyright GetSocial BV, 2018. All Rights Reserved.