Flutter Engine
The Flutter Engine
PlatformMessageHandler.java
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5package io.flutter.embedding.engine.dart;
6
7import androidx.annotation.NonNull;
8import androidx.annotation.Nullable;
9import java.nio.ByteBuffer;
10
11/** Handler that receives messages from Dart code. */
12public interface PlatformMessageHandler {
13 /** Called from any thread. */
15 @NonNull final String channel,
16 @Nullable ByteBuffer message,
17 final int replyId,
18 long messageData);
19
20 void handlePlatformMessageResponse(int replyId, @Nullable ByteBuffer reply);
21}
void handleMessageFromDart( @NonNull final String channel, @Nullable ByteBuffer message, final int replyId, long messageData)
void handlePlatformMessageResponse(int replyId, @Nullable ByteBuffer reply)
Win32Message message