mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-08-04 00:00:08 +08:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
421bbf20c2 |
@@ -219,6 +219,17 @@ export class Intercom extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Suppress the given proactive content types, independently of `setInAppMessageVisibility`.
|
||||
* @note All proactive content is visible by default; pass an empty array to unsuppress all.
|
||||
*
|
||||
* @param types An array of content type strings to suppress, e.g. `[IntercomPresentContentType.Carousel, IntercomPresentContentType.Survey]`.
|
||||
*/
|
||||
@Cordova()
|
||||
suppressProactiveContent(types: IntercomPresentContentType[]): Promise<void> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Hide all Intercom windows that are currently displayed.
|
||||
* This will hide the Messenger, Help Center, Articles, and in-product messages (eg. Mobile Carousels, chats, and posts).
|
||||
@@ -375,8 +386,7 @@ export enum IntercomPresentContentType {
|
||||
}
|
||||
|
||||
export type IntercomPresentContent =
|
||||
| { id: string; type: IntercomPresentContentType }
|
||||
| { ids: string[]; type: IntercomPresentContentType };
|
||||
{ id: string; type: IntercomPresentContentType } | { ids: string[]; type: IntercomPresentContentType };
|
||||
|
||||
export interface IntercomUserAttributes {
|
||||
email?: string;
|
||||
|
||||
@@ -35,17 +35,6 @@ export interface SQLiteDatabaseConfig {
|
||||
* support encrypted databases with https://github.com/litehelpers/Cordova-sqlcipher-adapter
|
||||
*/
|
||||
key?: string;
|
||||
/**
|
||||
* Use the Android system database provider instead of the default lightweight NDK connector.
|
||||
* Set to 'system' to avoid multiple-SQLite-connection corruption issues on Android. Example: 'system'
|
||||
*/
|
||||
androidDatabaseProvider?: string;
|
||||
/**
|
||||
* Android-only workaround that closes and reopens the database file at the end of every committed
|
||||
* transaction, to work around a database locking issue when `androidDatabaseProvider: 'system'` is used.
|
||||
* Set to 1 to enable. Only applied to `sqlBatch`/`transaction`, not to `executeSql`.
|
||||
*/
|
||||
androidLockWorkaround?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -146,13 +135,8 @@ export class SQLiteObject {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* The underlying plugin method is named `abortAllPendingTransactions`; mapped explicitly here since this
|
||||
* method's name differs in casing.
|
||||
*/
|
||||
@CordovaInstance({
|
||||
sync: true,
|
||||
methodName: 'abortAllPendingTransactions',
|
||||
})
|
||||
abortallPendingTransactions(): void {}
|
||||
}
|
||||
@@ -197,7 +181,7 @@ export class SQLiteObject {
|
||||
pluginRef: 'sqlitePlugin',
|
||||
plugin: 'cordova-sqlite-storage',
|
||||
repo: 'https://github.com/litehelpers/Cordova-sqlite-storage',
|
||||
platforms: ['Android', 'Browser', 'iOS', 'macOS', 'Windows'],
|
||||
platforms: ['Android', 'iOS', 'macOS', 'Windows'],
|
||||
})
|
||||
@Injectable()
|
||||
export class SQLite extends AwesomeCordovaNativePlugin {
|
||||
|
||||
Reference in New Issue
Block a user