Socket
Book a DemoInstallSign in
Socket

cordova-plugin-log2c-doodle

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-log2c-doodle

Cordova doodle plugin.

latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

cordova-plugin-log2c-doodle

Cordova Doodle插件 对图片进行标记涂鸦 添加文字和打马赛克功能,iOS基于LFMediaEditingController

Install

  • 安装plugin

    cordova plugin add cordova-plugin-log2c-doodle
    
  • config.xml中添加iOS需要的权限

        <edit-config target="NSCameraUsageDescription" file="*-Info.plist" mode="merge">
            <string>need camera access to take pictures</string>
        </edit-config>
        <edit-config target="NSCameraUsageDescription" file="*-Info.plist" mode="merge">
            <string>need camera access to take pictures</string>
        </edit-config>
        <edit-config target="NSLocationWhenInUseUsageDescription" file="*-Info.plist" mode="merge">
            <string>need location access to find things nearby</string>
        </edit-config>
        <edit-config target="NSPhotoLibraryAddUsageDescription" file="*-Info.plist" mode="merge">
            <string>need photo library access to save pictures there</string>
        </edit-config>
        <edit-config target="NSPhotoLibraryUsageDescription" file="*-Info.plist" mode="merge">
            <string>need photo library access to save pictures there</string>
        </edit-config>
    

API

cordova.exec(success, error, 'DoodlePlugin', 'doodle', [arg0]);

参数:arg0 为图片路径(android:applocal://native/images/或者file:///开头的图片路径,iOS:assets-library)
返回结果为图片的Base64编码

示例:

      (res) => { //Base64 },
      (err) => {  },
      'DoodlePlugin',
      'doodle',
      ['file:///storage/emulated/0/Android/data/io.ionic.starter/cache/1568251761843.jpg']);```

Keywords

cordova

FAQs

Package last updated on 02 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts