package com.kakao.widget public class ProfileLayout extends FrameLayout
ProfileLayout
을 선언한다.
2. setEditable(boolean)
를 이용하여 사용자가 프로필 수정 가능한 페이지인지 설정한다. 기본값은 수정되지 않는 것이다.
3. setMeResponseCallback(com.kakao.MeResponseCallback)
를 이용하여 사용자정보 요청 결과에 따른 callback을 설정한다.
Constructor and Description |
---|
ProfileLayout(Context context) |
ProfileLayout(Context context,
AttributeSet attrs) |
ProfileLayout(Context context,
AttributeSet attrs,
int defStyle) |
Modifier and Type | Method and Description |
---|---|
void |
requestMe()
사용자 정보를 요청한다.
|
void |
setEditable(boolean editable)
사용자 정보가 수정 가능한지를 설정한다.
|
void |
setMeResponseCallback(MeResponseCallback callback)
사용자정보 요청 결과에 따른 callback을 설정한다.
|
void |
setNickname(String nickname)
별명 view를 update한다.
|
void |
setProfileURL(String profileImageURL)
프로필 이미지에 대해 view를 update한다.
|
void |
setUserId(String userId)
사용자 아이디 view를 update한다.
|
void |
setUserProfile(UserProfile userProfile)
param으로 온 UserProfile에 대해 view를 update한다.
|
public ProfileLayout(Context context)
public ProfileLayout(Context context, AttributeSet attrs)
public ProfileLayout(Context context, AttributeSet attrs, int defStyle)
public void requestMe()
public void setEditable(boolean editable)
editable
- 수정가능하면 true, 수정 불가능하면 false를 설정한다.public void setMeResponseCallback(MeResponseCallback callback)
callback
- 사용자정보 요청 결과에 따른 callbackpublic void setNickname(String nickname)
nickname
- 화면에 반영할 별명public void setProfileURL(String profileImageURL)
profileImageURL
- 화면에 반영할 프로필 이미지public void setUserId(String userId)
userId
- 화면에 반영할 사용자 아이디public void setUserProfile(UserProfile userProfile)
userProfile
- 화면에 반영할 사용자 정보