kakao-partner-android-sdk-rx / com.kakao.sdk.link / LinkClient

LinkClient

class LinkClient

Constructors

<init>

LinkClient(linkApi: LinkApi = ApiFactory.kapi.create(LinkApi::class.java), linkIntentClient: KakaoLinkIntentClient = KakaoLinkIntentClient.instance)

Functions

customTemplate

개발자사이트에서 생성한 메시지 템플릿을 카카오톡으로 공유합니다. 템플릿을 생성하는 방법은 https://developers.kakao.com/docs/template 을 참고하시기 바랍니다.

fun customTemplate(context: Context, templateId: Long, templateArgs: Map<String, String>? = null, serverCallbackArgs: Map<String, String>? = null, callback: (linkResult: LinkResult?, error: Throwable?) -> Unit): Unit

defaultTemplate

기본 템플릿을 카카오톡으로 공유합니다.

fun defaultTemplate(context: Context, defaultTemplate: DefaultTemplate, serverCallbackArgs: Map<String, String>? = null, callback: (linkResult: LinkResult?, error: Throwable?) -> Unit): Unit

isKakaoLinkAvailable

fun isKakaoLinkAvailable(context: Context): Boolean

scrapImage

카카오링크 컨텐츠 이미지로 활용하기 위해 원격 이미지를 카카오 이미지 서버로 스크랩 합니다.

fun scrapImage(imageUrl: String, secureResource: Boolean = true, callback: (imageUploadResult: ImageUploadResult?, error: Throwable?) -> Unit): Unit

scrapTemplate

지정된 URL 을 스크랩하여 만들어진 템플릿을 카카오톡으로 공유합니다.

fun scrapTemplate(context: Context, url: String, templateId: Long? = null, templateArgs: Map<String, String>? = null, serverCallbackArgs: Map<String, String>? = null, callback: (linkResult: LinkResult?, error: Throwable?) -> Unit): Unit

uploadImage

카카오링크 컨텐츠 이미지로 활용하기 위해 로컬 이미지를 카카오 이미지 서버로 업로드 합니다.

fun uploadImage(image: File, secureResource: Boolean = true, callback: (imageUploadResult: ImageUploadResult?, error: Throwable?) -> Unit): Unit

Companion Object Properties

instance

val instance: LinkClient

Companion Object Extension Properties

rx

val LinkClient.Companion.rx: RxLinkClient