LocationTemplate

data class LocationTemplate @JvmOverloads constructor(address: String, content: Content, addressTitle: String?, social: Social?, buttons: List<Button>?, buttonTitle: String?) : DefaultTemplate, Parcelable

주소를 이용하여 특정 위치를 공유할 수 있는 메시지 템플릿.

Constructors

Link copied to clipboard
fun LocationTemplate(address: String, content: Content, addressTitle: String? = null, social: Social? = null, buttons: List<Button>? = null, buttonTitle: String? = null)

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

Link copied to clipboard
val address: String

공유할 위치의 주소. 예) 경기 성남시 분당구 판교역로 235

Link copied to clipboard
val addressTitle: String? = null

카카오톡 내의 지도 뷰에서 사용되는 타이틀. 예) 카카오판교오피스

Link copied to clipboard
val buttons: List<Button>? = null

버튼 목록. 기본 버튼의 타이틀 외에 링크도 변경하고 싶을 때 설정. (최대 1개, 오른쪽 위치 보기 버튼은 고정)

Link copied to clipboard
val buttonTitle: String? = null

기본 버튼 타이틀(자세히 보기)을 변경하고 싶을 때 설정. 이 값을 사용하면 클릭 시 이동할 링크는 content에 입력된 값이 사용됨.

Link copied to clipboard
val content: Content

위치에 대해 설명하는 컨텐츠 정보

Link copied to clipboard
val objectType: String

"location" 고정 값

Link copied to clipboard
val social: Social? = null

댓글수, 좋아요수 등, 컨텐츠에 대한 소셜 정보