forked from Ivasoft/mattermost-mobile
* iOS Share extension * Add Fastlane steps for iOS Share Extension * new multi file layout * Add recent label * Refactor code & identation * ux feedback * downsample images * remove options horizontal padding
31 lines
753 B
Swift
31 lines
753 B
Swift
//
|
|
// GekidouWrapper.swift
|
|
// Mattermost
|
|
//
|
|
// Created by Elias Nahum on 06-04-22.
|
|
// Copyright © 2022 Facebook. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import Gekidou
|
|
|
|
@objc class GekidouWrapper: NSObject {
|
|
@objc public static let `default` = GekidouWrapper()
|
|
|
|
@objc func postNotificationReceipt(_ userInfo: [AnyHashable:Any]) {
|
|
Network.default.postNotificationReceipt(userInfo)
|
|
}
|
|
|
|
@objc func attachSession(_ id: String, completionHandler: @escaping () -> Void) {
|
|
let shareExtension = ShareExtension()
|
|
shareExtension.attachSession(
|
|
id: id,
|
|
completionHandler: completionHandler
|
|
)
|
|
}
|
|
|
|
@objc func setPreference(_ value: Any?, forKey name: String) {
|
|
Preferences.default.set(value, forKey: name)
|
|
}
|
|
}
|