Forráskód Böngészése

ionic code openProfile

tama 1 éve
szülő
commit
8bb10b0169

+ 6 - 0
.gitignore

@@ -42,3 +42,9 @@ app.*.map.json
 /android/app/debug
 /android/app/profile
 /android/app/release
+
+/NXCode/
+/uploads/
+**/.gradle/
+**/local.properties
+

+ 5 - 0
NexilisSampleCodeIonic-Android/android/app/src/main/java/com/example/paliolitesamplecodeionic/NativePlugin.java

@@ -64,6 +64,11 @@ public class NativePlugin extends Plugin {
     API.openSettings();
   }
 
+  @PluginMethod
+  public void openProfile(PluginCall call) {
+    API.openProfile();
+  }
+
   @PluginMethod
   public void openContactCenterChat(PluginCall call) {
     int category = call.getInt("category", 0);

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

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

+ 5 - 0
NexilisSampleCodeIonic-Android/ios/App/App/NativeCap.swift

@@ -41,6 +41,11 @@ public class NativeCap: CAPPlugin {
             APIS.openSetting()
         }
     }
+    @objc func openProfile(_ call: CAPPluginCall) {
+        DispatchQueue.main.async {
+            APIS.openProfile()
+        }
+    }
     @objc func openContactCenterChat(_ call: CAPPluginCall) {
         let media = 0
         let category = call.options["category"]

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

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

+ 4 - 0
NexilisSampleCodeIonic-Android/src/app/app.component.ts

@@ -47,6 +47,10 @@ export class AppComponent {
     await native_plugin.openSettings();
   }
 
+  async openProfile() {
+    await native_plugin.openProfile();
+  }
+
   async openWhiteboard() {
     let result = await native_plugin.openWhiteboard();
     console.log(result);

+ 5 - 0
NexilisSampleCodeIonic-iOS/android/app/src/main/java/com/example/paliolitesamplecodeionic/NativePlugin.java

@@ -64,6 +64,11 @@ public class NativePlugin extends Plugin {
     API.openSettings();
   }
 
+  @PluginMethod
+  public void openProfile(PluginCall call) {
+    API.openProfile();
+  }
+
   @PluginMethod
   public void openContactCenterChat(PluginCall call) {
     int category = call.getInt("category", 0);

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

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

+ 5 - 0
NexilisSampleCodeIonic-iOS/ios/App/App/NativeCap.swift

@@ -41,6 +41,11 @@ public class NativeCap: CAPPlugin {
             APIS.openSetting()
         }
     }
+    @objc func openProfile(_ call: CAPPluginCall) {
+        DispatchQueue.main.async {
+            APIS.openProfile()
+        }
+    }
     @objc func openContactCenterChat(_ call: CAPPluginCall) {
         let media = 0
         let category = call.options["category"]

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

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

+ 4 - 0
NexilisSampleCodeIonic-iOS/src/app/app.component.ts

@@ -47,6 +47,10 @@ export class AppComponent {
     await native_plugin.openSettings();
   }
 
+  async openProfile() {
+    await native_plugin.openProfile();
+  }
+
   async openWhiteboard() {
     let result = await native_plugin.openWhiteboard();
     console.log(result);