@hanwha-ss1/plugin 0.7.0-beta.1 → 0.7.0-beta.2

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.
@@ -5,17 +5,20 @@ import Contacts
5
5
  * Please read the Capacitor iOS Plugin Development Guide
6
6
  * here: https://capacitorjs.com/docs/plugins/ios
7
7
  */
8
+ extension Notification.Name {
9
+ static let documentViewRequest = Notification.Name("documentViewRequest")
10
+ }
11
+
8
12
  @objc(Plugin)
9
13
  public class Plugin: CAPPlugin {
10
14
 
11
15
 
12
- override public func load() {
16
+ override public func load() {
13
17
  // 문서뷰어 요청 이벤트
14
18
  NotificationCenter.default.addObserver(self, selector: #selector(handleDocumentViewRequest(_:)), name: .documentViewRequest, object: nil)
15
- // NotificationCenter.default.addObserver(self, selector: #selector(handleCustomEvent(_:)), name: .myCustomEvent, object: nil)
16
19
  }
17
20
 
18
- @objc func documentViewRequest(_ notification: Notification) {
21
+ @objc func handleDocumentViewRequest(_ notification: Notification) {
19
22
  if let userInfo = notification.userInfo as? [String: Any] {
20
23
  notifyListeners("DocumentViewer", data: userInfo)
21
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanwha-ss1/plugin",
3
- "version": "0.7.0-beta.1",
3
+ "version": "0.7.0-beta.2",
4
4
  "description": "Plugin",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",