基础组件库
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

ZhiyingBaseWidgetPlugin.m 750 B

pirms 4 gadiem
1234567891011121314151617181920
  1. #import "ZhiyingBaseWidgetPlugin.h"
  2. @implementation ZhiyingBaseWidgetPlugin
  3. + (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
  4. FlutterMethodChannel* channel = [FlutterMethodChannel
  5. methodChannelWithName:@"zhiying_base_widget"
  6. binaryMessenger:[registrar messenger]];
  7. ZhiyingBaseWidgetPlugin* instance = [[ZhiyingBaseWidgetPlugin alloc] init];
  8. [registrar addMethodCallDelegate:instance channel:channel];
  9. }
  10. - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
  11. if ([@"getPlatformVersion" isEqualToString:call.method]) {
  12. result([@"iOS " stringByAppendingString:[[UIDevice currentDevice] systemVersion]]);
  13. } else {
  14. result(FlutterMethodNotImplemented);
  15. }
  16. }
  17. @end