Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bradmartin/nativescript-telegram-image-picker
NativeScript plugin using the TelegramGallery Image Picker library for a customized image picker
https://github.com/bradmartin/nativescript-telegram-image-picker
android nativescript-plugin nativescript-telegram-image-picker
Last synced: 10 days ago
JSON representation
NativeScript plugin using the TelegramGallery Image Picker library for a customized image picker
- Host: GitHub
- URL: https://github.com/bradmartin/nativescript-telegram-image-picker
- Owner: bradmartin
- License: other
- Created: 2016-10-09T04:02:56.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-17T16:50:14.000Z (almost 8 years ago)
- Last Synced: 2024-12-23T18:51:56.970Z (18 days ago)
- Topics: android, nativescript-plugin, nativescript-telegram-image-picker
- Language: TypeScript
- Homepage:
- Size: 15.5 MB
- Stars: 10
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![npm](https://img.shields.io/npm/v/nativescript-telegram-image-picker.svg)](https://www.npmjs.com/package/nativescript-telegram-image-picker)
[![npm](https://img.shields.io/npm/dt/nativescript-telegram-image-picker.svg?label=npm%20downloads)](https://www.npmjs.com/package/nativescript-telegram-image-picker)# NativeScript-Telegram-Image-Picker
NativeScript plugin using the [TelegramGallery Image Picker library](https://github.com/TangXiaoLv/TelegramGallery) 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](https://github.com/TangXiaoLv/TelegramGallery/raw/master/png/1.gif)## License
This plugin is licensed under the MITlicense by Brad Martin## Installation
```
tns plugin add nativescript-telegram-image-picker
```#### TypeScript
```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
}