KOChatMember Class Reference

Inherits from NSObject
Conforms to KOTalkMessageSending
Declared in KOChatMember.h
KOChatMember.m

Overview

Copyright 2018 Kakao Corp.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Other Methods

– sendMessageWithTemplate:completionHandler:

기본 제공되는 템플릿을 이용하여, 카카오톡으로 메시지를 전송합니다. 제휴를 통해 권한이 부여된 특정 앱에서만 호출 가능합니다.

- (KOSessionTask *)sendMessageWithTemplate:(KMTTemplate *)templateObj completionHandler:(void ( ^ ) ( NSError *))completionHandler

Parameters

templateObj

전송할 메시지 템플릿 오브젝트. KMTTemplate 클래스를 직접 생성해서 사용할 수 없고 원하는 템플릿에 맞는 적절한 하위 클래스로 오브젝트를 생성해야 함.

completionHandler

요청 완료시 실행될 block. 오류 처리와 전송 완료 시 수행된다.

Discussion

KMTTemplate 클래스는 KakaoMessageTemplate.framework에 포함되어 있습니다. 이 메소드를 사용하기 위해서는 Build Phases > Link Binary With Libraries 설정에 KakaoMessageTemplate.framework를 추가해야 합니다.

Declared In

KOTalkMessageSending.h

– sendMessageWithURL:completionHandler:

지정된 URL을 스크랩하여, 카카오톡으로 메시지를 전송합니다. 제휴를 통해 권한이 부여된 특정 앱에서만 호출 가능합니다.

- (KOSessionTask *)sendMessageWithURL:(NSURL *)URL completionHandler:(void ( ^ ) ( NSError *))completionHandler

Parameters

URL

스크랩할 URL. 개발자사이트 앱 설정에 등록된 도메인만 허용됨.

completionHandler

요청 완료시 실행될 block. 오류 처리와 전송 완료 시 수행된다.

Declared In

KOTalkMessageSending.h

– sendMessageWithURL:templateId:templateArgs:completionHandler:

지정된 URL을 스크랩하여, 카카오톡으로 메시지를 전송합니다. 제휴를 통해 권한이 부여된 특정 앱에서만 호출 가능합니다.

- (KOSessionTask *)sendMessageWithURL:(NSURL *)URL templateId:(NSString *)templateId templateArgs:(NSDictionary<NSString*,id> *)templateArgs completionHandler:(void ( ^ ) ( NSError *))completionHandler

Parameters

URL

스크랩할 URL. 개발자사이트 앱 설정에 등록된 도메인만 허용됨.

templateId

전송할 메시지 템플릿 ID.

templateArgs

메시지 템플릿을 완성하기 위해 필요한 추가 파라미터 정보.

completionHandler

요청 완료시 실행될 block. 오류 처리와 전송 완료 시 수행된다.

Declared In

KOTalkMessageSending.h

– sendMessageWithTemplateId:templateArgs:completionHandler:

미리 지정된 메시지 템플릿(V2)을 사용하여, 카카오톡으로 메시지를 전송합니다. 제휴를 통해 권한이 부여된 특정 앱에서만 호출 가능합니다.

- (KOSessionTask *)sendMessageWithTemplateId:(NSString *)templateId templateArgs:(NSDictionary<NSString*,id> *)templateArgs completionHandler:(void ( ^ ) ( NSError *))completionHandler

Parameters

templateId

전송할 메시지 템플릿 ID.

templateArgs

메시지 템플릿을 완성하기 위해 필요한 추가 파라미터 정보.

completionHandler

요청 완료시 실행될 block. 오류 처리와 전송 완료 시 수행된다.

Declared In

KOTalkMessageSending.h

Other Methods

  appRegistered

채팅 멤버의 앱 가입 여부

@property (nonatomic, readonly, getter=isAppRegistered) BOOL appRegistered

Discussion

@property appRegistered

Declared In

KOChatMember.h

  ID

채팅 멤버의 사용자 아이디

@property (readonly, nullable) NSString *ID

Discussion

@property ID

Declared In

KOChatMember.h

  nickname

카카오톡 닉네임

@property (readonly, nullable) NSString *nickname

Discussion

@property nickname

Declared In

KOChatMember.h

  thumbnailImageURL

카카오톡 썸네일 이미지 URL

@property (readonly, nullable) NSURL *thumbnailImageURL

Discussion

@property thumbnailImageURL

Declared In

KOChatMember.h

  msgBlocked

메시지 차단 여부

@property (readonly, getter=isMsgBlocked) BOOL msgBlocked

Discussion

@property msgBlocked

Declared In

KOChatMember.h