Mini App Document Mini App Document
  • Start
  • Configuration
  • Framework
  • Custom Components
  • Basic ability
  • Configuration
  • Interface
  • FXML syntax
  • FXS syntax
API
Components
IDE
  • Developer
  • Operator
  • Start
  • Configuration
  • Framework
  • Custom Components
  • Basic ability
  • Configuration
  • Interface
  • FXML syntax
  • FXS syntax
API
Components
IDE
  • Developer
  • Operator
  • API overview
  • Basics
  • Routing
  • Jump
  • Forwarding
  • Interface
  • Network
  • Data caching
  • Media
  • Map
  • Location
  • File
  • Device
  • Canvas
  • FXML
  • Customize the menu
  • Other
    • base64ToTempFilePath
    • onCustomEvent
    • offCustomEvent
  • API
2022-08-09
Directory

Other

# base64ToTempFilePath

Base Library 1.3.9 is supported, iOS version 2.1.23, Android version 2.1.38

base64ToTempFilePath(Object object)

Saves the base64 data of the image to the local sandbox and returns the local cache path.

Properties Type The default value is Required Description
x number 0 No The upper-left abscissa of the area to be clipped is
y number 0 No The upper-left ordinate coordinate of the area to be clipped is
width number Canvas width -x No The width of the area to be cropped
height number Canvas height -y No The height of the area to be cropped is
destWidth number width x screen pixel density No The width of the output picture is
destHeight number height x screen pixel density No The height of the output picture is
base64Data string Yes The image is converted to a base64 type string
success function No The interface calls the callback function successfully
fail function No The callback function that failed the interface callback function
complete function No The callback function at the end of the interface call (the call succeeds or fails to execute the

object.success callback function

Parameters

Object res

Properties Type Description
tempFilePath string The local address of the picture

# onCustomEvent

onCustomEvent(callback)

Listen for native sending "onCustomEvent" events.

Sample Code

# offCustomEvent

offCustomEvent(callback)

Cancels listening for the onCustomEvent event. When callback is empty, clear all callbacks

Sample Code

Last update: 2022/08/11, 20:42:12
Customize the menu

← Customize the menu

Copyright © 2020-2024 Neuxnet
  • Follow System
  • Light Mode
  • Dark Mode
  • Reading Mode