mirror of
https://github.com/encounter/engine.git
synced 2026-03-30 11:09:55 -07:00
8a8fc02f53
This reverts commit afb206d373.
33 lines
903 B
Java
33 lines
903 B
Java
// Copyright 2017 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
package io.flutter.plugin.common;
|
|
|
|
/**
|
|
* Command object representing a method call on a {@link FlutterMessageChannel}.
|
|
*/
|
|
public final class MethodCall {
|
|
/**
|
|
* The name of the called method.
|
|
*/
|
|
public final String method;
|
|
|
|
/**
|
|
* Arguments for the call.
|
|
*/
|
|
public final Object arguments;
|
|
|
|
/**
|
|
* Creates a {@link MethodCall} with the specified method name and arguments.
|
|
*
|
|
* @param method the method name String, not null.
|
|
* @param arguments the arguments, a value supported by the channel's message codec.
|
|
*/
|
|
public MethodCall(String method, Object arguments) {
|
|
assert method != null;
|
|
this.method = method;
|
|
this.arguments = arguments;
|
|
}
|
|
}
|