Sha256: d128c18545df06a03a38cf79ef0a471d1e1f5623a3f324e82f4f9446288ec0b1
Contents?: true
Size: 812 Bytes
Versions: 8
Compression:
Stored size: 812 Bytes
Contents
#import "NativeToolbarSingleton.h" extern void rho_create_toolbar(NSArray* items, NSDictionary* properties); extern BOOL nativetoolbar_started(); extern void remove_native_toolbar(); @implementation NativeToolbarSingleton -(void) create:(NSArray*)toolbarElements toolBarProperties:(NSDictionary*)toolBarProperties methodResult:(id<IMethodResult>)methodResult{ if (![toolbarElements isKindOfClass:[NSArray class]]) { NSLog(@"Toolbar.create ERROR - elements parameter should be Array !"); return; } rho_create_toolbar(toolbarElements, toolBarProperties); } -(void) remove:(id<IMethodResult>)methodResult{ remove_native_toolbar(); } -(void) isCreated:(id<IMethodResult>)methodResult { [methodResult setResult:[NSNumber numberWithBool:nativetoolbar_started()]]; } @end
Version data entries
8 entries across 8 versions & 2 rubygems