Flutter Engine
The Flutter Engine
fl_method_channel_private.h
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
5#ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_METHOD_CHANNEL_PRIVATE_H_
6#define FLUTTER_SHELL_PLATFORM_LINUX_FL_METHOD_CHANNEL_PRIVATE_H_
7
8#include "flutter/shell/platform/linux/public/flutter_linux/fl_method_channel.h"
9
10#include "flutter/shell/platform/linux/public/flutter_linux/fl_binary_messenger.h"
11#include "flutter/shell/platform/linux/public/flutter_linux/fl_method_response.h"
12
13G_BEGIN_DECLS
14
15/**
16 * fl_method_channel_respond:
17 * @channel: an #FlMethodChannel.
18 * @response_handle: an #FlBinaryMessengerResponseHandle.
19 * @response: an #FlMethodResponse.
20 * @error: (allow-none): #GError location to store the error occurring, or %NULL
21 * to ignore.
22 *
23 * Responds to a method call.
24 *
25 * Returns: %TRUE on success.
26 */
28 FlMethodChannel* channel,
29 FlBinaryMessengerResponseHandle* response_handle,
30 FlMethodResponse* response,
31 GError** error);
32
33G_END_DECLS
34
35#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_METHOD_CHANNEL_PRIVATE_H_
G_BEGIN_DECLS gboolean fl_method_channel_respond(FlMethodChannel *channel, FlBinaryMessengerResponseHandle *response_handle, FlMethodResponse *response, GError **error)
const uint8_t uint32_t uint32_t GError ** error