• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
5 package io.flutter.embedding.engine.dart;
6 
7 import android.support.annotation.NonNull;
8 import android.support.annotation.Nullable;
9 
10 /**
11  * WARNING: THIS CLASS IS EXPERIMENTAL. DO NOT SHIP A DEPENDENCY ON THIS CODE.
12  * IF YOU USE IT, WE WILL BREAK YOU.
13  */
14 public interface PlatformMessageHandler {
handleMessageFromDart(@onNull final String channel, @Nullable byte[] message, final int replyId)15   void handleMessageFromDart(@NonNull final String channel, @Nullable byte[] message, final int replyId);
16 
handlePlatformMessageResponse(int replyId, @Nullable byte[] reply)17   void handlePlatformMessageResponse(int replyId, @Nullable byte[] reply);
18 }
19