@leena-ai/sdk
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

@leena-ai/sdk

ns plugin add @leena-ai/sdk

Usage

XML + Typescript

  1. Add xmlns to Page element

  2. Use the name of xmlns as a selector

  3. Leena SDK exports the component named Sdk which can be used to open a Leena bot

    Example:

    <Page 
    xmlns="http://schemas.nativescript.org/tns.xsd"    
    xmlns:ln="@leena-ai/sdk" navigatingTo="navigatingTo" class="page">
     <!-- Here Goes your Header and any other UI -->
         <GridLayout>
             <ln:Sdk clientId="{{ clientId }}" token="changeme"></ln:Sdk>
         </GridLayout>
     </Page>
    
    
    

Nativescript Angular

  1. Import NativeScriptSdkModule in the module you want to load Leena App
  2. Leena SDK exports a component named Sdk that can used like any other Angular component

Note: Use a <GridLayout> instead of <StackLayout> if the UI does not load

API

Property Default Required Description
clientId - Yes The client ID for Leena bot.
token - Yes The app token which will authenticate the user with Leena App

License

Apache License Version 2.0

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.50latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i @leena-ai/sdk

Weekly Downloads

0

Version

1.0.5

License

Apache-2.0

Unpacked Size

43.4 kB

Total Files

41

Last publish

Collaborators

  • alokparikh16
  • anandprajapati