Set phone calendar sync switch and permission

Function table: supportPhoneCalendarReminder

Swift

let model = IDOPhoneCalendarSyncSetModel(syncOnOff: 1, calendarPermissionStatus: 1)
Cmds.setPhoneCalendarSync(model) { err, reply in
    if err.code == 0 { /* reply?.errCode */ }
}

Kotlin

val model = IDOPhoneCalendarSyncSetModel(syncOnOff = 1, calendarPermissionStatus = 1)
Cmds.setPhoneCalendarSync(model).send { rs ->
    if (rs.error.code == 0) { /* rs.res?.errCode */ }
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by Gitbook修改日期: 2026-07-27 09:20:46

results matching ""

    No results matching ""