ShareClient

class ShareClient(shareApi: ShareApi = ApiFactory.kapi.create(ShareApi::class.java), kakaotalkShareIntentClient: KakaoTalkShareIntentClient = KakaoTalkShareIntentClient.instance)

카카오톡 공유 API 클라이언트
Client for the Kakao Talk Sharing APIs

Constructors

Link copied to clipboard
constructor(shareApi: ShareApi = ApiFactory.kapi.create(ShareApi::class.java), kakaotalkShareIntentClient: KakaoTalkShareIntentClient = KakaoTalkShareIntentClient.instance)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

카카오톡 공유 가능 여부 확인
Checks whether the Kakao Talk Sharing is available

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

이미지 스크랩하기
Scrape image

Link copied to clipboard
fun shareCustom(context: Context, templateId: Long, templateArgs: Map<String, String>? = null, serverCallbackArgs: Map<String, String>? = null, callback: (sharingResult: SharingResult?, error: Throwable?) -> Unit)

사용자 정의 템플릿으로 메시지 보내기
Send message with custom template

Link copied to clipboard
fun shareDefault(context: Context, defaultTemplate: DefaultTemplate, serverCallbackArgs: Map<String, String>? = null, callback: (sharingResult: SharingResult?, error: Throwable?) -> Unit)

기본 템플릿으로 메시지 보내기
Send message with default template

Link copied to clipboard
fun shareScrap(context: Context, url: String, templateId: Long? = null, templateArgs: Map<String, String>? = null, serverCallbackArgs: Map<String, String>? = null, callback: (sharingResult: SharingResult?, error: Throwable?) -> Unit)

스크랩 메시지 보내기
Send scrape message

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

이미지 업로드하기
Upload image