-
Notifications
You must be signed in to change notification settings - Fork 227
SocialNetwork methods
boolean isConnected()
Check if selected social network connected: true or false
void requestLogin()
Login to social network
logout()
Logout from social network
getID()
Get id of social network
- 1 - Twitter
- 2 - LinkedIn
- 3 - Google Plus
- 4 - Facebook
- 5 - Vkontakte
- 6 - Odnoklassniki
AccessToken getAccessToken()
Return AccessToken (exept GooglePlus)
requestAccessToken()
Get AccessToken of social network
requestCurrentPerson()
Get SocialPerson of current user
requestSocialPerson(String userID)
Get SocialPerson of user by id
requestSocialPersons(String[] userID)
Get array of SocialPersons by ids
requestDetailedSocialPerson(String userID)
Get detailed profile for user by id
requestDetailedCurrentPerson()
Get detailed profile for current user
requestPostMessage(String message)
Post message to social network
requestPostPhoto(File photo, String message)
Post photo to social network
requestPostDialog(Bundle bundle)
Get Share dialog of social network with(message, photo, link)
requestPostLink(Bundle bundle, String message)
Post link with message to social network
requestCheckIsFriend(String userID)
Check if user by id is friend of current user
requestGetFriends()
Get current user friendlist
requestAddFriend(String userID)
Invite friend by id to current user
requestRemoveFriend(String userID)
Remove friend by id from current user friends
cancelAll()
Cancel all requests
setOnLoginCompleteListener(OnLoginCompleteListener onLoginCompleteListener)
Implement OnLoginCompleteListener
setOnRequestAccessTokenCompleteListener(OnRequestAccessTokenCompleteListener onRequestAccessTokenCompleteListener)
Implement OnRequestAccessTokenCompleteListener
setOnRequestCurrentPersonCompleteListener(OnRequestSocialPersonCompleteListener onRequestCurrentPersonCompleteListener)
Implement OnRequestSocialPersonCompleteListener
setOnRequestSocialPersonCompleteListener(OnRequestSocialPersonCompleteListener onRequestSocialPersonCompleteListener)
Implement OnRequestSocialPersonCompleteListener
setOnRequestDetailedSocialPersonCompleteListener(OnRequestDetailedSocialPersonCompleteListener onRequestDetailedSocialPersonCompleteListener)
Implement OnRequestDetailedSocialPersonCompleteListener
setOnRequestSocialPersonsCompleteListener(OnRequestSocialPersonsCompleteListener onRequestSocialPersonsCompleteListener)
Implement OnRequestSocialPersonsCompleteListener
setOnCheckIsFriendListener(OnCheckIsFriendCompleteListener onCheckIsFriendListener)
Implement OnCheckIsFriendCompleteListener
setOnPostingMessageCompleteListener(OnPostingCompleteListener onPostingCompleteListener)
Implement OnPostingCompleteListener
setOnPostingPhotoCompleteListener(OnPostingCompleteListener onPostingCompleteListener)
Implement OnPostingCompleteListener
setOnPostingLinkCompleteListener(OnPostingCompleteListener onPostingCompleteListener)
Implement OnPostingCompleteListener
setOnPostingDialogCompleteListener(OnPostingCompleteListener onPostingCompleteListener)
Implement OnPostingCompleteListener
setOnRequestGetFriendsCompleteListener(OnRequestGetFriendsCompleteListener onRequestGetFriendsCompleteListener)
Implement OnRequestGetFriendsCompleteListener
setOnRequestAddFriendCompleteListener(OnRequestAddFriendCompleteListener onRequestAddFriendCompleteListener)
Implement OnRequestAddFriendCompleteListener
setOnRequestRemoveFriendCompleteListener(OnRequestRemoveFriendCompleteListener onRequestRemoveFriendCompleteListener)
Implement OnRequestRemoveFriendCompleteListener