Files
ForumMobile/native-sidebar/ios/Plugin/NativeSidebarPlugin.m
2026-06-22 04:35:01 -05:00

14 lines
618 B
Objective-C

#import <Foundation/Foundation.h>
#import <Capacitor/Capacitor.h>
// Define the plugin using the CAP_PLUGIN Macro, and
// each method the plugin supports using the CAP_PLUGIN_METHOD macro.
CAP_PLUGIN(NativeSidebarPlugin, "NativeSidebar",
CAP_PLUGIN_METHOD(setData, CAPPluginReturnPromise);
CAP_PLUGIN_METHOD(setTheme, CAPPluginReturnPromise);
CAP_PLUGIN_METHOD(open, CAPPluginReturnPromise);
CAP_PLUGIN_METHOD(close, CAPPluginReturnPromise);
CAP_PLUGIN_METHOD(setEnabled, CAPPluginReturnPromise);
CAP_PLUGIN_METHOD(dismiss, CAPPluginReturnPromise);
)