mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-04-05 15:36:24 +00:00
42 lines
1007 B
Objective-C
42 lines
1007 B
Objective-C
//
|
|
// StreamView.h
|
|
// Moonlight
|
|
//
|
|
// Created by Cameron Gutman on 10/19/14.
|
|
// Copyright (c) 2014 Moonlight Stream. All rights reserved.
|
|
//
|
|
|
|
#import "ControllerSupport.h"
|
|
#import "OnScreenControls.h"
|
|
#import "StreamConfiguration.h"
|
|
|
|
@protocol EdgeDetectionDelegate <NSObject>
|
|
|
|
- (void) edgeSwiped;
|
|
|
|
@end
|
|
|
|
@protocol UserInteractionDelegate <NSObject>
|
|
|
|
- (void) userInteractionBegan;
|
|
- (void) userInteractionEnded;
|
|
|
|
@end
|
|
|
|
#if TARGET_OS_TV
|
|
@interface StreamView : OSView <UITextFieldDelegate>
|
|
#else
|
|
@interface StreamView : OSView <UITextFieldDelegate, UIPointerInteractionDelegate>
|
|
#endif
|
|
|
|
@property (nonatomic, retain) IBOutlet UITextField* keyInputField;
|
|
|
|
- (void) setupStreamView:(ControllerSupport*)controllerSupport
|
|
swipeDelegate:(id<EdgeDetectionDelegate>)swipeDelegate
|
|
interactionDelegate:(id<UserInteractionDelegate>)interactionDelegate
|
|
config:(StreamConfiguration*)streamConfig;
|
|
- (void) showOnScreenControls;
|
|
- (OnScreenControlsLevel) getCurrentOscState;
|
|
|
|
@end
|