Pārlūkot izejas kodu

ios ionic openNotificationCenter

tama 1 gadu atpakaļ
vecāks
revīzija
a92f1158db

+ 1 - 0
NexilisSampleCodeIonic-iOS/ios/App/App/NativeCap.m

@@ -21,4 +21,5 @@ CAP_PLUGIN(NativeCap, "NativeCap",
            CAP_PLUGIN_METHOD(openScreenSharing, CAPPluginReturnPromise);
            CAP_PLUGIN_METHOD(openWhiteboard, CAPPluginReturnPromise);
            CAP_PLUGIN_METHOD(openProfile, CAPPluginReturnPromise);
+           CAP_PLUGIN_METHOD(openNotificationCenter, CAPPluginReturnPromise);
            )

+ 4 - 4
NexilisSampleCodeIonic-iOS/ios/App/App/NativeCap.swift

@@ -74,14 +74,14 @@ public class NativeCap: CAPPlugin {
             APIS.signInAdmin(password: password as! String)
         }
     }
-    @objc func openScreenSharing(_ call: CAPPluginCall) {
+    @objc func openWhiteboard(_ call: CAPPluginCall) {
         DispatchQueue.main.async {
-            APIS.openScreenSharing()
+            APIS.openWhiteboard()
         }
     }
-    @objc func openWhiteboard(_ call: CAPPluginCall) {
+    @objc func openNotificationCenter(_ call: CAPPluginCall) {
         DispatchQueue.main.async {
-            APIS.openWhiteboard()
+            APIS.openNotificationCenter()
         }
     }
 }

+ 1 - 0
NexilisSampleCodeIonic-iOS/src/app/Native.ts

@@ -14,6 +14,7 @@ export interface NativePlugin {
   openChatGPT(): Promise<{response:string}>;
   openSettings(): Promise<{}>;
   openProfile(): Promise<{}>;
+  openNotificationCenter(): Promise<{}>;
 }
 
 const native_plugin = registerPlugin<NativePlugin>("NativeCap");

+ 6 - 1
NexilisSampleCodeIonic-iOS/src/app/app.component.ts

@@ -24,7 +24,7 @@ export class AppComponent {
 
 
   async openContactCenter() {
-    let result = await native_plugin.openContactCenter();
+    let result = await native_plugin. openContactCenter();
     console.log(result);
   }
 
@@ -86,4 +86,9 @@ export class AppComponent {
     console.log(result);
   }
 
+  async openNotificationCenter() {
+    let result = await native_plugin.openNotificationCenter();
+    console.log(result);
+  }
+
 }