Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Instance Methods | Properties | List of all members
FlutterUIPressProxy Class Reference

#include <FlutterUIPressProxy.h>

Inheritance diagram for FlutterUIPressProxy:
FakeUIPressProxy

Instance Methods

(instancetype) - initWithPress:withEvent:
 
(ios(13.4) - API_AVAILABLE
 
(ios(13.4) - API_AVAILABLE
 
(ios(13.4) - API_AVAILABLE
 
(ios(13.4) - API_AVAILABLE
 
() - ios [implementation]
 
() - ios [implementation]
 
() - ios [implementation]
 
() - ios [implementation]
 

Properties

UIPress * press [implementation]
 
UIEventevent [implementation]
 

Detailed Description

A event class that is a wrapper around a UIPress and a UIEvent to allow overidding for testing purposes, since UIKit doesn't allow creation of UIEvent or UIPress directly.

Definition at line 17 of file FlutterUIPressProxy.h.

Method Documentation

◆ API_AVAILABLE [1/4]

- (ios(13.4) API_AVAILABLE

◆ API_AVAILABLE [2/4]

- (ios(13.4) API_AVAILABLE

◆ API_AVAILABLE [3/4]

- (ios(13.4) API_AVAILABLE

◆ API_AVAILABLE [4/4]

- (ios(13.4) API_AVAILABLE

◆ initWithPress:withEvent:

- (instancetype) initWithPress: (UIPress*)  press
withEvent: (ios(13.4))  API_AVAILABLE 

Definition at line 15 of file FlutterUIPressProxy.mm.

20 :(UIPress*)press withEvent:(UIEvent*)event API_AVAILABLE(ios(13.4)) {
21 self = [super init];
22 if (self) {
23 _press = press;
24 _event = event;
25 }
26 return self;
27}
FlKeyEvent * event
ios(13.4 API_AVAILABLE()
ios(13.4 API_AVAILABLE()

◆ ios [1/4]

- ios
implementation

Reimplemented in FakeUIPressProxy, FakeUIPressProxy, FakeUIPressProxy, and FakeUIPressProxy.

Definition at line 15 of file FlutterUIPressProxy.mm.

29 {
30 return _press.phase;
31}

◆ ios [2/4]

- ios
implementation

Reimplemented in FakeUIPressProxy, FakeUIPressProxy, FakeUIPressProxy, and FakeUIPressProxy.

Definition at line 15 of file FlutterUIPressProxy.mm.

33 {
34 return _press.key;
35}

◆ ios [3/4]

- ios
implementation

Reimplemented in FakeUIPressProxy, FakeUIPressProxy, FakeUIPressProxy, and FakeUIPressProxy.

Definition at line 15 of file FlutterUIPressProxy.mm.

37 {
38 return _event.type;
39}

◆ ios [4/4]

- ios
implementation

Reimplemented in FakeUIPressProxy, FakeUIPressProxy, FakeUIPressProxy, and FakeUIPressProxy.

Definition at line 15 of file FlutterUIPressProxy.mm.

41 {
42 return _event.timestamp;
43}

Property Documentation

◆ event

- (UIEvent*) event
readnonatomicassignimplementation

Provided by category FlutterUIPressProxy().

Definition at line 15 of file FlutterUIPressProxy.mm.

◆ press

- (UIPress*) press
readnonatomicassignimplementation

Provided by category FlutterUIPressProxy().

Definition at line 14 of file FlutterUIPressProxy.mm.


The documentation for this class was generated from the following files: