Flutter Engine
The Flutter Engine
Instance Methods | Class Methods | Properties | List of all members
FlutterMethodCall Class Reference

#import <FlutterCodecs.h>

Inheritance diagram for FlutterMethodCall:

Instance Methods

(instancetype) - initWithMethodName:arguments: [implementation]
 
(BOOL- isEqual: [implementation]
 
(NSUInteger) - hash [implementation]
 

Class Methods

(instancetype) + methodCallWithMethodName:arguments:
 
(instancetype) + methodCallWithMethodName:arguments: [implementation]
 

Properties

NSString * method
 
id arguments
 

Detailed Description

Command object representing a method call on a FlutterMethodChannel.

Definition at line 220 of file FlutterCodecs.h.

Method Documentation

◆ hash

- (NSUInteger) hash
implementation

Definition at line 73 of file FlutterChannels.mm.

231 {
232 return [self.method hash] ^ [self.arguments hash];
233}

◆ initWithMethodName:arguments:

- (instancetype) initWithMethodName: (NSString*)  method
arguments: (id arguments 
implementation

Definition at line 73 of file FlutterChannels.mm.

210 :(NSString*)method arguments:(id)arguments {
211 NSAssert(method, @"Method name cannot be nil");
212 self = [super init];
213 NSAssert(self, @"Super init cannot be nil");
214 _method = [method copy];
215 _arguments = arguments;
216 return self;
217}

◆ isEqual:

- (BOOL) isEqual: (id object
implementation

Definition at line 73 of file FlutterChannels.mm.

219 :(id)object {
220 if (self == object) {
221 return YES;
222 }
223 if (![object isKindOfClass:[FlutterMethodCall class]]) {
224 return NO;
225 }
226 FlutterMethodCall* other = (FlutterMethodCall*)object;
227 return [self.method isEqual:[other method]] &&
228 ((!self.arguments && !other.arguments) || [self.arguments isEqual:other.arguments]);
229}
const uintptr_t id

◆ methodCallWithMethodName:arguments: [1/2]

+ (instancetype) methodCallWithMethodName: (NSString*)  method
arguments: (id arguments 
implementation

Definition at line 73 of file FlutterChannels.mm.

206 :(NSString*)method arguments:(id)arguments {
207 return [[FlutterMethodCall alloc] initWithMethodName:method arguments:arguments];
208}

◆ methodCallWithMethodName:arguments: [2/2]

+ (instancetype) methodCallWithMethodName: (NSString *)  method
arguments: (id _Nullable)  arguments 

Creates a method call for invoking the specified named method with the specified arguments.

Parameters
methodthe name of the method to call.
argumentsthe arguments value.

Property Documentation

◆ arguments

- (id) arguments
readnonatomicassign

The arguments.

Definition at line 238 of file FlutterCodecs.h.

◆ method

- (NSString*) method
readnonatomicassign

The method name.

Definition at line 233 of file FlutterCodecs.h.


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