- Deprecated:
-
- 2019년 9월 17일, 플러스친구가 카카오톡 채널로 리브랜딩되어 기존 PlusFriend 모듈은 Channel로 alias 되었습니다.
- See:
Methods
-
<static> addFriend(settings)
-
플러스친구 친구추가 팝업창을 띄웁니다. 사용자의 클릭 이벤트 이후에 호출되어야 브라우저에 의해 팝업이 차단되지 않습니다.
Parameters:
Name Type Description settings
Object 플러스친구 친구추가와 관련된 설정을 key/value로 전달합니다.
Properties
Name Type Description plusFriendId
String 대상 플러스친구 홈 URL에 포함된 플러스친구 ID
- Deprecated:
-
- 2019년 9월 17일, 플러스친구가 카카오톡 채널로 리브랜딩되어 기존 PlusFriend 모듈은 Channel로 alias 되었습니다.
- See:
-
<static> chat(settings)
-
플러스친구 1:1 채팅을 시작합니다. 사용자의 클릭 이벤트 이후에 호출되어야 브라우저에 의해 팝업이 차단되지 않습니다.
Parameters:
Name Type Description settings
Object 플러스친구 1:1 채팅과 관련된 설정을 key/value로 전달합니다.
Properties
Name Type Description plusFriendId
String 대상 플러스친구 홈 URL에 포함된 플러스친구 ID
- Deprecated:
-
- 2019년 9월 17일, 플러스친구가 카카오톡 채널로 리브랜딩되어 기존 PlusFriend 모듈은 Channel로 alias 되었습니다.
- See:
-
<static> cleanup()
-
플러스친구와 관련된 리소스를 해제합니다.
-
<static> createAddFriendButton(settings)
-
플러스친구 친구추가 버튼을 생성합니다.
Parameters:
Name Type Description settings
Object 플러스친구 친구추가 버튼 생성과 관련된 설정을 key/value로 전달합니다.
Properties
Name Type Argument Default Description container
String | HTMLElement DOM Element 또는 Element의 ID Selector
plusFriendId
String 대상 플러스친구 홈 URL에 포함된 플러스친구 ID
size
"small" | "large" <optional>
"small" 친구추가 버튼의 사이즈
color
"yellow" | "black" <optional>
"yellow" 친구추가 버튼의 배경색
shape
"rect" | "round" <optional>
"rect" 화면 배율에 따라 2x 3x 이미지를 사용, IE 미지원
supportMultipleDensities
Boolean <optional>
false 화면 배율에 따라 2x 3x 이미지를 사용, IE 미지원
- Deprecated:
-
- 2019년 9월 17일, 플러스친구가 카카오톡 채널로 리브랜딩되어 기존 PlusFriend 모듈은 Channel로 alias 되었습니다.
- See:
-
<static> createChatButton(settings)
-
플러스친구 1:1 채팅 버튼을 생성합니다.
Parameters:
Name Type Description settings
Object 플러스친구 1:1 채팅 버튼 생성과 관련된 설정을 key/value로 전달합니다
Properties
Name Type Argument Default Description container
String | HTMLElement DOM Element 또는 Element의 ID Selector
plusFriendId
String 대상 플러스친구 홈 URL에 포함된 플러스친구 ID
title
"consult" | "question" <optional>
"consult" 1:1 채팅 버튼에 들어갈 제목
size
"small" | "large" <optional>
"small" 1:1 채팅 버튼의 사이즈
color
"yellow" | "black" <optional>
"yellow" 1:1 채팅 버튼의 배경색
shape
"pc" | "mobile" <optional>
"pc" 1:1 채팅 버튼의 모양
supportMultipleDensities
Boolean <optional>
false 화면 배율에 따라 2x 3x 이미지를 사용, IE 미지원
- Deprecated:
-
- 2019년 9월 17일, 플러스친구가 카카오톡 채널로 리브랜딩되어 기존 PlusFriend 모듈은 Channel로 alias 되었습니다.
- See: