0.1.1 • Published 1 month ago

@serebano/capacitor-icloud-preferences v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

@serebano/capacitor-icloud-preferences

Capacitor plugin for iCloud key-value sync

Install

npm install @serebano/capacitor-icloud-preferences
npx cap sync

API

set(...)

set(options: { key: string; value: any; }) => Promise<void>
ParamType
options{ key: string; value: any; }

get(...)

get(options: { key: string; }) => Promise<{ value: any; }>
ParamType
options{ key: string; }

Returns: Promise<{ value: any; }>


remove(...)

remove(options: { key: string; }) => Promise<void>
ParamType
options{ key: string; }

setContainer(...)

setContainer(options: { identifier: string; }) => Promise<void>
ParamType
options{ identifier: string; }

configureSyncKeys(...)

configureSyncKeys(options: { keys: string[]; }) => Promise<void>
ParamType
options{ keys: string[]; }

addListener('icloudSyncComplete', ...)

addListener(eventName: 'icloudSyncComplete', listenerFunc: (data: Record<string, any>) => void) => Promise<PluginListenerHandle>
ParamType
eventName'icloudSyncComplete'
listenerFunc(data: Record<string, any>) => void

Returns: Promise<PluginListenerHandle>


removeAllListeners()

removeAllListeners() => Promise<void>

Interfaces

PluginListenerHandle

PropType
remove() => Promise<void>

Type Aliases

Record

Construct a type with a set of properties K of type T

{

}

0.1.1

1 month ago

0.0.61

1 month ago

0.0.6

1 month ago

0.0.4

1 month ago

0.0.3

1 month ago

0.0.2

1 month ago