blob: 36cd9931e5bdb908cabc1774ad748b95f93b44db [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.
import 'package:pigeon/pigeon.dart';
dartOut: 'lib/src/messages.g.dart',
swiftOut: 'ios/Classes/messages.g.swift',
copyrightHeader: 'pigeons/copyright.txt',
/// A serialization of a platform image's data.
class PlatformImageData {
PlatformImageData(, this.scale);
/// The image data.
final Uint8List data;
/// The image's scale factor.
final double scale;
abstract class PlatformImagesApi {
/// Returns the URL for the given resource, or null if no such resource is
/// found.
String? resolveUrl(String resourceName, String? extension);
/// Returns the data for the image resource with the given name, or null if
/// no such resource is found.
PlatformImageData? loadImage(String name);