Kebijakan Privasi
Perjanjian Privasi dan Keamanan Data
C2C Chat Settings Interface | Group Chat Settings Interface |
![]() | ![]() |
Parameter Name | Type | Description |
userID | String | The user ID of the chat partner. |
onSendMessageClick | (() -> Void)? | The webhook triggered when the Send Message button is clicked (optional). |
onContactDelete | (() -> Void)? | The webhook triggered when the Delete Contact button is clicked (optional). |
Method Name | Parameters | Description |
init | userID: String, onSendMessageClick: (() -> Void)?, onContactDelete: (() -> Void)? | Initializes the C2C Chat Settings component. |
Parameter Name | Type | Description |
groupID | String | The group ID used to identify the group chat. |
onSendMessageClick | (() -> Void)? | Webhook triggered when the Send Message button is clicked (optional). |
onGroupDelete | (() -> Void)? | Webhook triggered when the Disband Group or Leave Group button is clicked (optional). |
Method Name | Parameters | Description |
init | groupID: String, onSendMessageClick: (() -> Void)?, onGroupDelete: (() -> Void)? | Initializes the Group Chat Settings component. |
import AtomicXimport SwiftUIstruct C2CSettingView: View {let userID: Stringvar body: some View {C2CChatSetting(userID: userID,onSendMessageClick: {// Handle send message button click},onContactDelete: {// Handle delete contact button click})}}
import AtomicXimport SwiftUIstruct GroupSettingView: View {let groupID: Stringvar body: some View {GroupChatSetting(groupID: groupID,onSendMessageClick: {// Handle send message button click},onGroupDelete: {// Handle disband or leave group button click})}}
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan