|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.rim.blackberry.api.bbm.platform.profile.UserProfile
This class provides methods to access the current user's BBM profile.
| Field Summary |
| Fields inherited from interface net.rim.blackberry.api.bbm.platform.profile.Presence |
STATUS_AVAILABLE, STATUS_BUSY |
| Method Summary | ||
abstract String |
getDisplayName()
Gets the display name of the current user. |
|
Bitmap |
getDisplayPicture()
Gets the display picture of the current user. |
|
abstract String |
getHandle()
Retrieves user’s unique ID - it will be different for every BBM instance (BlackBerry, PlayBook, etc) |
|
abstract String |
getPersonalMessage()
Gets the personal message of the current user. |
|
abstract String |
getPPID()
Retrieves user’s unique ID - it will be same for every BBM instance (BlackBerry, PlayBook, etc) |
|
abstract UserProfileBox |
getProfileBox()
Gets the current user's profile box for this application. |
|
ProfileLocation |
getProfileLocation()
Gets the location of the current user. |
|
int |
getStatus()
Gets the status of the current user. |
|
abstract String |
getStatusMessage()
Gets the status message of the current user. |
|
abstract boolean |
setDisplayPicture(Bitmap pic)
Sets the display picture of the user. |
|
abstract boolean |
setDisplayPicture(EncodedImage pic)
Sets the display picture of the user. |
|
abstract boolean |
setPersonalMessage(String personalMessage)
Sets the personal message of the user. |
|
abstract boolean |
setStatus(int status,
String customStatusMessage)
Sets the status of the user. |
|
| Methods inherited from interface net.rim.blackberry.api.bbm.platform.profile.Presence |
getAppVersion, getBBMSDKVersion |
| Method Detail |
public abstract String getDisplayName()
PersistentContentException - when Content Protection is enabled and device is lockedpublic Bitmap getDisplayPicture()
public abstract String getHandle()
public abstract String getPersonalMessage()
PersistentContentException - when Content Protection is enabled and device is lockedpublic abstract String getPPID()
public abstract UserProfileBox getProfileBox() throws UserProfileBoxAccessException
UserProfileBoxAccessException - if the device is in mass storage mode.public ProfileLocation getProfileLocation()
null if the user has disabled it.public int getStatus()
Presence.public abstract String getStatusMessage()
PersistentContentException - when Content Protection is enabled and device is lockedpublic abstract boolean setDisplayPicture(Bitmap pic)
pic - Bitmap of the display picture.true if the user allowed the change; false otherwise.NullPointerException - if pic is null.public abstract boolean setDisplayPicture(EncodedImage pic)
pic - Encoded image of the display picture.true if the user allowed the change; false otherwise.NullPointerException - if pic is null.public abstract boolean setPersonalMessage(String personalMessage)
personalMessage - The personal message. It supports up to 160 characters; anything
over will be truncated. If null is provided then the personal message will be
cleared.true if the user allowed the change; false otherwise.
public abstract boolean setStatus(int status,
String customStatusMessage)
status - One of the statuses defined in PresencecustomStatusMessage - A customized status message.
If null is given, the default status message
(e.g. "Available") will be used.true if the user allowed the change; false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999- Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.