// QR code scanning extension componentimplementation 'com.tencent.tcmpp.android:mini_extra_qrcode:${version}' // For version information, see Android SDK Updates
API name | Description |
wx.scanCode | Opens the client’s QR code scanning interface to scan the QR code |
Permission | Description |
Camera | Camera permission is required for QR code scanning |
File read/write | File read/write permissions are required to recognize QR codes in local images |
implementation 'com.tencent.tcmpp.android:mini_extra_map:${version}'// For version information, see Android SDK UpdatesImplementation 'com.tencent.map:tencent-map-vector-SDK:4.5.10' // For version information, seeTencent Maps Documentationimplementation 'com.tencent.map:sdk-utilities:1.0.7'implementation 'com.tencent.map.geolocation:TencentLocationSdk-openplatform:7.4.7'
<application...<meta-dataandroid:name="TencentMapSDK"android:value="(YOUR_API_KEY)" />...</application>
API name | Description |
Map | Supports map-related APIs, including map display, location selection, and POI query, etc. |
Permission | Description |
Location permission | Required to use location services for displaying map locations |
implementation 'com.tencent.tcmpp.android:mini_extra_google_map:${version}'// For version information, see Android SDK Updatesimplementation 'com.google.android.gms:play-services-maps:18.1.0' // For version information, seeGoogle Maps Documentation (public network access required)implementation 'com.google.maps.android:android-maps-utils:2.3.0'
repositories {maven {url 'https://developer.huawei.com/repo/'}}implementation 'com.tencent.tcmpp.android:mini_extra_huawei_map:${version}'// For version information, see Android SDK Updatesimplementation 'com.huawei.hms:maps:6.9.0.300' // For version information, seeHuawei Maps Documentationimplementation 'com.huawei.hms:maps-basic:6.9.0.300'implementation 'com.huawei.hms:site:6.5.1.300'
<application...<meta-dataandroid:name="com.google.android.geo.API_KEY"android:value="(YOUR_API_KEY)" />...</application>
<application...<meta-dataandroid:name="HuaweiApiKey"android:value="(YOUR_API_KEY)" />...</application>
API name | Description |
Map | Supports map-related APIs and components, including map display, location selection, and POI query, etc. |
Permission | Description |
Location permission | Required to use location services for displaying map locations |
// Live streaming component support libraryimplementation 'com.tencent.tcmpp.android:mini_extra_trtc_live:${version}'// For version information, seeAndroid SDK Updates// Live streaming component libraryimplementation 'com.tencent.liteav:LiteAVSDK_Professional:latest.release' // For version information, seeTencent Cloud Documentation
@ProxyService(proxy = MiniAppProxy.class)public class MiniAppProxyImpl extends BaseMiniAppProxyImpl {@Overridepublic MiniConfigData configData(Context context, int configType, JSONObject params) {if(configType == MiniConfigData.TYPE_LIVE) {// Live streaming configurationMiniConfigData.LiveConfig liveConfig = new MiniConfigData.LiveConfig();// The following key and url can only be used for demoliveConfig.licenseKey = "";liveConfig.licenseUrl = "";return new MiniConfigData.Builder().liveConfig(liveConfig).build();}return null;}}
API name | Description |
wx.createLivePusherContext | Creates a live streaming push context |
LivePusherContext | Supports LivePusherContext related APIs |
wx.createLivePlayerContext | Create a live streaming pull context |
LivePlayerContext | Supports LivePlayerContext related APIs |
Component | - |
live-pusher | Push tag |
live-player | Play tag |
Permission | Description |
Camera | - |
Recording | - |
implementation 'com.tencent.tcmpp.android:mini_extra_lbs:${version}'// For version information, seeAndroid SDK Updates
API name | Description |
Location information | Supports location information related APIs |
Compass | Supports compass related APIs |
Accelerometer | Supports accelerometer related APIs |
Device orientation | Supports device orientation related APIs |
Gyroscope | Supports gyroscope related APIs |
Permission | Description |
Location permission | Required to obtain the location |
implementation 'com.tencent.tcmpp.android:mini_extra_bluetooth:${version}'// For version information, seeAndroid SDK Updates
API | Description |
Bluetooth - general | General Bluetooth API |
Bluetooth - Low-power peripheral device | Peripheral device related APIs |
Bluetooth-Low-power center device | Center device related APIs |
Bluetooth-beacon | Bluetooth beacon related APIs |
Permission | Description |
Bluetooth | Required to operate the Bluetooth |
Location permission | Required to search the Bluetooth device |
implementation 'com.tencent.tcmpp.android:mini_extra_nfc:${version}'// For version information, seeAndroid SDK Updates
API name | Description |
wx.getNFCAdapter | Gets the NFC operation management instance object |
NFCAdapter | Supports NFCAdapter related APIs |
NFC instances (NFCA, NFCB, NFCV, NFCF, NDEF, IsoDep, MifareUltralight, MifareClassic) | Supports NFC tag instance related APIs |
Permission | Description |
NFC | Requires the NFC permission |
implementation 'com.tencent.tcmpp.android:mini_extra_soter:${version}'// For version information, seeAndroid SDK Updates
API | Description |
wx.startSoterAuthentication | - |
wx.checkIsSupportSoterAuthentication | - |
wx.checkIsSoterEnrolledInDevice | - |
Permission | Description |
Fingerprint access | Required to access fingerprint data for authentication purposes |
implementation 'com.tencent.tcmpp.android:mini_extra_clipboard:${version}'// For version information, seeAndroid SDK Updates
API | Description |
wx.getClipboardData | - |
wx.setClipboardData | - |
Permission | Description |
Clipboard permission | Required to access and modify clipboard data |
implementation 'com.tencent.tcmpp.android:mini_extra_contact:${version}'// For version information, seeAndroid SDK Updates
API name | Description |
wx.addPhoneContact | Adds a contact |
wx.chooseContact | Selects a contact |
Permission | Description |
Contacts read/write permission | Required to access and write contacts information |
implementation 'com.tencent.tcmpp.android:mini_extra_pdf:${version}'// For version information, seeAndroid SDK Updates
API name | Description |
wx.openDocument | Open a pdf document |
implementation 'com.tencent.tcmpp.android:mini_extra_media_support:${version}'// For version information, seeAndroid SDK Updates
@ProxyService(proxy = MediaImageLoaderProxy.class) public class CustomMediaImageLoaderProxy implements MediaImageLoaderProxy { private GlideImageEngine glideImageEngine = new GlideImageEngine(); @Override public ImageEngine getCustomImageEngine() { return glideImageEngine; } static class GlideImageEngine implements ImageEngine { @Override public void loadPhoto(@NonNull Context context, @NonNull Uri uri, @NonNull ImageView imageView) { Glide.with(context).load(uri).transition(withCrossFade()).into(imageView); } @Override public void loadGifAsBitmap(@NonNull Context context, @NonNull Uri gifUri, @NonNull ImageView imageView) { Glide.with(context).asBitmap().load(gifUri).into(imageView); } @Override public void loadGif(@NonNull Context context, @NonNull Uri gifUri, @NonNull ImageView imageView) { Glide.with(context).asGif().load(gifUri).transition(withCrossFade()).into(imageView);
Was this page helpful?