ServiceFactory.java 649 字节
Newer Older
1 2 3 4
// Copyright 2015 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.

5
package io.flutter.view;
6 7 8

import android.content.Context;

9
import org.chromium.mojo.bindings.Interface.Binding;
10 11 12 13 14 15 16 17
import org.chromium.mojo.system.Core;
import org.chromium.mojo.system.MessagePipeHandle;

/**
 * An interface for creating services. Instances of this interface can be
 * registered with ServiceRegistry and thereby made available to non-Java
 * clients.
 **/
18
interface ServiceFactory {
19
    Binding connectToService(FlutterView view, Core core, MessagePipeHandle pipe);
20
}