public class PlusFriendService extends Object
Constructor and Description |
---|
PlusFriendService() |
Modifier and Type | Method and Description |
---|---|
void |
addFriend(android.content.Context context,
String plusFriendId)
Opens a bridge page in browser for adding a speicifed plus friend.
|
android.net.Uri |
addFriendUrl(android.content.Context context,
String plusFriendId)
Returns a url of plus friend bridge page for
addFriend(Context, String) |
void |
chat(android.content.Context context,
String plusFriendId)
Opens a bridge page in browser for 1:1 chat with a specified plus friend.
|
android.net.Uri |
chatUrl(android.content.Context context,
String plusFriendId)
Returns a url of plus friend bridge page for
chat(Context, String) |
static PlusFriendService |
getInstance()
Returns a singleton PlusFriendService instance
|
public void addFriend(android.content.Context context, String plusFriendId) throws com.kakao.util.exception.KakaoException
context
- Context to start custom tab or browser intent and get app configurations
such as app key and key hash.plusFriendId
- plus friend id (https://pf.kakao.com/${plusFriendId})com.kakao.util.exception.KakaoException
- with KakaoException.ErrorType.ILLEGAL_ARGUMENT
when context or plusFriendId is nullcom.kakao.util.exception.KakaoException
- with KakaoException.ErrorType.MISS_CONFIGURATION
when required app configuration such as kakao app keys is not correctly setpublic android.net.Uri addFriendUrl(android.content.Context context, String plusFriendId) throws com.kakao.util.exception.KakaoException
addFriend(Context, String)
context
- Context to start custom tab or browser intent and get app configurations
such as app key and key hash.plusFriendId
- plus friend id (https://pf.kakao.com/${plusFriendId})com.kakao.util.exception.KakaoException
- with KakaoException.ErrorType.ILLEGAL_ARGUMENT
when context or plusFriendId is nullcom.kakao.util.exception.KakaoException
- with KakaoException.ErrorType.MISS_CONFIGURATION
when required app configuration such as kakao app keys is not correctly setpublic void chat(android.content.Context context, String plusFriendId) throws com.kakao.util.exception.KakaoException
context
- Context to start custom tab or browser intent and get app configurations
such as app key and key hash.plusFriendId
- plus friend id (https://pf.kakao.com/${plusFriendId})com.kakao.util.exception.KakaoException
- with KakaoException.ErrorType.ILLEGAL_ARGUMENT
when context or plusFriendId is nullcom.kakao.util.exception.KakaoException
- with KakaoException.ErrorType.MISS_CONFIGURATION
when required app configuration such as kakao app keys is not correctly setpublic android.net.Uri chatUrl(android.content.Context context, String plusFriendId) throws com.kakao.util.exception.KakaoException
chat(Context, String)
context
- Context to start custom tab or browser intent and get app configurations
such as app key and key hash.plusFriendId
- plus friend id (https://pf.kakao.com/${plusFriendId})com.kakao.util.exception.KakaoException
- with KakaoException.ErrorType.ILLEGAL_ARGUMENT
when context or plusFriendId is nullcom.kakao.util.exception.KakaoException
- with KakaoException.ErrorType.MISS_CONFIGURATION
when required app configuration such as kakao app keys is not correctly setpublic static PlusFriendService getInstance()