|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AvatarPickerHelper
A helper interface for uploading and creating custom avatars
| Method Summary | |
|---|---|
AvatarPickerHelperImpl.Result<Avatar> |
convertTemporaryToReal(String ownerId,
Avatar.Type type,
Selection selection)
Converts temporary avatar (uploaded) to real avatar |
String |
getTemporaryAvatarUrl()
Gets temporary avatar url |
AvatarPickerHelperImpl.Result<AvatarPickerHelperImpl.TemporaryAvatarBean> |
upload(InputStream stream,
String fileName,
String contentType,
long size,
String ownerId,
Avatar.Type type)
Handles upload of temporary avatar |
| Method Detail |
|---|
AvatarPickerHelperImpl.Result<AvatarPickerHelperImpl.TemporaryAvatarBean> upload(InputStream stream,
String fileName,
String contentType,
long size,
String ownerId,
Avatar.Type type)
stream - upload io streamfileName - name of upload filecontentType - image typesize - size of avatarownerId - ownerId the id of the owner, matches the type.type - the desired type of the avatar.
AvatarPickerHelperImpl.Result<Avatar> convertTemporaryToReal(String ownerId,
Avatar.Type type,
Selection selection)
ownerId - the id of the owner, matches the type.type - the desired type of the avatar.selection - the area of the temporary avatar to crop real avatar to
String getTemporaryAvatarUrl()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||