omikit-plugin 3.2.62 → 3.2.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -371,6 +371,8 @@ class MainActivity : ReactActivity() {
371
371
  ```swift
372
372
  #if __has_include("OmikitNotification.h")
373
373
  #import "OmikitNotification.h"
374
+ #elif __has_include(<OmikitPlugin/OmikitPlugin-Swift.h>)
375
+ #import <OmikitPlugin/OmikitPlugin-Swift.h>
374
376
  #else
375
377
  #import <omikit_plugin/OmikitNotification.h>
376
378
  #endif
@@ -789,7 +791,21 @@ We need you request permission about call before make call:
789
791
  "uuid": "122aaa"
790
792
  }
791
793
  ```
794
+ - endCall: End a completed call (including rejecting a call).
792
795
 
796
+ ```javascript
797
+ import {endCall} from 'omikit-plugin';
798
+
799
+ endCall();
800
+ ```
801
+ - rejectCall: Used to reject an incoming call when the user has not accepted it yet.
802
+ Note: Do not use this function to end an ongoing call.
803
+
804
+ ```javascript
805
+ import {rejectCall} from 'omikit-plugin';
806
+
807
+ rejectCall();
808
+ ```
793
809
  - Logout: logout and remove all information.
794
810
 
795
811
  ```javascript
@@ -6,8 +6,13 @@
6
6
  //
7
7
 
8
8
  #import <Foundation/Foundation.h>
9
+ #if __has_include("OmikitNotification.h")
10
+ #import "OmikitNotification.h"
11
+ #elif __has_include(<OmikitPlugin/OmikitPlugin-Swift.h>)
9
12
  #import <OmikitPlugin/OmikitPlugin-Swift.h>
10
-
13
+ #else
14
+ #import <omikit_plugin/OmikitNotification.h>
15
+ #endif
11
16
 
12
17
  @implementation OmikitNotification : NSObject
13
18
  + (void)didRecieve:(NSDictionary*) userInfo{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omikit-plugin",
3
- "version": "3.2.62",
3
+ "version": "3.2.63",
4
4
  "description": "Omikit Plugin by ViHAT",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",