kakao-android-sdk-rx / com.kakao.sdk.talk / TalkApiClient

TalkApiClient

class TalkApiClient

Constructors

<init>

TalkApiClient(talkApi: TalkApi = ApiFactory.kapiWithOAuth.create(TalkApi::class.java), applicationInfo: ApplicationInfo = KakaoSdk.applicationContextInfo, contextInfo: ContextInfo = KakaoSdk.applicationContextInfo)

Functions

addChannelUrl

카카오톡 채널을 추가하기 위한 URL 을 반환합니다. URL 을 브라우저나 웹뷰에서 로드하면 브릿지 웹페이지를 통해 카카오톡을 실행합니다.

fun addChannelUrl(channelPublicId: String): Uri

channelChatUrl

카카오톡 채널 1:1 대화방 실행을 위한 URL 을 반환합니다. URL 을 브라우저나 웹뷰에서 로드하면 브릿지 웹페이지를 통해 카카오톡을 실행합니다.

fun channelChatUrl(channelPublicId: String): Uri

channels

fun channels(publicIds: String? = null, callback: (relations: ChannelRelations?, error: Throwable?) -> Unit): Unit

friends

fun friends(secureResource: Boolean? = true, offset: Int? = null, limit: Int? = null, order: Order? = null, callback: (friends: Friends<Friend>?, error: Throwable?) -> Unit): Unit

profile

fun profile(secureResource: Boolean? = true, callback: (profile: TalkProfile?, error: Throwable?) -> Unit): Unit

sendCustomMemo

fun sendCustomMemo(templateId: Long, templateArgs: Map<String, String>? = null, callback: (error: Throwable?) -> Unit): Unit

sendCustomMessage

fun sendCustomMessage(receiverUuids: List<String>, templateId: Long, templateArgs: Map<String, String>? = null, callback: (result: MessageSendResult?, error: Throwable?) -> Unit): Unit

sendDefaultMemo

fun sendDefaultMemo(template: DefaultTemplate, callback: (error: Throwable?) -> Unit): Unit

sendDefaultMessage

fun sendDefaultMessage(receiverUuids: List<String>, template: DefaultTemplate, callback: (result: MessageSendResult?, error: Throwable?) -> Unit): Unit

sendScrapMemo

fun sendScrapMemo(requestUrl: String, templateId: Long? = null, templateArgs: Map<String, String>? = null, callback: (error: Throwable?) -> Unit): Unit

sendScrapMessage

fun sendScrapMessage(receiverUuids: List<String>, requestUrl: String, templateId: Long? = null, templateArgs: Map<String, String>? = null, callback: (result: MessageSendResult?, error: Throwable?) -> Unit): Unit

Companion Object Properties

instance

val instance: TalkApiClient

Companion Object Extension Properties

rx

카카오톡

val TalkApiClient.Companion.rx: RxTalkApiClient