| mobisocial.omlib.api.OmletIdentityApi |
APIs for accessing user accounts and identities.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract void |
addContact(String account)
Adds a contact to the user's friend list, without mutual friending.
| ||||||||||
| abstract void |
addContactWithPin(String account, String pin)
Mutually add a contact using a PIN code shared by that account.
| ||||||||||
| abstract Uri |
getInvitationLink()
Generate a link to share out-of-band (SMS, email, chat, Twitter, Facebook) that can be
used to invite friends to download the app, and also to add this user as a friend in the app.
| ||||||||||
| abstract AccountProfile | lookupProfile(String account) | ||||||||||
| abstract AccountProfile | lookupProfile(RawIdentity rawIdentity) | ||||||||||
| abstract void |
setUserNickname(String nickname)
Sets the display name for the connected user's account.
| ||||||||||
| abstract void |
setUserProfileImage(InputStream image)
Sets the user's profile picture to the given image.
| ||||||||||
| abstract void | setUserProfileVideo(InputStream video, InputStream thumbnail) | ||||||||||
| abstract void |
uploadAddressBook(CancellationSignal cancellation)
Uploads hashed identities from the user's local address book to find friends who also have user accounts. | ||||||||||
Adds a contact to the user's friend list, without mutual friending.
| NetworkException |
|---|
Mutually add a contact using a PIN code shared by that account.
| NetworkException |
|---|
Generate a link to share out-of-band (SMS, email, chat, Twitter, Facebook) that can be used to invite friends to download the app, and also to add this user as a friend in the app.
| NetworkException |
|---|
Sets the display name for the connected user's account. Uses jobs so it is guaranteed to execute.
Sets the user's profile picture to the given image. Uses jobs so it is guaranteed to execute.
| IOException |
|---|
| IOException |
|---|
Uploads hashed identities from the user's local address book to find friends who also have user accounts.
This method can take a long time, and so should be run in the background, for example using an android.os.AsyncTask.
| cancellation | Cancellation signal that halts the upload. May be null. |
|---|