GetSocialInviteChannelPlugin Class Reference

Inherits from NSObject
Declared in GetSocialInviteChannelPlugin.h

Overview

Use this class as a base for your own invite channel plugins implementations. List of supported invite channels is defined in GetSocialConstants file.

Properties

  successCallback

Called if invite sending was successful.

@property (nonatomic) GetSocialInviteSuccessCallback successCallback

Declared In

GetSocialInviteChannelPlugin.h

  cancelCallback

Called if invite sending was cancelled.

@property (nonatomic) GetSocialInviteCancelCallback cancelCallback

Declared In

GetSocialInviteChannelPlugin.h

  failureCallback

Called if invite sending failed.

@property (nonatomic) GetSocialFailureCallback failureCallback

Declared In

GetSocialInviteChannelPlugin.h

Methods

– isAvailableForDevice:

Checks if invite channel plugin is available for the device.

- (BOOL)isAvailableForDevice:(GetSocialInviteChannel *)inviteChannel

Parameters

inviteChannel

channel to check

Return Value

YES, if available, otherwise NO.

Discussion

You can check if plugin is enabled on GetSocial Dashboard.

See Also

Declared In

GetSocialInviteChannelPlugin.h

– presentPluginWithInviteChannel:invitePackage:onViewController:success:cancel:failure:

Implementation of the method should present invite channel plugin UI interface.

- (void)presentPluginWithInviteChannel:(GetSocialInviteChannel *)inviteChannel invitePackage:(GetSocialInvitePackage *)invitePackage onViewController:(UIViewController *)viewController success:(GetSocialInviteSuccessCallback)successCallback cancel:(GetSocialInviteCancelCallback)cancelCallback failure:(GetSocialFailureCallback)failureCallback

Parameters

inviteChannel

Invite channel to use.

invitePackage

invite content to send.

viewController

viewController to be used for presentation.

successCallback

Callback to call if invite sending was successfull.

cancelCallback

Callback to call if invite sending was cancelled.

failureCallback

Callback to call if invite sending failed.

Discussion

IMPORTANT: At least one of the provided callbacks should be invoked as a result of method execution. Ignoring this requirement will result in misbehaviour of the GetSocial Framework and incorrect analytics data.

Declared In

GetSocialInviteChannelPlugin.h