New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hyper-sdk-plugin

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyper-sdk-plugin - npm Package Compare versions

Comparing version 2.0.13 to 2.0.14

2

package.json
{
"name": "hyper-sdk-plugin",
"version": "2.0.13",
"version": "2.0.14",
"description": "Cordova plugin for HyperSDK which enables payment orchestration via different dynamic modules. More details available at https://developer.juspay.in/v2.0/docs/introduction . Some part of module depends heavily on native functionalities and are not updatable dynamically.",

@@ -5,0 +5,0 @@ "cordova": {

@@ -107,11 +107,24 @@ # HyperSDK Cordova plugin

For android and other cases where system backpress or hardware backpress needs to be handled. We need to override default backpress and call HyperSDK backpress handler. [Cordova doc ref](https://cordova.apache.org/docs/en/10.x/cordova/events/events.html#backbutton)
For android, system or hardware backpress needs to be handled. Override onBackPressed() method provided by activity and call HyperSDK's onBackPressed() method to check whether the activity needs to handle backpress or SDK is handling it.
```javascript
document.addEventListener("backbutton", onBackKeyDown, false);
function onBackKeyDown() {
hyperSDKRef.onBackPress(function (response) {
// if response true HyperSDK will handle else app can handle backpress
});
```java
@Override
public void onBackPressed() {
boolean backPressHandled = HyperSDKPlugin.onBackPressed();
if (!backPressHandled) {
super.onBackPressed();
}
}
```
```
### Reset Activity
For android, override onDestroy method of the activity and call HyperSDK's resetActivity() method to avoid any memory leaks
```java
@Override
public void onDestroy() {
HyperSDKPlugin.resetActivity();
super.onDestroy();
}
```

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc