2014-10-24 16:02:10 -04:00
|
|
|
//
|
|
|
|
|
// UIAppView.h
|
2015-05-12 21:48:30 -04:00
|
|
|
// Moonlight
|
2014-10-24 16:02:10 -04:00
|
|
|
//
|
|
|
|
|
// Created by Diego Waxemberg on 10/22/14.
|
2015-05-12 21:48:30 -04:00
|
|
|
// Copyright (c) 2014 Moonlight Stream. All rights reserved.
|
2014-10-24 16:02:10 -04:00
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
2015-12-01 20:31:24 -08:00
|
|
|
#import "TemporaryApp.h"
|
2014-10-24 16:02:10 -04:00
|
|
|
|
2014-10-26 02:15:53 -04:00
|
|
|
@protocol AppCallback <NSObject>
|
|
|
|
|
|
2020-11-04 14:11:27 +10:30
|
|
|
- (void) appClicked:(TemporaryApp*)app view:(UIView*)view;
|
|
|
|
|
- (void) appLongClicked:(TemporaryApp*)app view:(UIView*)view;
|
2014-10-26 02:15:53 -04:00
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
2020-11-14 15:57:16 -06:00
|
|
|
#if !TARGET_OS_TV
|
|
|
|
|
@interface UIAppView : UIButton <UIContextMenuInteractionDelegate>
|
|
|
|
|
#else
|
2019-09-22 19:47:29 -07:00
|
|
|
@interface UIAppView : UIButton
|
2020-11-14 15:57:16 -06:00
|
|
|
#endif
|
2014-10-24 16:02:10 -04:00
|
|
|
|
2015-12-01 20:31:24 -08:00
|
|
|
- (id) initWithApp:(TemporaryApp*)app cache:(NSCache*)cache andCallback:(id<AppCallback>)callback;
|
2014-10-26 02:15:53 -04:00
|
|
|
- (void) updateAppImage;
|
2014-10-24 16:02:10 -04:00
|
|
|
|
|
|
|
|
@end
|