The TCMPPSDK engine offers both core and extended modules, facilitating user connection according to their specific circumstances.
Connection and utilization of extension SDK
The extension SDK serves as a supplement to the core SDK, hence its utilization depends on the core SDK. To ensure the security and stability of the SDK, APIs requiring permissions are preferably placed in the extension SDK. The TCMPPSDK engine divides the SDK into the core SDK and the extension SDK, with the latter complementing the former. Therefore, the use of the extension SDK is inherently dependent on the core SDK.
TCMPPSDKExtMedia provides default implementations for three interfaces: chooseMedia, chooseVideo, and chooseImage. If the host app already possesses corresponding capabilities, it is recommended to implement them in the open interface. However, if there is a need to use the multimedia selection plugin provided by TMF, this plugin should be used.
Method of use:
pod 'TCMPPSDK'
pod 'TCMPPSDKExtMedia'
TCMPPSDKExtScanCode
TCMPPSDKExtScanCode provides the processing logic for wx.scanCode. If the host app inherently possesses scanning and recognition capabilities, it is advisable to proceed.
TMFMiniAppSDKDelegate.scanCode:(NSDictionary *)scanPrams navigationController:(UINavigationController *)navigationController completionHandler:(MACommonCallback)completionHandler;
For interfacing with an already functioning scanning module, the plugin provided by TMF can be used upon the need for scanning capabilities.
Method of use:
pod 'ncnn'
pod 'TMFCodeDetector'
pod 'TCMPPSDK'
pod 'TCMPPSDKExtScanCode'
TCMPPSDKExtQMap
TCMPPSDKExtQMap provides users in Chinese mainland with relevant capabilities of the Tencent Maps SDK.
Method of Use:
Apply for an appkey on the Tencent Maps Open Platform and set it in the code:
[TMFAppletQMapComponent setQMapApiKey:@"XXXXXXXXXXX"];
TCMPPSDKExtLive
If you need to use the live streaming components (live-player and live-pusher) for developing live streaming push and pull scenarios, you need to add the following SDKs to support the implementation of related live streaming component features.
pod "TCMPPSDKExtLive"
pod 'TXLiteAVSDK_Professional', :podspec => 'https://liteav.sdk.qcloud.com/pod/liteavsdkspec/TXLiteAVSDK_Professional.podspec'
In addition to completing the addition of the above dependencies, you also need to implement the following methods of TMFMiniAppSDKDelegate, providing the LicenseUrl and LicenseKey required by the live streaming component, to complete the initialization information configuration of the live streaming component; if you do not configure the correct LicenseUrl and LicenseKey, the live streaming component functionality will be unavailable.
- (NSString *)setLiveLicenceURL {
return @"https://xxx.license";
}
- (NSString *)setLiveLicenceKey {
return @"xxx";
}
TCMPPExtAuthentication
TCMPPExtAuthentication provides capabilities related to biometric authentication.
Integration Method:
pod
"TCMPPExtAuthentication"
Instructions for Use:
Add the following in the info.plist file:
Privacy - Face ID Usage Description
API List:
|
checkIsSupportSoterAuthentication | Obtain the biometric authentication methods supported by the local device. |
checkIsSoterEnrolledInDevice | Interface for obtaining whether biometric information such as fingerprints has been entered in the device. |
startSoterAuthentication | Start biometric authentication |
TCMPPExtBLE
TCMPPExtBLE provides capabilities related to low-energy Bluetooth and beacon technology.
Integration Method:
Instructions for Use:
Add the following in the info.plist file:
Privacy - Bluetooth Always Usage Description
Privacy - Bluetooth Peripheral Usage Description
API List:
|
Bluetooth - General | A series of APIs |
Bluetooth - Low Energy Central Device | A series of APIs |
Bluetooth - Low Energy Peripheral Device | A series of APIs |
Bluetooth - Beacon | A series of APIs |
TCMPPExtCalendar
TCMPPExtCalendar offers capabilities related to calendar functionalities.
Integration Method:
Instructions for Use:
Add the following in the info.plist file:
Privacy - Calendars Usage Description
Privacy - Reminders Usage Description
API List:
|
addPhoneRepeatCalendar | Add recurring events to the system calendar. |
addPhoneCalendar | Add events to the system calendar. |
TCMPPExtClipBoard
TCMPPExtClipBoard provides capabilities related to clipboard functionalities.
Integration Method:
API List:
|
setClipboardData | Set the content of the system clipboard. |
getClipboardData | Get the content of the system clipboard. |
TCMPPExtContact
TCMPPExtContact provides capabilities related to calendar functionalities.
Integration Method:
Instructions for Use:
Add the following in the info.plist file:
Privacy - Contacts Usage Description
API List:
|
chooseContact | Select contact |
addPhoneContact | Add a contact to the mobile phone directory. |
TCMPPExtLBS
TCMPPExtLBS offers capabilities related to system location, system maps, compass, accelerometer, device orientation, and gyroscope functionalities.
Integration Method:
Instructions for Use:
Add the following in the info.plist file:
Privacy - Location Always and When In Use Usage Description
Privacy - Location Always Usage Description
Privacy - Location Usage Description
Privacy - Location When In Use Usage Description
Privacy - Motion Usage Description
API List:
|
Positioning | A series of APIs |
System Map | A series of APIs |
Compass, Accelerometer, Device Orientation, Gyroscope | A series of APIs |
TCMPPExtMDNS
TCMPPExtMDNS provides the capability for LAN communication.
Integration Method:
Instructions for Use:
Add the following in the info.plist file:
Privacy - Local Network Usage Description
Privacy - Bonjour services
API List:
TCMPPExtNetwork
TCMPPExtNetwork provides the capabilities for TCP/UDP communication.
Integration Method:
Instructions for Use:
Add the following in the info.plist file:
App Transport Security Settings
Allow Arbitrary Loads - YES
Privacy - Bonjour services
API List:
|
TCP | A series of APIs |
UDP | A series of APIs |
TCMPPExtMp3Encoder
TCMPPExtMp3Encoder provides the ability to save to mp3 format when using RecorderManager.
Integration method:
Instructions for use:
Saving the recordings provided by TCMPP into mp3 format relies on the Lame library. The Lame library open source license is based on GNU Library or Lesser General Public License version 2.0 (LGPLv2), GNU General Public License version 2.0 (GPLv2). Reference: https://sourceforge.net/projects /lame/, users can integrate it as needed.
Was this page helpful?