5package io.flutter.embedding.engine.systemchannels;
7import androidx.annotation.NonNull;
9import io.flutter.embedding.engine.dart.DartExecutor;
10import io.flutter.plugin.common.BasicMessageChannel;
11import io.flutter.plugin.common.JSONMessageCodec;
12import java.util.HashMap;
17 private static final String TAG =
"SystemChannel";
27 Log.
v(
TAG,
"Sending memory pressure warning to Flutter.");
28 Map<String, Object>
message =
new HashMap<>(1);
29 message.put(
"type",
"memoryPressure");
static void v(@NonNull String tag, @NonNull String message)
void sendMemoryPressureWarning()
SystemChannel(@NonNull DartExecutor dartExecutor)
final BasicMessageChannel< Object > channel
void send(@Nullable T message)
static final JSONMessageCodec INSTANCE