0.5.0 • Published 12 months ago

@aigens/aigens-sdk-netcore v0.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

@aigens/aigens-sdk-netcore

Aigens SDK netcore

Install

npm install @aigens/aigens-sdk-netcore
npx cap sync

API

fetchAlreadyGeneratedTokenFromFCM()

fetchAlreadyGeneratedTokenFromFCM() => Promise<void>

setDevicePushToken(...)

setDevicePushToken(options: { token: string; }) => Promise<void>
ParamType
options{ token: string; }

getDevicePushToken()

getDevicePushToken() => Promise<{ token: string; }>

Returns: Promise<{ token: string; }>


setNotificationOptions(...)

setNotificationOptions(options: { brandLogo: string; largeIcon: string; smallIcon: string; smallIconTransparent: string; transparentIconBgColor: string; placeHolderIcon: string; }) => Promise<void>
ParamType
options{ brandLogo: string; largeIcon: string; smallIcon: string; smallIconTransparent: string; transparentIconBgColor: string; placeHolderIcon: string; }

updateNotificationPermission(...)

updateNotificationPermission(options: { permission: "granted" | "denied"; }) => Promise<void>
ParamType
options{ permission: 'granted' | 'denied'; }

requestNotificationPermission()

requestNotificationPermission() => Promise<{ result: boolean; }>

Returns: Promise<{ result: boolean; }>


setDebugLevel(...)

setDebugLevel(options: { level: 0 | 1; }) => Promise<void>
ParamType
options{ level: 0 | 1; }

updateUserProfile(...)

updateUserProfile(options: { member: any; }) => Promise<void>
ParamType
options{ member: any; }

setUserIdentity(...)

setUserIdentity(options: { id: string; }) => Promise<void>
ParamType
options{ id: string; }

login(...)

login(options: { id: string; }) => Promise<void>
ParamType
options{ id: string; }

clearUserIdentity()

clearUserIdentity() => Promise<void>

logoutAndClearUserIdentity(...)

logoutAndClearUserIdentity(options: { booleanClearIdentity: boolean; }) => Promise<void>
ParamType
options{ booleanClearIdentity: boolean; }

setUserLocation(...)

setUserLocation(options: { latitude: number; longitude: number; }) => Promise<void>
ParamType
options{ latitude: number; longitude: number; }

setOptTracking(...)

setOptTracking(options: { optTracking: boolean; }) => Promise<void>
ParamType
options{ optTracking: boolean; }

hasOptedTracking()

hasOptedTracking() => Promise<{ result: boolean; }>

Returns: Promise<{ result: boolean; }>


setOptInAppMessage(...)

setOptInAppMessage(options: { optInAppMessage: boolean; }) => Promise<void>
ParamType
options{ optInAppMessage: boolean; }

hasOptedInAppMessage()

hasOptedInAppMessage() => Promise<{ result: boolean; }>

Returns: Promise<{ result: boolean; }>


trackEvent(...)

trackEvent(options: { event: string; params: any; }) => Promise<void>
ParamType
options{ event: string; params: any; }

addListener('OnSmartechHandleDeeplinkEvent', ...)

addListener(eventName: 'OnSmartechHandleDeeplinkEvent', listenerFunc: (options: { deepLinkvalue: string; customPayloadvalue: any; }) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
ParamType
eventName'OnSmartechHandleDeeplinkEvent'
listenerFunc(options: { deepLinkvalue: string; customPayloadvalue: any; }) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


addListener('OnCustomHTMLCallback', ...)

addListener(eventName: 'OnCustomHTMLCallback', listenerFunc: (options: any) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
ParamType
eventName'OnCustomHTMLCallback'
listenerFunc(options: any) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


addListener('OnCustomHtmlInAppClick', ...)

addListener(eventName: 'OnCustomHtmlInAppClick', listenerFunc: (options: { s: string; s1: string; }) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
ParamType
eventName'OnCustomHtmlInAppClick'
listenerFunc(options: { s: string; s1: string; }) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


Interfaces

PluginListenerHandle

PropType
remove() => Promise<void>
0.5.0

12 months ago

0.4.11

2 years ago

0.4.10

2 years ago

0.4.9

2 years ago

0.4.8

2 years ago

0.4.7

2 years ago

0.4.6

2 years ago

0.4.5

2 years ago

0.4.4

2 years ago

0.4.3

2 years ago

0.4.2

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.0.1

2 years ago