forked from flutter/packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadsense_stub.dart
More file actions
28 lines (23 loc) · 899 Bytes
/
adsense_stub.dart
File metadata and controls
28 lines (23 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// 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:flutter/widgets.dart';
import '../experimental/google_adsense.dart';
/// A singleton instance of AdSense library public interface.
final AdSense adSense = AdSense();
/// AdSense package interface.
class AdSense {
/// Initialization API. Should be called ASAP, ideally in the main method of your app.
void initialize(
String adClient, {
@visibleForTesting bool skipJsLoader = false,
@visibleForTesting Object? jsLoaderTarget,
}) {
throw UnsupportedError('Only supported on web');
}
/// Returns a configurable [AdUnitWidget]<br>
/// `configuration`: see [AdUnitConfiguration]
Widget adUnit(AdUnitConfiguration configuration) {
throw UnsupportedError('Only supported on web');
}
}