import Foundation

@objc(UNSnapshotProtectionManager)
class UNSnapshotProtectionManager: NSObject, RCTBridgeModule {

    static func moduleName() -> String! {
        return "UNSnapshotProtectionManager"
    }

    static func requiresMainQueueSetup() -> Bool {
        return true
    }

    @objc func configureSnapshotProtectionStrategy(_ shouldProtect: Bool, style: String) {
        UNSharedServicesProvider.shared.snapshotProtectionService().start(
            shouldProtect: shouldProtect,
            style: style
        )
    }
}
