Files
PojavLauncher_iOS/Natives/customcontrols/ControlButton.h
T
Duy Tran Khanh fc19e16e4f Custom controls implementation changes
- Fallback to default control if custom control data size is over 100kb.
- Implemented dynamic position.
- Renamed folder from `customcontrols` to `controlmap` to match
Android.
2021-04-22 17:46:18 +07:00

20 lines
460 B
Objective-C

#import <UIKit/UIKit.h>
/**
* Custom controls have same format as Android.
*
* Android - iOS:
* ControlButton - same
* ControlData - NSArray with JSON components
*/
@interface ControlButton : UIButton {
}
@property (nonatomic, retain) NSMutableDictionary* properties;
+ (id)initWithProperties:(NSMutableDictionary *)propArray;
+ (id)initWithName:(NSString *)name keycode:(int)keycode rect:(CGRect)rect transparency:(float)transparency;
@end