blob: f78dfccca8c795410ef27f6b69c291ad35ff8cdc [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_DART_PLUGIN_REGISTRANT_H_
#define FLUTTER_DART_PLUGIN_REGISTRANT_H_
#include "third_party/dart/runtime/include/dart_api.h"
namespace flutter {
/// The name of the library where the Dart Plugin Registrant will be looked for.
/// This is available for testing.
extern const char* dart_plugin_registrant_library_override;
/// Looks for the Dart Plugin Registrant in `library_handle` and invokes it if
/// it is found.
/// @return `true` when the registrant has been invoked.
bool InvokeDartPluginRegistrantIfAvailable(Dart_Handle library_handle);
/// @return `true` when the registrant has been invoked.
bool FindAndInvokeDartPluginRegistrant();
} // namespace flutter
#endif // FLUTTER_DART_PLUGIN_REGISTRANT_H_