getsocial-react-native-sdk

0.3.2

ActionButton

ActionButton class.

new ActionButton(actionButtonMap: any)
Parameters
actionButtonMap (any) action button parameters
Static Members
create(title, actionId)
Instance Members
toJSON()

InviteChannel

Describes as Invite channel and it's default invite content.

new InviteChannel(inviteChannelMap: any)
Parameters
inviteChannelMap (any) invite channel parameters
Instance Members
channelId
name
iconUrl
isEnabled
displayOrder

MediaAttachment

Media attachment class.

new MediaAttachment()
Static Members
withImageUrl(imageUrl)
withVideoUrl(videoUrl)
withLocalImageUri(imageUri)
withLocalVideoUri(videoUri)
Instance Members
toJSON()

NotificationStatus

Notification Status class.

new NotificationStatus()

NotificationsCountQuery

Notifications Count Query class.

new NotificationsCountQuery()
Static Members
withStatus(status)
withAllStatus()
Instance Members
withActions(newActions)
ofTypes(newTypes)
toJSON()

NotificationsQuery

Notifications Query class.

new NotificationsQuery()
Static Members
withStatus(status)
withAllStatus()
Instance Members
withLimit(newLimit)
withFilter(newFilter, notificationId)
withActions(newActions)
ofTypes(newTypes)
toJSON()

NotificationsSummary

Notification Summary class.

new NotificationsSummary(successfullySentMap: any)
Parameters
successfullySentMap (any) map with parameters.

PublicUser

Immutable properties for a public user.

new PublicUser(publicUserMap: any)
Parameters
publicUserMap (any) public user parameters
Instance Members
userId
displayName
avatarUrl
identities
publicProperties

UserReference

Lightweight representation of a public user.

new UserReference(userReferenceMap: any)
Parameters
userReferenceMap (any) user reference parameters
Instance Members
userId
displayName
avatarUrl

AuthIdentity

Authentication Identity class.

new AuthIdentity()
Static Members
createFacebookIdentity(accessToken)
createCustomIdentity(customProviderName, userId, accessToken)
Instance Members
toJSON()

ReferralData

Class describes Referral Data.

new ReferralData(referralDataMap: any)
Parameters
referralDataMap (any) referral data parameters
Instance Members
token
referrerUserId
referrerChannelId
isFirstMatch
isGuaranteedMatch
isReinstall
referralLinkParams
originalReferralLinksParams

UsersQuery

UsersQuery class.

new UsersQuery()
Static Members
usersByDisplayName(query)
Instance Members
withLimit(limit)
toJSON()

SuggestedFriend

Immutable properties for a suggested friend.

new SuggestedFriend(suggestedFriendMap: any)

Extends PublicUser

Parameters
suggestedFriendMap (any) suggested friend parameters
Instance Members
mutualFriendsCount

CustomInviteContent

Class to specify custom invite content.

new CustomInviteContent()
Instance Members
withText(inviteText)
withSubject(inviteSubject)
withMediaAttachment(mediaAttachment)
toJSON()

ReferredUser

Defines ReferredUser class.

new ReferredUser(referredUserMap: any)

Extends PublicUser

Parameters
referredUserMap (any) public user parameters
Instance Members
installationDate
installationChannel
installPlatform
isReinstall
isInstallSuspicious

Action

Action class.

new Action(actionMap: any)
Parameters
actionMap (any) notification parameters
Static Members
withType(actionType)
Instance Members
addActionData(key, value)
addActionDataMap(actionData)
toJSON()

ConflictUser

When trying to add an identity and conflict in identities happens a ConflictUser instance is returned to check the details of the conflict user to see which user you want to proceed with.

new ConflictUser(conflictUserMap: any)

Extends PublicUser

Parameters
conflictUserMap (any) conflict user parameters

GetSocialUI

GetSocial UI class.

new GetSocialUI()
Static Members
closeView(saveViewState)
restoreView()
createInvitesView()
createNotificationCenterView()
loadDefaultConfiguration()
loadConfiguration(path)

Notification

Notification class.

new Notification(notificationMap: any)
Parameters
notificationMap (any) notification parameters

InvitesView

Invites view.

new InvitesView()
Instance Members
withCustomWindowTitle(windowTitle)
withCustomInviteContent(customInviteContent)
withInviteUICallback(onComplete, onCancel, onError)
withLinkParams(linkParams)
show()

NotificationCenterView

Notification center view.

new NotificationCenterView()
Instance Members
withCustomWindowTitle(windowTitle)
setFilterByTypes(types)
setFilterByActions(actions)
setNotificationClickListener(onNotificationClicked)
setActionButtonClickListener(onNotificationActionButtonClicked)
show()

NotificationContent

NotificationContent class.

new NotificationContent()
Static Members
withText(text)
withTemplate(templateName)
Instance Members
withAction(action)
withTitle(title)
withText(text)
withTemplateName(templateName)
addTemplatePlaceholder(placeholder, replacementValue)
addTemplatePlaceholders(placeholders)
withMediaAttachment(mediaAttachment)
addActionButton(actionButton)
addActionButtons(actionButtons)
toJSON()

GetSocialEventEmitter

Event emitter to subscribe GetSocial related events.
Available events:
1. whenInitialized: invoked when SDK finished initialization.
2. onUserChanged: invoked when any property of current user changed.
3. onGlobalError(error): invoked when an unhandled error happened.
4. onNotificationReceived(notification, wasClicked): invoked when a notification is clicked, or when a notification received while the app is in foreground.

GetSocialEventEmitter

GetSocialUser

GetSocialUser class.

new GetSocialUser()
Static Members
onUserChanged(onUserChanged)
isAnonymous()
getUserId()
getDisplayName()
setDisplayName(displayName)
getAvatarUrl()
setAvatarUrl(avatarUrl)
setPublicProperty(key, value)
setPrivateProperty(key, value)
hasPublicProperty(key)
hasPrivateProperty(key)
allPublicProperties()
allPrivateProperties()
getPublicProperty(key)
getPrivateProperty(key)
removePublicProperty(key)
removePrivateProperty(key)
addAuthIdentity(authIdentity, onSuccess, onConflict, onError)
switchUser(authIdentity)
removeAuthIdentity(providerId)
getAuthIdentities()
addFriend(userId)
addFriendsByAuthIdentities(providerId, providerUserIds)
removeFriend(userId)
removeFriendsByAuthIdentities(providerId, providerUserIds)
setFriends(userIds)
setFriendsByAuthIdentities(providerId, providerUserIds)
isFriend(userId)
getFriendsCount()
getFriends(offset, limit)
getSuggestedFriends(offset, limit)
reset()
isPushNotificationsEnabled()
enablePushNotifications()
disablePushNotifications()
getNotifications(query)
getNotificationsCount(query)
sendNotification(recipients, content)
setNotificationsStatus(notificationIds, status)

GetSocial

Main interface of GetSocial plugin.

new GetSocial()
Static Members
init()
initWithAppId(appid)
whenInitialized(onInit)
isInitialized()
getLanguage()
setLanguage(language)
getSdkVersion()
sendInvite(channelId, customInviteContent, linkParams, onComplete, onCancel, onError)
getInviteChannels()
isInviteChannelAvailable(channelId)
getReferralData()
clearReferralData()
getReferredUsers()
getUserById(userId)
getUserByAuthIdentity(providerId, providerUserId)
getUsersByAuthIdentities(providerId, providerUserIds)
findUsers(query)
registerForPushNotifications()
onNotificationReceived(notificationReceived)
processAction(action)
trackCustomEvent(eventName, eventProperties)