Skip to content
NativeScript plugin using the TelegramGallery Image Picker library for a customized image picker
TypeScript CSS JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo
platforms/android
.gitignore
.npmignore
LICENSE
README.md
index.d.ts
package.json
telegram-image-picker.android.ts
tsconfig.json

README.md

npm npm

NativeScript-Telegram-Image-Picker

NativeScript plugin using the TelegramGallery Image Picker library for a customized image picker for Android.

** ANDROID ONLY ** - this plugin uses a native Android library so there is no direct equivalent for iOS.

library Sample

License

This plugin is licensed under the MITlicense by Brad Martin

Installation

tns plugin add nativescript-telegram-image-picker

TypeScript

import { openTelegramImagePicker, TelegramPickerResponse } from 'nativescript-telegram-image-picker';

public whateverYouLike() {
    
    // Open the Telegram Gallery Image Picker Activity      
    openTelegramImagePicker(5).then((resp: TelegramPickerResponse) => {
       // looping over the selected pictures in the response        
       for (var i = 0; i < resp.photos.length; i++) {
         console.log(resp.photos[i]);
       }
    })
      
}

API

  • openTelegramImagePicker(photoLimit?: number): Promise TelegramPickerResponse;

TelegramPickerResponse - { photos: Array, videos: Array }

You can’t perform that action at this time.