ShareClient class

카카오톡 공유 호출을 담당하는 클라이언트.

Constructors

ShareClient(ShareApi api, {Platform? platform})

Properties

api ShareApi
read / write
hashCode → int
The hash code for this object.
read-onlyinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

isKakaoTalkSharingAvailable() → Future<bool>
카카오톡 실행을 통한 공유 가능 여부 확인
launchKakaoTalk(Uri uri) → Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scrapImage({required String imageUrl, bool secureResource = true}) → Future<ImageUploadResult>
원격 이미지를 카카오톡 공유 컨텐츠 이미지로 활용하기 위해 카카오 이미지 서버에 스크랩
shareCustom({required int templateId, Map<String, String>? templateArgs, Map<String, String>? serverCallbackArgs}) → Future<Uri>
카카오디벨로퍼스에서 생성한 메시지 템플릿으로 카카오톡 공유 URI 생성, 메시지 템플릿 가이드 참고
shareDefault({required DefaultTemplate template, Map<String, String>? serverCallbackArgs}) → Future<Uri>
기본 템플릿으로 카카오톡 공유 URI 생성, 메시지 템플릿 가이드 참고
shareScrap({required String url, int? templateId, Map<String, String>? templateArgs, Map<String, String>? serverCallbackArgs}) → Future<Uri>
특정 URL의 웹 페이지 정보를 바탕으로 카카오톡 공유 URI 생성, 메시지 템플릿 가이드 참고
toString() → String
A string representation of this object.
inherited
uploadImage({File? image, Uint8List? byteData, bool secureResource = true}) → Future<ImageUploadResult>
로컬 이미지를 카카오톡 공유 컨텐츠 이미지로 활용하기 위해 카카오 이미지 서버로 업로드

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

instance ShareClient
간편한 API 호출을 위해 기본 제공되는 singleton 객체
final