mop-flutter-sdk/ios/Classes/FinAppletExt/ExtensionApi/Map/FATExt_removeNativeMap.m

33 lines
896 B
Dart
Raw Normal View History

2023-08-02 19:36:40 +08:00
//
// FATExt_removeNativeMap.m
// FinAppletExt
//
// Created by 滔 on 2022/9/18.
// Copyright © 2022 finogeeks. All rights reserved.
//
#import "FATExt_removeNativeMap.h"
@implementation FATExt_removeNativeMap
- (void)setupApiWithSuccess:(void (^)(NSDictionary<NSString *, id> *successResult))success
failure:(void (^)(NSDictionary *failResult))failure
cancel:(void (^)(NSDictionary *cancelResult))cancel {
if (self.context && [self.context respondsToSelector:@selector(removeChildView:)]) {
BOOL result = [self.context removeChildView:self.param[@"mapId"]];
if (result) {
if (success) {
success(@{});
}
} else {
if (failure) {
failure(@{});
}
}
} else {
if (failure) {
failure(@{});
}
}
}
@end