text
stringlengths
6
13.6M
id
stringlengths
13
176
metadata
dict
__index_level_0__
int64
0
1.69k
// 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 'dart:io'; import 'package:flutter_test/flutter_test.dart'; import 'package:mockito/annotations.dart'; import 'package:mockito/mockito.dart'; import 'package:path/path.dart' as p; import 'package:path_provider_foundation/messages.g.dart'; import 'package:path_provider_foundation/path_provider_foundation.dart'; import 'messages_test.g.dart'; import 'path_provider_foundation_test.mocks.dart'; @GenerateMocks(<Type>[TestPathProviderApi]) void main() { TestWidgetsFlutterBinding.ensureInitialized(); group('PathProviderFoundation', () { late PathProviderFoundation pathProvider; late MockTestPathProviderApi mockApi; // These unit tests use the actual filesystem, since an injectable // filesystem would add a runtime dependency to the package, so everything // is contained to a temporary directory. late Directory testRoot; setUp(() async { testRoot = Directory.systemTemp.createTempSync(); pathProvider = PathProviderFoundation(); mockApi = MockTestPathProviderApi(); TestPathProviderApi.setup(mockApi); }); tearDown(() { testRoot.deleteSync(recursive: true); }); test('getTemporaryPath', () async { final String temporaryPath = p.join(testRoot.path, 'temporary', 'path'); when(mockApi.getDirectoryPath(DirectoryType.temp)) .thenReturn(temporaryPath); final String? path = await pathProvider.getTemporaryPath(); verify(mockApi.getDirectoryPath(DirectoryType.temp)); expect(path, temporaryPath); }); test('getApplicationSupportPath', () async { final String applicationSupportPath = p.join(testRoot.path, 'application', 'support', 'path'); when(mockApi.getDirectoryPath(DirectoryType.applicationSupport)) .thenReturn(applicationSupportPath); final String? path = await pathProvider.getApplicationSupportPath(); verify(mockApi.getDirectoryPath(DirectoryType.applicationSupport)); expect(path, applicationSupportPath); }); test('getApplicationSupportPath creates the directory if necessary', () async { final String applicationSupportPath = p.join(testRoot.path, 'application', 'support', 'path'); when(mockApi.getDirectoryPath(DirectoryType.applicationSupport)) .thenReturn(applicationSupportPath); final String? path = await pathProvider.getApplicationSupportPath(); expect(Directory(path!).existsSync(), isTrue); }); test('getLibraryPath', () async { final String libraryPath = p.join(testRoot.path, 'library', 'path'); when(mockApi.getDirectoryPath(DirectoryType.library)) .thenReturn(libraryPath); final String? path = await pathProvider.getLibraryPath(); verify(mockApi.getDirectoryPath(DirectoryType.library)); expect(path, libraryPath); }); test('getApplicationDocumentsPath', () async { final String applicationDocumentsPath = p.join(testRoot.path, 'application', 'documents', 'path'); when(mockApi.getDirectoryPath(DirectoryType.applicationDocuments)) .thenReturn(applicationDocumentsPath); final String? path = await pathProvider.getApplicationDocumentsPath(); verify(mockApi.getDirectoryPath(DirectoryType.applicationDocuments)); expect(path, applicationDocumentsPath); }); test('getDownloadsPath', () async { final String downloadsPath = p.join(testRoot.path, 'downloads', 'path'); when(mockApi.getDirectoryPath(DirectoryType.downloads)) .thenReturn(downloadsPath); final String? result = await pathProvider.getDownloadsPath(); verify(mockApi.getDirectoryPath(DirectoryType.downloads)); expect(result, downloadsPath); }); test('getExternalCachePaths throws', () async { expect(pathProvider.getExternalCachePaths(), throwsA(isUnsupportedError)); }); test('getExternalStoragePath throws', () async { expect( pathProvider.getExternalStoragePath(), throwsA(isUnsupportedError)); }); test('getExternalStoragePaths throws', () async { expect( pathProvider.getExternalStoragePaths(), throwsA(isUnsupportedError)); }); }); }
plugins/packages/path_provider/path_provider_foundation/test/path_provider_foundation_test.dart/0
{ "file_path": "plugins/packages/path_provider/path_provider_foundation/test/path_provider_foundation_test.dart", "repo_id": "plugins", "token_count": 1482 }
1,112
org.gradle.jvmargs=-Xmx4G android.enableR8=true android.useAndroidX=true android.enableJetifier=true
plugins/packages/quick_actions/quick_actions_android/example/android/gradle.properties/0
{ "file_path": "plugins/packages/quick_actions/quick_actions_android/example/android/gradle.properties", "repo_id": "plugins", "token_count": 38 }
1,113
name: quick_actions_ios description: An implementation for the iOS platform of the Flutter `quick_actions` plugin. repository: https://github.com/flutter/plugins/tree/main/packages/quick_actions/quick_actions_ios issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+in_app_purchase%22 version: 1.0.2 environment: sdk: ">=2.15.0 <3.0.0" flutter: ">=3.0.0" flutter: plugin: implements: quick_actions platforms: ios: pluginClass: QuickActionsPlugin dartPluginClass: QuickActionsIos dependencies: flutter: sdk: flutter quick_actions_platform_interface: ^1.0.0 dev_dependencies: flutter_test: sdk: flutter integration_test: sdk: flutter plugin_platform_interface: ^2.1.2
plugins/packages/quick_actions/quick_actions_ios/pubspec.yaml/0
{ "file_path": "plugins/packages/quick_actions/quick_actions_ios/pubspec.yaml", "repo_id": "plugins", "token_count": 310 }
1,114
// 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. // Autogenerated from Pigeon (v5.0.0), do not edit directly. // See also: https://pub.dev/packages/pigeon // ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import import 'dart:async'; import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List; import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; class UserDefaultsApi { /// Constructor for [UserDefaultsApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. UserDefaultsApi({BinaryMessenger? binaryMessenger}) : _binaryMessenger = binaryMessenger; final BinaryMessenger? _binaryMessenger; static const MessageCodec<Object?> codec = StandardMessageCodec(); Future<void> remove(String arg_key) async { final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>( 'dev.flutter.pigeon.UserDefaultsApi.remove', codec, binaryMessenger: _binaryMessenger); final List<Object?>? replyList = await channel.send(<Object?>[arg_key]) as List<Object?>?; if (replyList == null) { throw PlatformException( code: 'channel-error', message: 'Unable to establish connection on channel.', ); } else if (replyList.length > 1) { throw PlatformException( code: replyList[0]! as String, message: replyList[1] as String?, details: replyList[2], ); } else { return; } } Future<void> setBool(String arg_key, bool arg_value) async { final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>( 'dev.flutter.pigeon.UserDefaultsApi.setBool', codec, binaryMessenger: _binaryMessenger); final List<Object?>? replyList = await channel.send(<Object?>[arg_key, arg_value]) as List<Object?>?; if (replyList == null) { throw PlatformException( code: 'channel-error', message: 'Unable to establish connection on channel.', ); } else if (replyList.length > 1) { throw PlatformException( code: replyList[0]! as String, message: replyList[1] as String?, details: replyList[2], ); } else { return; } } Future<void> setDouble(String arg_key, double arg_value) async { final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>( 'dev.flutter.pigeon.UserDefaultsApi.setDouble', codec, binaryMessenger: _binaryMessenger); final List<Object?>? replyList = await channel.send(<Object?>[arg_key, arg_value]) as List<Object?>?; if (replyList == null) { throw PlatformException( code: 'channel-error', message: 'Unable to establish connection on channel.', ); } else if (replyList.length > 1) { throw PlatformException( code: replyList[0]! as String, message: replyList[1] as String?, details: replyList[2], ); } else { return; } } Future<void> setValue(String arg_key, Object arg_value) async { final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>( 'dev.flutter.pigeon.UserDefaultsApi.setValue', codec, binaryMessenger: _binaryMessenger); final List<Object?>? replyList = await channel.send(<Object?>[arg_key, arg_value]) as List<Object?>?; if (replyList == null) { throw PlatformException( code: 'channel-error', message: 'Unable to establish connection on channel.', ); } else if (replyList.length > 1) { throw PlatformException( code: replyList[0]! as String, message: replyList[1] as String?, details: replyList[2], ); } else { return; } } Future<Map<String?, Object?>> getAll() async { final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>( 'dev.flutter.pigeon.UserDefaultsApi.getAll', codec, binaryMessenger: _binaryMessenger); final List<Object?>? replyList = await channel.send(null) as List<Object?>?; if (replyList == null) { throw PlatformException( code: 'channel-error', message: 'Unable to establish connection on channel.', ); } else if (replyList.length > 1) { throw PlatformException( code: replyList[0]! as String, message: replyList[1] as String?, details: replyList[2], ); } else if (replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { return (replyList[0] as Map<Object?, Object?>?)!.cast<String?, Object?>(); } } Future<void> clear() async { final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>( 'dev.flutter.pigeon.UserDefaultsApi.clear', codec, binaryMessenger: _binaryMessenger); final List<Object?>? replyList = await channel.send(null) as List<Object?>?; if (replyList == null) { throw PlatformException( code: 'channel-error', message: 'Unable to establish connection on channel.', ); } else if (replyList.length > 1) { throw PlatformException( code: replyList[0]! as String, message: replyList[1] as String?, details: replyList[2], ); } else { return; } } }
plugins/packages/shared_preferences/shared_preferences_foundation/lib/messages.g.dart/0
{ "file_path": "plugins/packages/shared_preferences/shared_preferences_foundation/lib/messages.g.dart", "repo_id": "plugins", "token_count": 2223 }
1,115
name: shared_preferences_linux description: Linux implementation of the shared_preferences plugin repository: https://github.com/flutter/plugins/tree/main/packages/shared_preferences/shared_preferences_linux issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+shared_preferences%22 version: 2.1.3 environment: sdk: ">=2.12.0 <3.0.0" flutter: ">=3.0.0" flutter: plugin: implements: shared_preferences platforms: linux: dartPluginClass: SharedPreferencesLinux dependencies: file: ^6.0.0 flutter: sdk: flutter path: ^1.8.0 path_provider_linux: ^2.0.0 path_provider_platform_interface: ^2.0.0 shared_preferences_platform_interface: ^2.0.0 dev_dependencies: flutter_test: sdk: flutter
plugins/packages/shared_preferences/shared_preferences_linux/pubspec.yaml/0
{ "file_path": "plugins/packages/shared_preferences/shared_preferences_linux/pubspec.yaml", "repo_id": "plugins", "token_count": 318 }
1,116
// 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 'dart:convert' show json; import 'dart:html' as html; import 'package:flutter_test/flutter_test.dart'; import 'package:integration_test/integration_test.dart'; import 'package:shared_preferences_platform_interface/method_channel_shared_preferences.dart'; import 'package:shared_preferences_platform_interface/shared_preferences_platform_interface.dart'; import 'package:shared_preferences_web/shared_preferences_web.dart'; const Map<String, dynamic> kTestValues = <String, dynamic>{ 'flutter.String': 'hello world', 'flutter.Bool': true, 'flutter.Int': 42, 'flutter.Double': 3.14159, 'flutter.StringList': <String>['foo', 'bar'], }; void main() { IntegrationTestWidgetsFlutterBinding.ensureInitialized(); group('SharedPreferencesPlugin', () { setUp(() { html.window.localStorage.clear(); }); testWidgets('registers itself', (WidgetTester tester) async { SharedPreferencesStorePlatform.instance = MethodChannelSharedPreferencesStore(); expect(SharedPreferencesStorePlatform.instance, isNot(isA<SharedPreferencesPlugin>())); SharedPreferencesPlugin.registerWith(null); expect(SharedPreferencesStorePlatform.instance, isA<SharedPreferencesPlugin>()); }); testWidgets('getAll', (WidgetTester tester) async { final SharedPreferencesPlugin store = SharedPreferencesPlugin(); expect(await store.getAll(), isEmpty); html.window.localStorage['flutter.testKey'] = '"test value"'; html.window.localStorage['unprefixed_key'] = 'not a flutter value'; final Map<String, Object> allData = await store.getAll(); expect(allData, hasLength(1)); expect(allData['flutter.testKey'], 'test value'); }); testWidgets('remove', (WidgetTester tester) async { final SharedPreferencesPlugin store = SharedPreferencesPlugin(); html.window.localStorage['flutter.testKey'] = '"test value"'; expect(html.window.localStorage['flutter.testKey'], isNotNull); expect(await store.remove('flutter.testKey'), isTrue); expect(html.window.localStorage['flutter.testKey'], isNull); expect( () => store.remove('unprefixed'), throwsA(isA<FormatException>()), ); }); testWidgets('setValue', (WidgetTester tester) async { final SharedPreferencesPlugin store = SharedPreferencesPlugin(); for (final String key in kTestValues.keys) { final dynamic value = kTestValues[key]; expect(await store.setValue(key.split('.').last, key, value), true); } expect(html.window.localStorage.keys, hasLength(kTestValues.length)); for (final String key in html.window.localStorage.keys) { expect(html.window.localStorage[key], json.encode(kTestValues[key])); } // Check that generics are preserved. expect((await store.getAll())['flutter.StringList'], isA<List<String>>()); // Invalid key format. expect( () => store.setValue('String', 'unprefixed', 'hello'), throwsA(isA<FormatException>()), ); }); testWidgets('clear', (WidgetTester tester) async { final SharedPreferencesPlugin store = SharedPreferencesPlugin(); html.window.localStorage['flutter.testKey1'] = '"test value"'; html.window.localStorage['flutter.testKey2'] = '42'; html.window.localStorage['unprefixed_key'] = 'not a flutter value'; expect(await store.clear(), isTrue); expect(html.window.localStorage.keys.single, 'unprefixed_key'); }); }); }
plugins/packages/shared_preferences/shared_preferences_web/example/integration_test/shared_preferences_web_test.dart/0
{ "file_path": "plugins/packages/shared_preferences/shared_preferences_web/example/integration_test/shared_preferences_web_test.dart", "repo_id": "plugins", "token_count": 1343 }
1,117
group 'io.flutter.plugins.urllauncher' version '1.0-SNAPSHOT' buildscript { repositories { google() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:4.2.0' } } rootProject.allprojects { repositories { google() mavenCentral() } } apply plugin: 'com.android.library' android { compileSdkVersion 33 defaultConfig { minSdkVersion 16 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } lintOptions { disable 'AndroidGradlePluginVersion', 'InvalidPackage', 'GradleDependency' } testOptions { unitTests.includeAndroidResources = true unitTests.returnDefaultValues = true unitTests.all { testLogging { events "passed", "skipped", "failed", "standardOut", "standardError" outputs.upToDateWhen {false} showStandardStreams = true } } } } dependencies { compileOnly 'androidx.annotation:annotation:1.2.0' testImplementation 'junit:junit:4.13.2' testImplementation 'org.mockito:mockito-core:5.1.1' testImplementation 'androidx.test:core:1.0.0' testImplementation 'org.robolectric:robolectric:4.3' }
plugins/packages/url_launcher/url_launcher_android/android/build.gradle/0
{ "file_path": "plugins/packages/url_launcher/url_launcher_android/android/build.gradle", "repo_id": "plugins", "token_count": 566 }
1,118
## 6.1.0 * Updates minimum Flutter version to 3.3 and iOS 11. ## 6.0.18 * Updates code for stricter lint checks. * Updates minimum Flutter version to 2.10. ## 6.0.17 * Suppresses warnings for pre-iOS-13 codepaths. ## 6.0.16 * Fixes library_private_types_in_public_api, sort_child_properties_last and use_key_in_widget_constructors lint warnings. ## 6.0.15 * Switches to an in-package method channel implementation. ## 6.0.14 * Updates code for new analysis options. * Removes dependency on `meta`. ## 6.0.13 * Splits from `url_launcher` as a federated implementation.
plugins/packages/url_launcher/url_launcher_ios/CHANGELOG.md/0
{ "file_path": "plugins/packages/url_launcher/url_launcher_ios/CHANGELOG.md", "repo_id": "plugins", "token_count": 201 }
1,119
// 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/services.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:url_launcher_ios/url_launcher_ios.dart'; import 'package:url_launcher_platform_interface/url_launcher_platform_interface.dart'; void main() { TestWidgetsFlutterBinding.ensureInitialized(); group('$UrlLauncherIOS', () { const MethodChannel channel = MethodChannel('plugins.flutter.io/url_launcher_ios'); final List<MethodCall> log = <MethodCall>[]; _ambiguate(TestDefaultBinaryMessengerBinding.instance)! .defaultBinaryMessenger .setMockMethodCallHandler(channel, (MethodCall methodCall) async { log.add(methodCall); // Return null explicitly instead of relying on the implicit null // returned by the method channel if no return statement is specified. return null; }); tearDown(() { log.clear(); }); test('registers instance', () { UrlLauncherIOS.registerWith(); expect(UrlLauncherPlatform.instance, isA<UrlLauncherIOS>()); }); test('canLaunch', () async { final UrlLauncherIOS launcher = UrlLauncherIOS(); await launcher.canLaunch('http://example.com/'); expect( log, <Matcher>[ isMethodCall('canLaunch', arguments: <String, Object>{ 'url': 'http://example.com/', }) ], ); }); test('canLaunch should return false if platform returns null', () async { final UrlLauncherIOS launcher = UrlLauncherIOS(); final bool canLaunch = await launcher.canLaunch('http://example.com/'); expect(canLaunch, false); }); test('launch', () async { final UrlLauncherIOS launcher = UrlLauncherIOS(); await launcher.launch( 'http://example.com/', useSafariVC: true, useWebView: false, enableJavaScript: false, enableDomStorage: false, universalLinksOnly: false, headers: const <String, String>{}, ); expect( log, <Matcher>[ isMethodCall('launch', arguments: <String, Object>{ 'url': 'http://example.com/', 'useSafariVC': true, 'enableJavaScript': false, 'enableDomStorage': false, 'universalLinksOnly': false, 'headers': <String, String>{}, }) ], ); }); test('launch with headers', () async { final UrlLauncherIOS launcher = UrlLauncherIOS(); await launcher.launch( 'http://example.com/', useSafariVC: true, useWebView: false, enableJavaScript: false, enableDomStorage: false, universalLinksOnly: false, headers: const <String, String>{'key': 'value'}, ); expect( log, <Matcher>[ isMethodCall('launch', arguments: <String, Object>{ 'url': 'http://example.com/', 'useSafariVC': true, 'enableJavaScript': false, 'enableDomStorage': false, 'universalLinksOnly': false, 'headers': <String, String>{'key': 'value'}, }) ], ); }); test('launch force SafariVC', () async { final UrlLauncherIOS launcher = UrlLauncherIOS(); await launcher.launch( 'http://example.com/', useSafariVC: true, useWebView: false, enableJavaScript: false, enableDomStorage: false, universalLinksOnly: false, headers: const <String, String>{}, ); expect( log, <Matcher>[ isMethodCall('launch', arguments: <String, Object>{ 'url': 'http://example.com/', 'useSafariVC': true, 'enableJavaScript': false, 'enableDomStorage': false, 'universalLinksOnly': false, 'headers': <String, String>{}, }) ], ); }); test('launch universal links only', () async { final UrlLauncherIOS launcher = UrlLauncherIOS(); await launcher.launch( 'http://example.com/', useSafariVC: false, useWebView: false, enableJavaScript: false, enableDomStorage: false, universalLinksOnly: true, headers: const <String, String>{}, ); expect( log, <Matcher>[ isMethodCall('launch', arguments: <String, Object>{ 'url': 'http://example.com/', 'useSafariVC': false, 'enableJavaScript': false, 'enableDomStorage': false, 'universalLinksOnly': true, 'headers': <String, String>{}, }) ], ); }); test('launch force SafariVC to false', () async { final UrlLauncherIOS launcher = UrlLauncherIOS(); await launcher.launch( 'http://example.com/', useSafariVC: false, useWebView: false, enableJavaScript: false, enableDomStorage: false, universalLinksOnly: false, headers: const <String, String>{}, ); expect( log, <Matcher>[ isMethodCall('launch', arguments: <String, Object>{ 'url': 'http://example.com/', 'useSafariVC': false, 'enableJavaScript': false, 'enableDomStorage': false, 'universalLinksOnly': false, 'headers': <String, String>{}, }) ], ); }); test('launch should return false if platform returns null', () async { final UrlLauncherIOS launcher = UrlLauncherIOS(); final bool launched = await launcher.launch( 'http://example.com/', useSafariVC: true, useWebView: false, enableJavaScript: false, enableDomStorage: false, universalLinksOnly: false, headers: const <String, String>{}, ); expect(launched, false); }); test('closeWebView default behavior', () async { final UrlLauncherIOS launcher = UrlLauncherIOS(); await launcher.closeWebView(); expect( log, <Matcher>[isMethodCall('closeWebView', arguments: null)], ); }); }); } /// This allows a value of type T or T? to be treated as a value of type T?. /// /// We use this so that APIs that have become non-nullable can still be used /// with `!` and `?` on the stable branch. T? _ambiguate<T>(T? value) => value;
plugins/packages/url_launcher/url_launcher_ios/test/url_launcher_ios_test.dart/0
{ "file_path": "plugins/packages/url_launcher/url_launcher_ios/test/url_launcher_ios_test.dart", "repo_id": "plugins", "token_count": 2885 }
1,120
name: url_launcher_windows description: Windows implementation of the url_launcher plugin. repository: https://github.com/flutter/plugins/tree/main/packages/url_launcher/url_launcher_windows issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+url_launcher%22 version: 3.0.3 environment: sdk: ">=2.12.0 <3.0.0" flutter: ">=3.0.0" flutter: plugin: implements: url_launcher platforms: windows: pluginClass: UrlLauncherWindows dartPluginClass: UrlLauncherWindows dependencies: flutter: sdk: flutter url_launcher_platform_interface: ^2.0.3 dev_dependencies: flutter_test: sdk: flutter pigeon: ^5.0.1 test: ^1.16.3
plugins/packages/url_launcher/url_launcher_windows/pubspec.yaml/0
{ "file_path": "plugins/packages/url_launcher/url_launcher_windows/pubspec.yaml", "repo_id": "plugins", "token_count": 297 }
1,121
// 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 Flutter; @import XCTest; @import webview_flutter; // OCMock library doesn't generate a valid modulemap. #import <OCMock/OCMock.h> static bool feq(CGFloat a, CGFloat b) { return fabs(b - a) < FLT_EPSILON; } @interface FLTWebViewTests : XCTestCase @property(strong, nonatomic) NSObject<FlutterBinaryMessenger> *mockBinaryMessenger; @end @implementation FLTWebViewTests - (void)setUp { [super setUp]; self.mockBinaryMessenger = OCMProtocolMock(@protocol(FlutterBinaryMessenger)); } - (void)testCanInitFLTWebViewController { FLTWebViewController *controller = [[FLTWebViewController alloc] initWithFrame:CGRectMake(0, 0, 300, 400) viewIdentifier:1 arguments:nil binaryMessenger:self.mockBinaryMessenger]; XCTAssertNotNil(controller); } - (void)testCanInitFLTWebViewFactory { FLTWebViewFactory *factory = [[FLTWebViewFactory alloc] initWithMessenger:self.mockBinaryMessenger]; XCTAssertNotNil(factory); } - (void)webViewContentInsetBehaviorShouldBeNeverOnIOS11 { if (@available(iOS 11, *)) { FLTWebViewController *controller = [[FLTWebViewController alloc] initWithFrame:CGRectMake(0, 0, 300, 400) viewIdentifier:1 arguments:nil binaryMessenger:self.mockBinaryMessenger]; UIView *view = controller.view; XCTAssertTrue([view isKindOfClass:WKWebView.class]); WKWebView *webView = (WKWebView *)view; XCTAssertEqual(webView.scrollView.contentInsetAdjustmentBehavior, UIScrollViewContentInsetAdjustmentNever); } } - (void)testWebViewScrollIndicatorAticautomaticallyAdjustsScrollIndicatorInsetsShouldbeNoOnIOS13 { if (@available(iOS 13, *)) { FLTWebViewController *controller = [[FLTWebViewController alloc] initWithFrame:CGRectMake(0, 0, 300, 400) viewIdentifier:1 arguments:nil binaryMessenger:self.mockBinaryMessenger]; UIView *view = controller.view; XCTAssertTrue([view isKindOfClass:WKWebView.class]); WKWebView *webView = (WKWebView *)view; XCTAssertFalse(webView.scrollView.automaticallyAdjustsScrollIndicatorInsets); } } - (void)testContentInsetsSumAlwaysZeroAfterSetFrame { FLTWKWebView *webView = [[FLTWKWebView alloc] initWithFrame:CGRectMake(0, 0, 300, 400)]; webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, 300, 0); XCTAssertFalse(UIEdgeInsetsEqualToEdgeInsets(webView.scrollView.contentInset, UIEdgeInsetsZero)); webView.frame = CGRectMake(0, 0, 300, 200); XCTAssertTrue(UIEdgeInsetsEqualToEdgeInsets(webView.scrollView.contentInset, UIEdgeInsetsZero)); XCTAssertTrue(CGRectEqualToRect(webView.frame, CGRectMake(0, 0, 300, 200))); if (@available(iOS 11, *)) { // After iOS 11, we need to make sure the contentInset compensates the adjustedContentInset. UIScrollView *partialMockScrollView = OCMPartialMock(webView.scrollView); UIEdgeInsets insetToAdjust = UIEdgeInsetsMake(0, 0, 300, 0); OCMStub(partialMockScrollView.adjustedContentInset).andReturn(insetToAdjust); XCTAssertTrue(UIEdgeInsetsEqualToEdgeInsets(webView.scrollView.contentInset, UIEdgeInsetsZero)); webView.frame = CGRectMake(0, 0, 300, 100); XCTAssertTrue(feq(webView.scrollView.contentInset.bottom, -insetToAdjust.bottom)); XCTAssertTrue(CGRectEqualToRect(webView.frame, CGRectMake(0, 0, 300, 100))); } } @end
plugins/packages/webview_flutter/webview_flutter/example/ios/RunnerTests/FLTWebViewTests.m/0
{ "file_path": "plugins/packages/webview_flutter/webview_flutter/example/ios/RunnerTests/FLTWebViewTests.m", "repo_id": "plugins", "token_count": 1616 }
1,122
// 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. library webview_flutter; export 'package:webview_flutter_platform_interface/webview_flutter_platform_interface.dart' show JavaScriptMessage, JavaScriptMode, LoadRequestMethod, NavigationDecision, NavigationRequest, NavigationRequestCallback, PageEventCallback, PlatformNavigationDelegateCreationParams, PlatformWebViewControllerCreationParams, PlatformWebViewCookieManagerCreationParams, PlatformWebViewWidgetCreationParams, ProgressCallback, WebResourceError, WebResourceErrorCallback, WebResourceErrorType, WebViewCookie, WebViewPlatform; export 'src/navigation_delegate.dart'; export 'src/webview_controller.dart'; export 'src/webview_cookie_manager.dart'; export 'src/webview_widget.dart';
plugins/packages/webview_flutter/webview_flutter/lib/webview_flutter.dart/0
{ "file_path": "plugins/packages/webview_flutter/webview_flutter/lib/webview_flutter.dart", "repo_id": "plugins", "token_count": 366 }
1,123
# webview\_flutter\_android The Android implementation of [`webview_flutter`][1]. ## Usage This package is [endorsed][2], which means you can simply use `webview_flutter` normally. This package will be automatically included in your app when you do. ## Display Mode This plugin supports two different platform view display modes. The default display mode is subject to change in the future, and will not be considered a breaking change, so if you want to ensure a specific mode, you can set it explicitly. ### Texture Layer Hybrid Composition This is the current default mode for versions >=23. This is a new display mode used by most plugins starting with Flutter 3.0. This is more performant than Hybrid Composition, but has some limitations from using an Android [SurfaceTexture](https://developer.android.com/reference/android/graphics/SurfaceTexture). See: * https://github.com/flutter/flutter/issues/104889 * https://github.com/flutter/flutter/issues/116954 ### Hybrid Composition This is the current default mode for versions <23. It ensures that the WebView will display and work as expected, at the cost of some performance. See: * https://flutter.dev/docs/development/platform-integration/platform-views#performance This can be configured for versions >=23 with `AndroidWebViewWidgetCreationParams.displayWithHybridComposition`. See https://pub.dev/packages/webview_flutter#platform-specific-features for more details on setting platform-specific features in the main plugin. ### External Native API The plugin also provides a native API accessible by the native code of Android applications or packages. This API follows the convention of breaking changes of the Dart API, which means that any changes to the class that are not backwards compatible will only be made with a major version change of the plugin. Native code other than this external API does not follow breaking change conventions, so app or plugin clients should not use any other native APIs. The API can be accessed by importing the native class `WebViewFlutterAndroidExternalApi`: Java: ```java import io.flutter.plugins.webviewflutter.WebViewFlutterAndroidExternalApi; ``` ## Contributing This package uses [pigeon][3] to generate the communication layer between Flutter and the host platform (Android). The communication interface is defined in the `pigeons/android_webview.dart` file. After editing the communication interface regenerate the communication layer by running `flutter pub run pigeon --input pigeons/android_webview.dart`. Besides [pigeon][3] this package also uses [mockito][4] to generate mock objects for testing purposes. To generate the mock objects run the following command: ```bash flutter pub run build_runner build --delete-conflicting-outputs ``` If you would like to contribute to the plugin, check out our [contribution guide][5]. [1]: https://pub.dev/packages/webview_flutter [2]: https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin [3]: https://pub.dev/packages/pigeon [4]: https://pub.dev/packages/mockito [5]: https://github.com/flutter/plugins/blob/main/CONTRIBUTING.md
plugins/packages/webview_flutter/webview_flutter_android/README.md/0
{ "file_path": "plugins/packages/webview_flutter/webview_flutter_android/README.md", "repo_id": "plugins", "token_count": 824 }
1,124
// 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 "FWFNavigationDelegateHostApi.h" #import "FWFDataConverters.h" #import "FWFWebViewConfigurationHostApi.h" @interface FWFNavigationDelegateFlutterApiImpl () // InstanceManager must be weak to prevent a circular reference with the object it stores. @property(nonatomic, weak) FWFInstanceManager *instanceManager; @end @implementation FWFNavigationDelegateFlutterApiImpl - (instancetype)initWithBinaryMessenger:(id<FlutterBinaryMessenger>)binaryMessenger instanceManager:(FWFInstanceManager *)instanceManager { self = [self initWithBinaryMessenger:binaryMessenger]; if (self) { _instanceManager = instanceManager; } return self; } - (long)identifierForDelegate:(FWFNavigationDelegate *)instance { return [self.instanceManager identifierWithStrongReferenceForInstance:instance]; } - (void)didFinishNavigationForDelegate:(FWFNavigationDelegate *)instance webView:(WKWebView *)webView URL:(NSString *)URL completion:(void (^)(NSError *_Nullable))completion { NSNumber *webViewIdentifier = @([self.instanceManager identifierWithStrongReferenceForInstance:webView]); [self didFinishNavigationForDelegateWithIdentifier:@([self identifierForDelegate:instance]) webViewIdentifier:webViewIdentifier URL:URL completion:completion]; } - (void)didStartProvisionalNavigationForDelegate:(FWFNavigationDelegate *)instance webView:(WKWebView *)webView URL:(NSString *)URL completion:(void (^)(NSError *_Nullable))completion { NSNumber *webViewIdentifier = @([self.instanceManager identifierWithStrongReferenceForInstance:webView]); [self didStartProvisionalNavigationForDelegateWithIdentifier:@([self identifierForDelegate:instance]) webViewIdentifier:webViewIdentifier URL:URL completion:completion]; } - (void) decidePolicyForNavigationActionForDelegate:(FWFNavigationDelegate *)instance webView:(WKWebView *)webView navigationAction:(WKNavigationAction *)navigationAction completion: (void (^)(FWFWKNavigationActionPolicyEnumData *_Nullable, NSError *_Nullable))completion { NSNumber *webViewIdentifier = @([self.instanceManager identifierWithStrongReferenceForInstance:webView]); FWFWKNavigationActionData *navigationActionData = FWFWKNavigationActionDataFromNavigationAction(navigationAction); [self decidePolicyForNavigationActionForDelegateWithIdentifier:@([self identifierForDelegate:instance]) webViewIdentifier:webViewIdentifier navigationAction:navigationActionData completion:completion]; } - (void)didFailNavigationForDelegate:(FWFNavigationDelegate *)instance webView:(WKWebView *)webView error:(NSError *)error completion:(void (^)(NSError *_Nullable))completion { NSNumber *webViewIdentifier = @([self.instanceManager identifierWithStrongReferenceForInstance:webView]); [self didFailNavigationForDelegateWithIdentifier:@([self identifierForDelegate:instance]) webViewIdentifier:webViewIdentifier error:FWFNSErrorDataFromNSError(error) completion:completion]; } - (void)didFailProvisionalNavigationForDelegate:(FWFNavigationDelegate *)instance webView:(WKWebView *)webView error:(NSError *)error completion:(void (^)(NSError *_Nullable))completion { NSNumber *webViewIdentifier = @([self.instanceManager identifierWithStrongReferenceForInstance:webView]); [self didFailProvisionalNavigationForDelegateWithIdentifier:@([self identifierForDelegate:instance]) webViewIdentifier:webViewIdentifier error:FWFNSErrorDataFromNSError(error) completion:completion]; } - (void)webViewWebContentProcessDidTerminateForDelegate:(FWFNavigationDelegate *)instance webView:(WKWebView *)webView completion:(void (^)(NSError *_Nullable))completion { NSNumber *webViewIdentifier = @([self.instanceManager identifierWithStrongReferenceForInstance:webView]); [self webViewWebContentProcessDidTerminateForDelegateWithIdentifier: @([self identifierForDelegate:instance]) webViewIdentifier:webViewIdentifier completion:completion]; } @end @implementation FWFNavigationDelegate - (instancetype)initWithBinaryMessenger:(id<FlutterBinaryMessenger>)binaryMessenger instanceManager:(FWFInstanceManager *)instanceManager { self = [super initWithBinaryMessenger:binaryMessenger instanceManager:instanceManager]; if (self) { _navigationDelegateAPI = [[FWFNavigationDelegateFlutterApiImpl alloc] initWithBinaryMessenger:binaryMessenger instanceManager:instanceManager]; } return self; } - (void)webView:(WKWebView *)webView didFinishNavigation:(WKNavigation *)navigation { [self.navigationDelegateAPI didFinishNavigationForDelegate:self webView:webView URL:webView.URL.absoluteString completion:^(NSError *error) { NSAssert(!error, @"%@", error); }]; } - (void)webView:(WKWebView *)webView didStartProvisionalNavigation:(WKNavigation *)navigation { [self.navigationDelegateAPI didStartProvisionalNavigationForDelegate:self webView:webView URL:webView.URL.absoluteString completion:^(NSError *error) { NSAssert(!error, @"%@", error); }]; } - (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction decisionHandler:(void (^)(WKNavigationActionPolicy))decisionHandler { [self.navigationDelegateAPI decidePolicyForNavigationActionForDelegate:self webView:webView navigationAction:navigationAction completion:^(FWFWKNavigationActionPolicyEnumData *policy, NSError *error) { NSAssert(!error, @"%@", error); decisionHandler( FWFWKNavigationActionPolicyFromEnumData(policy)); }]; } - (void)webView:(WKWebView *)webView didFailNavigation:(WKNavigation *)navigation withError:(NSError *)error { [self.navigationDelegateAPI didFailNavigationForDelegate:self webView:webView error:error completion:^(NSError *error) { NSAssert(!error, @"%@", error); }]; } - (void)webView:(WKWebView *)webView didFailProvisionalNavigation:(WKNavigation *)navigation withError:(NSError *)error { [self.navigationDelegateAPI didFailProvisionalNavigationForDelegate:self webView:webView error:error completion:^(NSError *error) { NSAssert(!error, @"%@", error); }]; } - (void)webViewWebContentProcessDidTerminate:(WKWebView *)webView { [self.navigationDelegateAPI webViewWebContentProcessDidTerminateForDelegate:self webView:webView completion:^(NSError *error) { NSAssert(!error, @"%@", error); }]; } @end @interface FWFNavigationDelegateHostApiImpl () // BinaryMessenger must be weak to prevent a circular reference with the host API it // references. @property(nonatomic, weak) id<FlutterBinaryMessenger> binaryMessenger; // InstanceManager must be weak to prevent a circular reference with the object it stores. @property(nonatomic, weak) FWFInstanceManager *instanceManager; @end @implementation FWFNavigationDelegateHostApiImpl - (instancetype)initWithBinaryMessenger:(id<FlutterBinaryMessenger>)binaryMessenger instanceManager:(FWFInstanceManager *)instanceManager { self = [self init]; if (self) { _binaryMessenger = binaryMessenger; _instanceManager = instanceManager; } return self; } - (FWFNavigationDelegate *)navigationDelegateForIdentifier:(NSNumber *)identifier { return (FWFNavigationDelegate *)[self.instanceManager instanceForIdentifier:identifier.longValue]; } - (void)createWithIdentifier:(nonnull NSNumber *)identifier error:(FlutterError *_Nullable __autoreleasing *_Nonnull)error { FWFNavigationDelegate *navigationDelegate = [[FWFNavigationDelegate alloc] initWithBinaryMessenger:self.binaryMessenger instanceManager:self.instanceManager]; [self.instanceManager addDartCreatedInstance:navigationDelegate withIdentifier:identifier.longValue]; } @end
plugins/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFNavigationDelegateHostApi.m/0
{ "file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFNavigationDelegateHostApi.m", "repo_id": "plugins", "token_count": 6009 }
1,125
// 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 "FWFWebViewConfigurationHostApi.h" #import "FWFDataConverters.h" #import "FWFWebViewConfigurationHostApi.h" @interface FWFWebViewConfigurationFlutterApiImpl () // InstanceManager must be weak to prevent a circular reference with the object it stores. @property(nonatomic, weak) FWFInstanceManager *instanceManager; @end @implementation FWFWebViewConfigurationFlutterApiImpl - (instancetype)initWithBinaryMessenger:(id<FlutterBinaryMessenger>)binaryMessenger instanceManager:(FWFInstanceManager *)instanceManager { self = [self initWithBinaryMessenger:binaryMessenger]; if (self) { _instanceManager = instanceManager; } return self; } - (void)createWithConfiguration:(WKWebViewConfiguration *)configuration completion:(void (^)(NSError *_Nullable))completion { long identifier = [self.instanceManager addHostCreatedInstance:configuration]; [self createWithIdentifier:@(identifier) completion:completion]; } @end @implementation FWFWebViewConfiguration - (instancetype)initWithBinaryMessenger:(id<FlutterBinaryMessenger>)binaryMessenger instanceManager:(FWFInstanceManager *)instanceManager { self = [self init]; if (self) { _objectApi = [[FWFObjectFlutterApiImpl alloc] initWithBinaryMessenger:binaryMessenger instanceManager:instanceManager]; } return self; } - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary<NSKeyValueChangeKey, id> *)change context:(void *)context { [self.objectApi observeValueForObject:self keyPath:keyPath object:object change:change completion:^(NSError *error) { NSAssert(!error, @"%@", error); }]; } @end @interface FWFWebViewConfigurationHostApiImpl () // BinaryMessenger must be weak to prevent a circular reference with the host API it // references. @property(nonatomic, weak) id<FlutterBinaryMessenger> binaryMessenger; // InstanceManager must be weak to prevent a circular reference with the object it stores. @property(nonatomic, weak) FWFInstanceManager *instanceManager; @end @implementation FWFWebViewConfigurationHostApiImpl - (instancetype)initWithBinaryMessenger:(id<FlutterBinaryMessenger>)binaryMessenger instanceManager:(FWFInstanceManager *)instanceManager { self = [self init]; if (self) { _binaryMessenger = binaryMessenger; _instanceManager = instanceManager; } return self; } - (WKWebViewConfiguration *)webViewConfigurationForIdentifier:(NSNumber *)identifier { return (WKWebViewConfiguration *)[self.instanceManager instanceForIdentifier:identifier.longValue]; } - (void)createWithIdentifier:(nonnull NSNumber *)identifier error:(FlutterError *_Nullable *_Nonnull)error { FWFWebViewConfiguration *webViewConfiguration = [[FWFWebViewConfiguration alloc] initWithBinaryMessenger:self.binaryMessenger instanceManager:self.instanceManager]; [self.instanceManager addDartCreatedInstance:webViewConfiguration withIdentifier:identifier.longValue]; } - (void)createFromWebViewWithIdentifier:(nonnull NSNumber *)identifier webViewIdentifier:(nonnull NSNumber *)webViewIdentifier error:(FlutterError *_Nullable __autoreleasing *_Nonnull)error { WKWebView *webView = (WKWebView *)[self.instanceManager instanceForIdentifier:webViewIdentifier.longValue]; [self.instanceManager addDartCreatedInstance:webView.configuration withIdentifier:identifier.longValue]; } - (void)setAllowsInlineMediaPlaybackForConfigurationWithIdentifier:(nonnull NSNumber *)identifier isAllowed:(nonnull NSNumber *)allow error: (FlutterError *_Nullable *_Nonnull) error { [[self webViewConfigurationForIdentifier:identifier] setAllowsInlineMediaPlayback:allow.boolValue]; } - (void) setMediaTypesRequiresUserActionForConfigurationWithIdentifier:(nonnull NSNumber *)identifier forTypes: (nonnull NSArray< FWFWKAudiovisualMediaTypeEnumData *> *)types error: (FlutterError *_Nullable *_Nonnull) error { NSAssert(types.count, @"Types must not be empty."); WKWebViewConfiguration *configuration = (WKWebViewConfiguration *)[self webViewConfigurationForIdentifier:identifier]; if (@available(iOS 10.0, *)) { WKAudiovisualMediaTypes typesInt = 0; for (FWFWKAudiovisualMediaTypeEnumData *data in types) { typesInt |= FWFWKAudiovisualMediaTypeFromEnumData(data); } [configuration setMediaTypesRequiringUserActionForPlayback:typesInt]; } else { for (FWFWKAudiovisualMediaTypeEnumData *data in types) { switch (data.value) { #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wdeprecated-declarations" case FWFWKAudiovisualMediaTypeEnumNone: configuration.requiresUserActionForMediaPlayback = false; break; case FWFWKAudiovisualMediaTypeEnumAudio: case FWFWKAudiovisualMediaTypeEnumVideo: case FWFWKAudiovisualMediaTypeEnumAll: configuration.requiresUserActionForMediaPlayback = true; break; #pragma clang diagnostic pop } } } } @end
plugins/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFWebViewConfigurationHostApi.m/0
{ "file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFWebViewConfigurationHostApi.m", "repo_id": "plugins", "token_count": 2884 }
1,126
// 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 'dart:math'; // TODO(a14n): remove this import once Flutter 3.1 or later reaches stable (including flutter/flutter#106316) // ignore: unnecessary_import import 'dart:typed_data'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:mockito/annotations.dart'; import 'package:mockito/mockito.dart'; import 'package:webview_flutter_platform_interface/src/webview_flutter_platform_interface_legacy.dart'; import 'package:webview_flutter_wkwebview/src/foundation/foundation.dart'; import 'package:webview_flutter_wkwebview/src/legacy/web_kit_webview_widget.dart'; import 'package:webview_flutter_wkwebview/src/ui_kit/ui_kit.dart'; import 'package:webview_flutter_wkwebview/src/web_kit/web_kit.dart'; import 'web_kit_webview_widget_test.mocks.dart'; @GenerateMocks(<Type>[ UIScrollView, WKNavigationDelegate, WKPreferences, WKScriptMessageHandler, WKWebView, WKWebViewConfiguration, WKWebsiteDataStore, WKUIDelegate, WKUserContentController, JavascriptChannelRegistry, WebViewPlatformCallbacksHandler, WebViewWidgetProxy, ]) void main() { TestWidgetsFlutterBinding.ensureInitialized(); group('WebKitWebViewWidget', () { late MockWKWebView mockWebView; late MockWebViewWidgetProxy mockWebViewWidgetProxy; late MockWKUserContentController mockUserContentController; late MockWKPreferences mockPreferences; late MockWKWebViewConfiguration mockWebViewConfiguration; late MockWKUIDelegate mockUIDelegate; late MockUIScrollView mockScrollView; late MockWKWebsiteDataStore mockWebsiteDataStore; late MockWKNavigationDelegate mockNavigationDelegate; late MockWebViewPlatformCallbacksHandler mockCallbacksHandler; late MockJavascriptChannelRegistry mockJavascriptChannelRegistry; late WebKitWebViewPlatformController testController; setUp(() { mockWebView = MockWKWebView(); mockWebViewConfiguration = MockWKWebViewConfiguration(); mockUserContentController = MockWKUserContentController(); mockPreferences = MockWKPreferences(); mockUIDelegate = MockWKUIDelegate(); mockScrollView = MockUIScrollView(); mockWebsiteDataStore = MockWKWebsiteDataStore(); mockNavigationDelegate = MockWKNavigationDelegate(); mockWebViewWidgetProxy = MockWebViewWidgetProxy(); when( mockWebViewWidgetProxy.createWebView( any, observeValue: anyNamed('observeValue'), ), ).thenReturn(mockWebView); when( mockWebViewWidgetProxy.createUIDelgate( onCreateWebView: captureAnyNamed('onCreateWebView'), ), ).thenReturn(mockUIDelegate); when(mockWebViewWidgetProxy.createNavigationDelegate( didFinishNavigation: anyNamed('didFinishNavigation'), didStartProvisionalNavigation: anyNamed('didStartProvisionalNavigation'), decidePolicyForNavigationAction: anyNamed('decidePolicyForNavigationAction'), didFailNavigation: anyNamed('didFailNavigation'), didFailProvisionalNavigation: anyNamed('didFailProvisionalNavigation'), webViewWebContentProcessDidTerminate: anyNamed('webViewWebContentProcessDidTerminate'), )).thenReturn(mockNavigationDelegate); when(mockWebView.configuration).thenReturn(mockWebViewConfiguration); when(mockWebViewConfiguration.userContentController).thenReturn( mockUserContentController, ); when(mockWebViewConfiguration.preferences).thenReturn(mockPreferences); when(mockWebView.scrollView).thenReturn(mockScrollView); when(mockWebViewConfiguration.websiteDataStore).thenReturn( mockWebsiteDataStore, ); mockCallbacksHandler = MockWebViewPlatformCallbacksHandler(); mockJavascriptChannelRegistry = MockJavascriptChannelRegistry(); }); // Builds a WebViewCupertinoWidget with default parameters. Future<void> buildWidget( WidgetTester tester, { CreationParams? creationParams, bool hasNavigationDelegate = false, bool hasProgressTracking = false, }) async { await tester.pumpWidget(WebKitWebViewWidget( creationParams: creationParams ?? CreationParams( webSettings: WebSettings( userAgent: const WebSetting<String?>.absent(), hasNavigationDelegate: hasNavigationDelegate, hasProgressTracking: hasProgressTracking, )), callbacksHandler: mockCallbacksHandler, javascriptChannelRegistry: mockJavascriptChannelRegistry, webViewProxy: mockWebViewWidgetProxy, configuration: mockWebViewConfiguration, onBuildWidget: (WebKitWebViewPlatformController controller) { testController = controller; return Container(); }, )); await tester.pumpAndSettle(); } testWidgets('build $WebKitWebViewWidget', (WidgetTester tester) async { await buildWidget(tester); }); testWidgets('Requests to open a new window loads request in same window', (WidgetTester tester) async { await buildWidget(tester); final void Function(WKWebView, WKWebViewConfiguration, WKNavigationAction) onCreateWebView = verify(mockWebViewWidgetProxy.createUIDelgate( onCreateWebView: captureAnyNamed('onCreateWebView'))) .captured .single as void Function( WKWebView, WKWebViewConfiguration, WKNavigationAction); const NSUrlRequest request = NSUrlRequest(url: 'https://google.com'); onCreateWebView( mockWebView, mockWebViewConfiguration, const WKNavigationAction( request: request, targetFrame: WKFrameInfo(isMainFrame: false), navigationType: WKNavigationType.linkActivated, ), ); verify(mockWebView.loadRequest(request)); }); group('CreationParams', () { testWidgets('initialUrl', (WidgetTester tester) async { await buildWidget( tester, creationParams: CreationParams( initialUrl: 'https://www.google.com', webSettings: WebSettings( userAgent: const WebSetting<String?>.absent(), hasNavigationDelegate: false, ), ), ); final NSUrlRequest request = verify(mockWebView.loadRequest(captureAny)) .captured .single as NSUrlRequest; expect(request.url, 'https://www.google.com'); }); testWidgets('backgroundColor', (WidgetTester tester) async { await buildWidget( tester, creationParams: CreationParams( backgroundColor: Colors.red, webSettings: WebSettings( userAgent: const WebSetting<String?>.absent(), hasNavigationDelegate: false, ), ), ); verify(mockWebView.setOpaque(false)); verify(mockWebView.setBackgroundColor(Colors.transparent)); verify(mockScrollView.setBackgroundColor(Colors.red)); }); testWidgets('userAgent', (WidgetTester tester) async { await buildWidget( tester, creationParams: CreationParams( userAgent: 'MyUserAgent', webSettings: WebSettings( userAgent: const WebSetting<String?>.absent(), hasNavigationDelegate: false, ), ), ); verify(mockWebView.setCustomUserAgent('MyUserAgent')); }); testWidgets('autoMediaPlaybackPolicy true', (WidgetTester tester) async { await buildWidget( tester, creationParams: CreationParams( webSettings: WebSettings( userAgent: const WebSetting<String?>.absent(), hasNavigationDelegate: false, ), ), ); verify(mockWebViewConfiguration .setMediaTypesRequiringUserActionForPlayback(< WKAudiovisualMediaType>{ WKAudiovisualMediaType.all, })); }); testWidgets('autoMediaPlaybackPolicy false', (WidgetTester tester) async { await buildWidget( tester, creationParams: CreationParams( autoMediaPlaybackPolicy: AutoMediaPlaybackPolicy.always_allow, webSettings: WebSettings( userAgent: const WebSetting<String?>.absent(), hasNavigationDelegate: false, ), ), ); verify(mockWebViewConfiguration .setMediaTypesRequiringUserActionForPlayback(< WKAudiovisualMediaType>{ WKAudiovisualMediaType.none, })); }); testWidgets('javascriptChannelNames', (WidgetTester tester) async { when( mockWebViewWidgetProxy.createScriptMessageHandler( didReceiveScriptMessage: anyNamed('didReceiveScriptMessage'), ), ).thenReturn( MockWKScriptMessageHandler(), ); await buildWidget( tester, creationParams: CreationParams( javascriptChannelNames: <String>{'a', 'b'}, webSettings: WebSettings( userAgent: const WebSetting<String?>.absent(), hasNavigationDelegate: false, ), ), ); final List<dynamic> javaScriptChannels = verify( mockUserContentController.addScriptMessageHandler( captureAny, captureAny, ), ).captured; expect( javaScriptChannels[0], isA<WKScriptMessageHandler>(), ); expect(javaScriptChannels[1], 'a'); expect( javaScriptChannels[2], isA<WKScriptMessageHandler>(), ); expect(javaScriptChannels[3], 'b'); }); group('WebSettings', () { testWidgets('javascriptMode', (WidgetTester tester) async { await buildWidget( tester, creationParams: CreationParams( webSettings: WebSettings( userAgent: const WebSetting<String?>.absent(), javascriptMode: JavascriptMode.unrestricted, hasNavigationDelegate: false, ), ), ); verify(mockPreferences.setJavaScriptEnabled(true)); }); testWidgets('userAgent', (WidgetTester tester) async { await buildWidget( tester, creationParams: CreationParams( webSettings: WebSettings( userAgent: const WebSetting<String?>.of('myUserAgent'), hasNavigationDelegate: false, ), ), ); verify(mockWebView.setCustomUserAgent('myUserAgent')); }); testWidgets( 'enabling zoom re-adds JavaScript channels', (WidgetTester tester) async { when( mockWebViewWidgetProxy.createScriptMessageHandler( didReceiveScriptMessage: anyNamed('didReceiveScriptMessage'), ), ).thenReturn( MockWKScriptMessageHandler(), ); await buildWidget( tester, creationParams: CreationParams( webSettings: WebSettings( userAgent: const WebSetting<String?>.absent(), zoomEnabled: false, hasNavigationDelegate: false, ), javascriptChannelNames: <String>{'myChannel'}, ), ); clearInteractions(mockUserContentController); await testController.updateSettings(WebSettings( userAgent: const WebSetting<String?>.absent(), zoomEnabled: true, )); final List<dynamic> javaScriptChannels = verifyInOrder(<Object>[ mockUserContentController.removeAllUserScripts(), mockUserContentController.removeScriptMessageHandler('myChannel'), mockUserContentController.addScriptMessageHandler( captureAny, captureAny, ), ]).captured[2]; expect( javaScriptChannels[0], isA<WKScriptMessageHandler>(), ); expect(javaScriptChannels[1], 'myChannel'); }, ); testWidgets( 'enabling zoom removes script', (WidgetTester tester) async { await buildWidget( tester, creationParams: CreationParams( webSettings: WebSettings( userAgent: const WebSetting<String?>.absent(), zoomEnabled: false, hasNavigationDelegate: false, ), ), ); clearInteractions(mockUserContentController); await testController.updateSettings(WebSettings( userAgent: const WebSetting<String?>.absent(), zoomEnabled: true, )); verify(mockUserContentController.removeAllUserScripts()); verifyNever(mockUserContentController.addScriptMessageHandler( any, any, )); }, ); testWidgets('zoomEnabled is false', (WidgetTester tester) async { await buildWidget( tester, creationParams: CreationParams( webSettings: WebSettings( userAgent: const WebSetting<String?>.absent(), zoomEnabled: false, hasNavigationDelegate: false, ), ), ); final WKUserScript zoomScript = verify(mockUserContentController.addUserScript(captureAny)) .captured .first as WKUserScript; expect(zoomScript.isMainFrameOnly, isTrue); expect(zoomScript.injectionTime, WKUserScriptInjectionTime.atDocumentEnd); expect( zoomScript.source, "var meta = document.createElement('meta');\n" "meta.name = 'viewport';\n" "meta.content = 'width=device-width, initial-scale=1.0, maximum-scale=1.0, " "user-scalable=no';\n" "var head = document.getElementsByTagName('head')[0];head.appendChild(meta);", ); }); testWidgets('allowsInlineMediaPlayback', (WidgetTester tester) async { await buildWidget( tester, creationParams: CreationParams( webSettings: WebSettings( userAgent: const WebSetting<String?>.absent(), allowsInlineMediaPlayback: true, ), ), ); verify(mockWebViewConfiguration.setAllowsInlineMediaPlayback(true)); }); }); }); group('WebKitWebViewPlatformController', () { testWidgets('loadFile', (WidgetTester tester) async { await buildWidget(tester); await testController.loadFile('/path/to/file.html'); verify(mockWebView.loadFileUrl( '/path/to/file.html', readAccessUrl: '/path/to', )); }); testWidgets('loadFlutterAsset', (WidgetTester tester) async { await buildWidget(tester); await testController.loadFlutterAsset('test_assets/index.html'); verify(mockWebView.loadFlutterAsset('test_assets/index.html')); }); testWidgets('loadHtmlString', (WidgetTester tester) async { await buildWidget(tester); const String htmlString = '<html><body>Test data.</body></html>'; await testController.loadHtmlString(htmlString, baseUrl: 'baseUrl'); verify(mockWebView.loadHtmlString( '<html><body>Test data.</body></html>', baseUrl: 'baseUrl', )); }); testWidgets('loadUrl', (WidgetTester tester) async { await buildWidget(tester); await testController.loadUrl( 'https://www.google.com', <String, String>{'a': 'header'}, ); final NSUrlRequest request = verify(mockWebView.loadRequest(captureAny)) .captured .single as NSUrlRequest; expect(request.url, 'https://www.google.com'); expect(request.allHttpHeaderFields, <String, String>{'a': 'header'}); }); group('loadRequest', () { testWidgets('Throws ArgumentError for empty scheme', (WidgetTester tester) async { await buildWidget(tester); expect( () async => testController.loadRequest( WebViewRequest( uri: Uri.parse('www.google.com'), method: WebViewRequestMethod.get, ), ), throwsA(const TypeMatcher<ArgumentError>())); }); testWidgets('GET without headers', (WidgetTester tester) async { await buildWidget(tester); await testController.loadRequest(WebViewRequest( uri: Uri.parse('https://www.google.com'), method: WebViewRequestMethod.get, )); final NSUrlRequest request = verify(mockWebView.loadRequest(captureAny)).captured.single as NSUrlRequest; expect(request.url, 'https://www.google.com'); expect(request.allHttpHeaderFields, <String, String>{}); expect(request.httpMethod, 'get'); }); testWidgets('GET with headers', (WidgetTester tester) async { await buildWidget(tester); await testController.loadRequest(WebViewRequest( uri: Uri.parse('https://www.google.com'), method: WebViewRequestMethod.get, headers: <String, String>{'a': 'header'}, )); final NSUrlRequest request = verify(mockWebView.loadRequest(captureAny)).captured.single as NSUrlRequest; expect(request.url, 'https://www.google.com'); expect(request.allHttpHeaderFields, <String, String>{'a': 'header'}); expect(request.httpMethod, 'get'); }); testWidgets('POST without body', (WidgetTester tester) async { await buildWidget(tester); await testController.loadRequest(WebViewRequest( uri: Uri.parse('https://www.google.com'), method: WebViewRequestMethod.post, )); final NSUrlRequest request = verify(mockWebView.loadRequest(captureAny)).captured.single as NSUrlRequest; expect(request.url, 'https://www.google.com'); expect(request.httpMethod, 'post'); }); testWidgets('POST with body', (WidgetTester tester) async { await buildWidget(tester); await testController.loadRequest(WebViewRequest( uri: Uri.parse('https://www.google.com'), method: WebViewRequestMethod.post, body: Uint8List.fromList('Test Body'.codeUnits))); final NSUrlRequest request = verify(mockWebView.loadRequest(captureAny)).captured.single as NSUrlRequest; expect(request.url, 'https://www.google.com'); expect(request.httpMethod, 'post'); expect( request.httpBody, Uint8List.fromList('Test Body'.codeUnits), ); }); }); testWidgets('canGoBack', (WidgetTester tester) async { await buildWidget(tester); when(mockWebView.canGoBack()).thenAnswer( (_) => Future<bool>.value(false), ); expect(testController.canGoBack(), completion(false)); }); testWidgets('canGoForward', (WidgetTester tester) async { await buildWidget(tester); when(mockWebView.canGoForward()).thenAnswer( (_) => Future<bool>.value(true), ); expect(testController.canGoForward(), completion(true)); }); testWidgets('goBack', (WidgetTester tester) async { await buildWidget(tester); await testController.goBack(); verify(mockWebView.goBack()); }); testWidgets('goForward', (WidgetTester tester) async { await buildWidget(tester); await testController.goForward(); verify(mockWebView.goForward()); }); testWidgets('reload', (WidgetTester tester) async { await buildWidget(tester); await testController.reload(); verify(mockWebView.reload()); }); testWidgets('evaluateJavascript', (WidgetTester tester) async { await buildWidget(tester); when(mockWebView.evaluateJavaScript('runJavaScript')).thenAnswer( (_) => Future<String>.value('returnString'), ); expect( testController.evaluateJavascript('runJavaScript'), completion('returnString'), ); }); testWidgets('evaluateJavascript with null return value', (WidgetTester tester) async { await buildWidget(tester); when(mockWebView.evaluateJavaScript('runJavaScript')).thenAnswer( (_) => Future<Object?>.value(), ); // The legacy implementation of webview_flutter_wkwebview would convert // objects to strings before returning them to Dart. This verifies null // is represented the way it is in Objective-C. expect( testController.evaluateJavascript('runJavaScript'), completion('(null)'), ); }); testWidgets('evaluateJavascript with bool return value', (WidgetTester tester) async { await buildWidget(tester); when(mockWebView.evaluateJavaScript('runJavaScript')).thenAnswer( (_) => Future<Object?>.value(true), ); // The legacy implementation of webview_flutter_wkwebview would convert // objects to strings before returning them to Dart. This verifies bool // is represented the way it is in Objective-C. // `NSNumber.description` converts bool values to a 1 or 0. expect( testController.evaluateJavascript('runJavaScript'), completion('1'), ); }); testWidgets('evaluateJavascript with double return value', (WidgetTester tester) async { await buildWidget(tester); when(mockWebView.evaluateJavaScript('runJavaScript')).thenAnswer( (_) => Future<Object?>.value(1.0), ); // The legacy implementation of webview_flutter_wkwebview would convert // objects to strings before returning them to Dart. This verifies // double is represented the way it is in Objective-C. If a double // doesn't contain any decimal values, it gets truncated to an int. // This should be happenning because NSNumber convertes float values // with no decimals to an int when using `NSNumber.description`. expect( testController.evaluateJavascript('runJavaScript'), completion('1'), ); }); testWidgets('evaluateJavascript with list return value', (WidgetTester tester) async { await buildWidget(tester); when(mockWebView.evaluateJavaScript('runJavaScript')).thenAnswer( (_) => Future<Object?>.value(<Object?>[1, 'string', null]), ); // The legacy implementation of webview_flutter_wkwebview would convert // objects to strings before returning them to Dart. This verifies list // is represented the way it is in Objective-C. expect( testController.evaluateJavascript('runJavaScript'), completion('(1,string,"<null>")'), ); }); testWidgets('evaluateJavascript with map return value', (WidgetTester tester) async { await buildWidget(tester); when(mockWebView.evaluateJavaScript('runJavaScript')).thenAnswer( (_) => Future<Object?>.value(<Object?, Object?>{ 1: 'string', null: null, }), ); // The legacy implementation of webview_flutter_wkwebview would convert // objects to strings before returning them to Dart. This verifies map // is represented the way it is in Objective-C. expect( testController.evaluateJavascript('runJavaScript'), completion('{1 = string;"<null>" = "<null>"}'), ); }); testWidgets('evaluateJavascript throws exception', (WidgetTester tester) async { await buildWidget(tester); when(mockWebView.evaluateJavaScript('runJavaScript')) .thenThrow(Error()); expect( testController.evaluateJavascript('runJavaScript'), throwsA(isA<Error>()), ); }); testWidgets('runJavascriptReturningResult', (WidgetTester tester) async { await buildWidget(tester); when(mockWebView.evaluateJavaScript('runJavaScript')).thenAnswer( (_) => Future<String>.value('returnString'), ); expect( testController.runJavascriptReturningResult('runJavaScript'), completion('returnString'), ); }); testWidgets( 'runJavascriptReturningResult throws error on null return value', (WidgetTester tester) async { await buildWidget(tester); when(mockWebView.evaluateJavaScript('runJavaScript')).thenAnswer( (_) => Future<String?>.value(), ); expect( () => testController.runJavascriptReturningResult('runJavaScript'), throwsArgumentError, ); }); testWidgets('runJavascriptReturningResult with bool return value', (WidgetTester tester) async { await buildWidget(tester); when(mockWebView.evaluateJavaScript('runJavaScript')).thenAnswer( (_) => Future<Object?>.value(false), ); // The legacy implementation of webview_flutter_wkwebview would convert // objects to strings before returning them to Dart. This verifies bool // is represented the way it is in Objective-C. // `NSNumber.description` converts bool values to a 1 or 0. expect( testController.runJavascriptReturningResult('runJavaScript'), completion('0'), ); }); testWidgets('runJavascript', (WidgetTester tester) async { await buildWidget(tester); when(mockWebView.evaluateJavaScript('runJavaScript')).thenAnswer( (_) => Future<String>.value('returnString'), ); expect( testController.runJavascript('runJavaScript'), completes, ); }); testWidgets( 'runJavascript ignores exception with unsupported javascript type', (WidgetTester tester) async { await buildWidget(tester); when(mockWebView.evaluateJavaScript('runJavaScript')) .thenThrow(PlatformException( code: '', details: const NSError( code: WKErrorCode.javaScriptResultTypeIsUnsupported, domain: '', localizedDescription: '', ), )); expect( testController.runJavascript('runJavaScript'), completes, ); }); testWidgets('getTitle', (WidgetTester tester) async { await buildWidget(tester); when(mockWebView.getTitle()) .thenAnswer((_) => Future<String>.value('Web Title')); expect(testController.getTitle(), completion('Web Title')); }); testWidgets('currentUrl', (WidgetTester tester) async { await buildWidget(tester); when(mockWebView.getUrl()) .thenAnswer((_) => Future<String>.value('myUrl.com')); expect(testController.currentUrl(), completion('myUrl.com')); }); testWidgets('scrollTo', (WidgetTester tester) async { await buildWidget(tester); await testController.scrollTo(2, 4); verify(mockScrollView.setContentOffset(const Point<double>(2.0, 4.0))); }); testWidgets('scrollBy', (WidgetTester tester) async { await buildWidget(tester); await testController.scrollBy(2, 4); verify(mockScrollView.scrollBy(const Point<double>(2.0, 4.0))); }); testWidgets('getScrollX', (WidgetTester tester) async { await buildWidget(tester); when(mockScrollView.getContentOffset()).thenAnswer( (_) => Future<Point<double>>.value(const Point<double>(8.0, 16.0))); expect(testController.getScrollX(), completion(8.0)); }); testWidgets('getScrollY', (WidgetTester tester) async { await buildWidget(tester); await buildWidget(tester); when(mockScrollView.getContentOffset()).thenAnswer( (_) => Future<Point<double>>.value(const Point<double>(8.0, 16.0))); expect(testController.getScrollY(), completion(16.0)); }); testWidgets('clearCache', (WidgetTester tester) async { await buildWidget(tester); when( mockWebsiteDataStore.removeDataOfTypes( <WKWebsiteDataType>{ WKWebsiteDataType.memoryCache, WKWebsiteDataType.diskCache, WKWebsiteDataType.offlineWebApplicationCache, WKWebsiteDataType.localStorage, }, DateTime.fromMillisecondsSinceEpoch(0), ), ).thenAnswer((_) => Future<bool>.value(false)); expect(testController.clearCache(), completes); }); testWidgets('addJavascriptChannels', (WidgetTester tester) async { when( mockWebViewWidgetProxy.createScriptMessageHandler( didReceiveScriptMessage: anyNamed('didReceiveScriptMessage'), ), ).thenReturn( MockWKScriptMessageHandler(), ); await buildWidget(tester); await testController.addJavascriptChannels(<String>{'c', 'd'}); final List<dynamic> javaScriptChannels = verify( mockUserContentController.addScriptMessageHandler( captureAny, captureAny), ).captured; expect( javaScriptChannels[0], isA<WKScriptMessageHandler>(), ); expect(javaScriptChannels[1], 'c'); expect( javaScriptChannels[2], isA<WKScriptMessageHandler>(), ); expect(javaScriptChannels[3], 'd'); final List<WKUserScript> userScripts = verify(mockUserContentController.addUserScript(captureAny)) .captured .cast<WKUserScript>(); expect(userScripts[0].source, 'window.c = webkit.messageHandlers.c;'); expect( userScripts[0].injectionTime, WKUserScriptInjectionTime.atDocumentStart, ); expect(userScripts[0].isMainFrameOnly, false); expect(userScripts[1].source, 'window.d = webkit.messageHandlers.d;'); expect( userScripts[1].injectionTime, WKUserScriptInjectionTime.atDocumentStart, ); expect(userScripts[0].isMainFrameOnly, false); }); testWidgets('removeJavascriptChannels', (WidgetTester tester) async { when( mockWebViewWidgetProxy.createScriptMessageHandler( didReceiveScriptMessage: anyNamed('didReceiveScriptMessage'), ), ).thenReturn( MockWKScriptMessageHandler(), ); await buildWidget(tester); await testController.addJavascriptChannels(<String>{'c', 'd'}); reset(mockUserContentController); await testController.removeJavascriptChannels(<String>{'c'}); verify(mockUserContentController.removeAllUserScripts()); verify(mockUserContentController.removeScriptMessageHandler('c')); verify(mockUserContentController.removeScriptMessageHandler('d')); final List<dynamic> javaScriptChannels = verify( mockUserContentController.addScriptMessageHandler( captureAny, captureAny, ), ).captured; expect( javaScriptChannels[0], isA<WKScriptMessageHandler>(), ); expect(javaScriptChannels[1], 'd'); final List<WKUserScript> userScripts = verify(mockUserContentController.addUserScript(captureAny)) .captured .cast<WKUserScript>(); expect(userScripts[0].source, 'window.d = webkit.messageHandlers.d;'); expect( userScripts[0].injectionTime, WKUserScriptInjectionTime.atDocumentStart, ); expect(userScripts[0].isMainFrameOnly, false); }); testWidgets('removeJavascriptChannels with zoom disabled', (WidgetTester tester) async { when( mockWebViewWidgetProxy.createScriptMessageHandler( didReceiveScriptMessage: anyNamed('didReceiveScriptMessage'), ), ).thenReturn( MockWKScriptMessageHandler(), ); await buildWidget( tester, creationParams: CreationParams( webSettings: WebSettings( userAgent: const WebSetting<String?>.absent(), zoomEnabled: false, hasNavigationDelegate: false, ), ), ); await testController.addJavascriptChannels(<String>{'c'}); clearInteractions(mockUserContentController); await testController.removeJavascriptChannels(<String>{'c'}); final WKUserScript zoomScript = verify(mockUserContentController.addUserScript(captureAny)) .captured .first as WKUserScript; expect(zoomScript.isMainFrameOnly, isTrue); expect( zoomScript.injectionTime, WKUserScriptInjectionTime.atDocumentEnd); expect( zoomScript.source, "var meta = document.createElement('meta');\n" "meta.name = 'viewport';\n" "meta.content = 'width=device-width, initial-scale=1.0, maximum-scale=1.0, " "user-scalable=no';\n" "var head = document.getElementsByTagName('head')[0];head.appendChild(meta);", ); }); }); group('WebViewPlatformCallbacksHandler', () { testWidgets('onPageStarted', (WidgetTester tester) async { await buildWidget(tester); final void Function(WKWebView, String) didStartProvisionalNavigation = verify(mockWebViewWidgetProxy.createNavigationDelegate( didFinishNavigation: anyNamed('didFinishNavigation'), didStartProvisionalNavigation: captureAnyNamed('didStartProvisionalNavigation'), decidePolicyForNavigationAction: anyNamed('decidePolicyForNavigationAction'), didFailNavigation: anyNamed('didFailNavigation'), didFailProvisionalNavigation: anyNamed('didFailProvisionalNavigation'), webViewWebContentProcessDidTerminate: anyNamed('webViewWebContentProcessDidTerminate'), )).captured.single as void Function(WKWebView, String); didStartProvisionalNavigation(mockWebView, 'https://google.com'); verify(mockCallbacksHandler.onPageStarted('https://google.com')); }); testWidgets('onPageFinished', (WidgetTester tester) async { await buildWidget(tester); final void Function(WKWebView, String) didFinishNavigation = verify(mockWebViewWidgetProxy.createNavigationDelegate( didFinishNavigation: captureAnyNamed('didFinishNavigation'), didStartProvisionalNavigation: anyNamed('didStartProvisionalNavigation'), decidePolicyForNavigationAction: anyNamed('decidePolicyForNavigationAction'), didFailNavigation: anyNamed('didFailNavigation'), didFailProvisionalNavigation: anyNamed('didFailProvisionalNavigation'), webViewWebContentProcessDidTerminate: anyNamed('webViewWebContentProcessDidTerminate'), )).captured.single as void Function(WKWebView, String); didFinishNavigation(mockWebView, 'https://google.com'); verify(mockCallbacksHandler.onPageFinished('https://google.com')); }); testWidgets('onWebResourceError from didFailNavigation', (WidgetTester tester) async { await buildWidget(tester); final void Function(WKWebView, NSError) didFailNavigation = verify(mockWebViewWidgetProxy.createNavigationDelegate( didFinishNavigation: anyNamed('didFinishNavigation'), didStartProvisionalNavigation: anyNamed('didStartProvisionalNavigation'), decidePolicyForNavigationAction: anyNamed('decidePolicyForNavigationAction'), didFailNavigation: captureAnyNamed('didFailNavigation'), didFailProvisionalNavigation: anyNamed('didFailProvisionalNavigation'), webViewWebContentProcessDidTerminate: anyNamed('webViewWebContentProcessDidTerminate'), )).captured.single as void Function(WKWebView, NSError); didFailNavigation( mockWebView, const NSError( code: WKErrorCode.webViewInvalidated, domain: 'domain', localizedDescription: 'my desc', ), ); final WebResourceError error = verify(mockCallbacksHandler.onWebResourceError(captureAny)) .captured .single as WebResourceError; expect(error.description, 'my desc'); expect(error.errorCode, WKErrorCode.webViewInvalidated); expect(error.domain, 'domain'); expect(error.errorType, WebResourceErrorType.webViewInvalidated); }); testWidgets('onWebResourceError from didFailProvisionalNavigation', (WidgetTester tester) async { await buildWidget(tester); final void Function(WKWebView, NSError) didFailProvisionalNavigation = verify(mockWebViewWidgetProxy.createNavigationDelegate( didFinishNavigation: anyNamed('didFinishNavigation'), didStartProvisionalNavigation: anyNamed('didStartProvisionalNavigation'), decidePolicyForNavigationAction: anyNamed('decidePolicyForNavigationAction'), didFailNavigation: anyNamed('didFailNavigation'), didFailProvisionalNavigation: captureAnyNamed('didFailProvisionalNavigation'), webViewWebContentProcessDidTerminate: anyNamed('webViewWebContentProcessDidTerminate'), )).captured.single as void Function(WKWebView, NSError); didFailProvisionalNavigation( mockWebView, const NSError( code: WKErrorCode.webContentProcessTerminated, domain: 'domain', localizedDescription: 'my desc', ), ); final WebResourceError error = verify(mockCallbacksHandler.onWebResourceError(captureAny)) .captured .single as WebResourceError; expect(error.description, 'my desc'); expect(error.errorCode, WKErrorCode.webContentProcessTerminated); expect(error.domain, 'domain'); expect( error.errorType, WebResourceErrorType.webContentProcessTerminated, ); }); testWidgets( 'onWebResourceError from webViewWebContentProcessDidTerminate', (WidgetTester tester) async { await buildWidget(tester); final void Function(WKWebView) webViewWebContentProcessDidTerminate = verify(mockWebViewWidgetProxy.createNavigationDelegate( didFinishNavigation: anyNamed('didFinishNavigation'), didStartProvisionalNavigation: anyNamed('didStartProvisionalNavigation'), decidePolicyForNavigationAction: anyNamed('decidePolicyForNavigationAction'), didFailNavigation: anyNamed('didFailNavigation'), didFailProvisionalNavigation: anyNamed('didFailProvisionalNavigation'), webViewWebContentProcessDidTerminate: captureAnyNamed('webViewWebContentProcessDidTerminate'), )).captured.single as void Function(WKWebView); webViewWebContentProcessDidTerminate(mockWebView); final WebResourceError error = verify(mockCallbacksHandler.onWebResourceError(captureAny)) .captured .single as WebResourceError; expect(error.description, ''); expect(error.errorCode, WKErrorCode.webContentProcessTerminated); expect(error.domain, 'WKErrorDomain'); expect( error.errorType, WebResourceErrorType.webContentProcessTerminated, ); }); testWidgets('onNavigationRequest from decidePolicyForNavigationAction', (WidgetTester tester) async { await buildWidget(tester, hasNavigationDelegate: true); final Future<WKNavigationActionPolicy> Function( WKWebView, WKNavigationAction) decidePolicyForNavigationAction = verify(mockWebViewWidgetProxy.createNavigationDelegate( didFinishNavigation: anyNamed('didFinishNavigation'), didStartProvisionalNavigation: anyNamed('didStartProvisionalNavigation'), decidePolicyForNavigationAction: captureAnyNamed('decidePolicyForNavigationAction'), didFailNavigation: anyNamed('didFailNavigation'), didFailProvisionalNavigation: anyNamed('didFailProvisionalNavigation'), webViewWebContentProcessDidTerminate: anyNamed('webViewWebContentProcessDidTerminate'), )).captured.single as Future<WKNavigationActionPolicy> Function( WKWebView, WKNavigationAction); when(mockCallbacksHandler.onNavigationRequest( isForMainFrame: argThat(isFalse, named: 'isForMainFrame'), url: 'https://google.com', )).thenReturn(true); expect( decidePolicyForNavigationAction( mockWebView, const WKNavigationAction( request: NSUrlRequest(url: 'https://google.com'), targetFrame: WKFrameInfo(isMainFrame: false), navigationType: WKNavigationType.linkActivated, ), ), completion(WKNavigationActionPolicy.allow), ); verify(mockCallbacksHandler.onNavigationRequest( url: 'https://google.com', isForMainFrame: false, )); }); testWidgets('onProgress', (WidgetTester tester) async { await buildWidget(tester, hasProgressTracking: true); verify(mockWebView.addObserver( mockWebView, keyPath: 'estimatedProgress', options: <NSKeyValueObservingOptions>{ NSKeyValueObservingOptions.newValue, }, )); final void Function(String, NSObject, Map<NSKeyValueChangeKey, Object?>) observeValue = verify(mockWebViewWidgetProxy.createWebView(any, observeValue: captureAnyNamed('observeValue'))) .captured .single as void Function( String, NSObject, Map<NSKeyValueChangeKey, Object?>); observeValue( 'estimatedProgress', mockWebView, <NSKeyValueChangeKey, Object?>{NSKeyValueChangeKey.newValue: 0.32}, ); verify(mockCallbacksHandler.onProgress(32)); }); testWidgets('progress observer is not removed without being set first', (WidgetTester tester) async { await buildWidget(tester); verifyNever(mockWebView.removeObserver( mockWebView, keyPath: 'estimatedProgress', )); }); }); group('JavascriptChannelRegistry', () { testWidgets('onJavascriptChannelMessage', (WidgetTester tester) async { when( mockWebViewWidgetProxy.createScriptMessageHandler( didReceiveScriptMessage: anyNamed('didReceiveScriptMessage'), ), ).thenReturn( MockWKScriptMessageHandler(), ); await buildWidget(tester); await testController.addJavascriptChannels(<String>{'hello'}); final void Function(WKUserContentController, WKScriptMessage) didReceiveScriptMessage = verify( mockWebViewWidgetProxy.createScriptMessageHandler( didReceiveScriptMessage: captureAnyNamed('didReceiveScriptMessage'))) .captured .single as void Function(WKUserContentController, WKScriptMessage); didReceiveScriptMessage( mockUserContentController, const WKScriptMessage(name: 'hello', body: 'A message.'), ); verify(mockJavascriptChannelRegistry.onJavascriptChannelMessage( 'hello', 'A message.', )); }); }); }); }
plugins/packages/webview_flutter/webview_flutter_wkwebview/test/legacy/web_kit_webview_widget_test.dart/0
{ "file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/test/legacy/web_kit_webview_widget_test.dart", "repo_id": "plugins", "token_count": 19984 }
1,127
// 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/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:mockito/annotations.dart'; import 'package:webview_flutter_wkwebview/src/common/instance_manager.dart'; import 'package:webview_flutter_wkwebview/src/foundation/foundation.dart'; import 'package:webview_flutter_wkwebview/src/web_kit/web_kit.dart'; import 'package:webview_flutter_wkwebview/src/webkit_proxy.dart'; import 'package:webview_flutter_wkwebview/webview_flutter_wkwebview.dart'; import 'webkit_webview_widget_test.mocks.dart'; @GenerateMocks(<Type>[WKWebViewConfiguration]) void main() { TestWidgetsFlutterBinding.ensureInitialized(); group('WebKitWebViewWidget', () { testWidgets('build', (WidgetTester tester) async { final InstanceManager testInstanceManager = InstanceManager( onWeakReferenceRemoved: (_) {}, ); final WebKitWebViewController controller = WebKitWebViewController( WebKitWebViewControllerCreationParams( webKitProxy: WebKitProxy( createWebView: ( WKWebViewConfiguration configuration, { void Function( String keyPath, NSObject object, Map<NSKeyValueChangeKey, Object?> change, )? observeValue, InstanceManager? instanceManager, }) { final WKWebView webView = WKWebView.detached( instanceManager: testInstanceManager, ); testInstanceManager.addDartCreatedInstance(webView); return webView; }, createWebViewConfiguration: ({InstanceManager? instanceManager}) { return MockWKWebViewConfiguration(); }, ), ), ); final WebKitWebViewWidget widget = WebKitWebViewWidget( WebKitWebViewWidgetCreationParams( key: const Key('keyValue'), controller: controller, instanceManager: testInstanceManager, ), ); await tester.pumpWidget( Builder(builder: (BuildContext context) => widget.build(context)), ); expect(find.byType(UiKitView), findsOneWidget); expect(find.byKey(const Key('keyValue')), findsOneWidget); }); }); }
plugins/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_widget_test.dart/0
{ "file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_widget_test.dart", "repo_id": "plugins", "token_count": 1018 }
1,128
# Removed See https://github.com/flutter/packages/blob/main/script/tool/README.md for the current location of this tooling. ## Temporary shim This is a temporary, minimal version of the tools sufficient to keep the following scripts running until the repository merge is complete and they are updated to use flutter/packages instead: - [dart-lang analysis](https://github.com/dart-lang/sdk/blob/main/tools/bots/flutter/analyze_flutter_plugins.sh) - [flutter/flutter analysis](https://github.com/flutter/flutter/blob/master/dev/bots/test.dart)
plugins/script/tool/README.md/0
{ "file_path": "plugins/script/tool/README.md", "repo_id": "plugins", "token_count": 168 }
1,129
// Copyright 2019 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package dev.flutter.example.androidView import android.content.Intent import android.os.Bundle import android.os.Parcelable import androidx.appcompat.app.AppCompatActivity import androidx.recyclerview.widget.LinearLayoutManager import dev.flutter.example.androidView.databinding.ActivityMainBinding import io.flutter.FlutterInjector import io.flutter.embedding.engine.FlutterEngine import io.flutter.embedding.engine.dart.DartExecutor import java.util.* import kotlin.collections.ArrayList // There are 3 files in this sample. MainActivity and ListAdapter are just // fictional setups. FlutterViewEngine is instructional and demonstrates the // various plumbing needed for a functioning FlutterView integration. /** * Main activity for this demo that shows a page with a `RecyclerView`. * * There are 3 files in this sample. MainActivity and ListAdapter are just fictional setups. * FlutterViewEngine is instructional and demonstrates the various plumbing needed for a functioning * FlutterView integration. */ class MainActivity : AppCompatActivity() { private lateinit var binding: ActivityMainBinding private lateinit var flutterViewEngine: FlutterViewEngine override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) binding = ActivityMainBinding.inflate(layoutInflater) setContentView(binding.root) // TODO: create a multi-engine version after // https://github.com/flutter/flutter/issues/72009 is built. val engine = FlutterEngine(applicationContext) engine.dartExecutor.executeDartEntrypoint( DartExecutor.DartEntrypoint( FlutterInjector.instance().flutterLoader().findAppBundlePath(), "showCell")) flutterViewEngine = FlutterViewEngine(engine) // The activity and FlutterView have different lifecycles. // Attach the activity right away but only start rendering when the // view is also scrolled into the screen. flutterViewEngine.attachToActivity(this) val layoutManager = LinearLayoutManager(this) val recyclerView = binding.recyclerView val adapter = ListAdapter(this, flutterViewEngine) recyclerView.layoutManager = layoutManager recyclerView.adapter = adapter // If the activity was restarted, keep track of the previous scroll // position and of the previous cell indices that were randomly selected // as Flutter cells to preserve immersion. layoutManager.onRestoreInstanceState(savedInstanceState?.getParcelable<Parcelable>("layoutManager")) val previousFlutterCellsArray = savedInstanceState?.getIntegerArrayList("adapter") if (previousFlutterCellsArray != null) { adapter.previousFlutterCells = TreeSet(previousFlutterCellsArray) } } override fun onSaveInstanceState(outState: Bundle) { super.onSaveInstanceState(outState) outState.putParcelable("layoutManager", binding.recyclerView.layoutManager?.onSaveInstanceState()) val previousFlutterCells = (binding.recyclerView.adapter as? ListAdapter)?.previousFlutterCells if (previousFlutterCells != null) { outState.putIntegerArrayList( "adapter", ArrayList(previousFlutterCells) ) } } override fun onDestroy() { super.onDestroy() flutterViewEngine.detachActivity() } // These below aren't used here in this demo but would be needed for Flutter plugins that may // consume these events. override fun onRequestPermissionsResult( requestCode: Int, permissions: Array<out String>, grantResults: IntArray ) { flutterViewEngine.onRequestPermissionsResult(requestCode, permissions, grantResults) super.onRequestPermissionsResult(requestCode, permissions, grantResults) } override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { flutterViewEngine.onActivityResult(requestCode, resultCode, data) super.onActivityResult(requestCode, resultCode, data) } override fun onUserLeaveHint() { flutterViewEngine.onUserLeaveHint() super.onUserLeaveHint() } }
samples/add_to_app/android_view/android_view/app/src/main/java/dev/flutter/example/androidView/MainActivity.kt/0
{ "file_path": "samples/add_to_app/android_view/android_view/app/src/main/java/dev/flutter/example/androidView/MainActivity.kt", "repo_id": "samples", "token_count": 1503 }
1,130
// Copyright 2020 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package dev.flutter.example.books import android.app.Application import io.flutter.embedding.engine.FlutterEngine import io.flutter.embedding.engine.FlutterEngineCache import io.flutter.embedding.engine.dart.DartExecutor class BookApplication: Application() { companion object { const val ENGINE_ID = "book_engine" } private lateinit var flutterEngine: FlutterEngine override fun onCreate() { super.onCreate() // This application reuses a single FlutterEngine instance throughout. // Create the FlutterEngine on application start. flutterEngine = FlutterEngine(this).apply{ dartExecutor.executeDartEntrypoint(DartExecutor.DartEntrypoint.createDefault()) } FlutterEngineCache.getInstance().put(ENGINE_ID, flutterEngine) } }
samples/add_to_app/books/android_books/app/src/main/java/dev/flutter/example/books/BookApplication.kt/0
{ "file_path": "samples/add_to_app/books/android_books/app/src/main/java/dev/flutter/example/books/BookApplication.kt", "repo_id": "samples", "token_count": 326 }
1,131
// Autogenerated from Pigeon (v1.0.1), do not edit directly. // See also: https://pub.dev/packages/pigeon // ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name // @dart = 2.12 import 'dart:async'; import 'dart:typed_data' show Uint8List, Int32List, Int64List, Float64List; import 'package:flutter/services.dart'; class Book { String? title; String? subtitle; String? author; String? summary; String? publishDate; int? pageCount; Thumbnail? thumbnail; Object encode() { final pigeonMap = <Object?, Object?>{}; pigeonMap['title'] = title; pigeonMap['subtitle'] = subtitle; pigeonMap['author'] = author; pigeonMap['summary'] = summary; pigeonMap['publishDate'] = publishDate; pigeonMap['pageCount'] = pageCount; pigeonMap['thumbnail'] = thumbnail == null ? null : thumbnail!.encode(); return pigeonMap; } static Book decode(Object message) { final pigeonMap = message as Map<Object?, Object?>; return Book() ..title = pigeonMap['title'] as String? ..subtitle = pigeonMap['subtitle'] as String? ..author = pigeonMap['author'] as String? ..summary = pigeonMap['summary'] as String? ..publishDate = pigeonMap['publishDate'] as String? ..pageCount = pigeonMap['pageCount'] as int? ..thumbnail = pigeonMap['thumbnail'] != null ? Thumbnail.decode(pigeonMap['thumbnail']!) : null; } } class Thumbnail { String? url; Object encode() { final pigeonMap = <Object?, Object?>{}; pigeonMap['url'] = url; return pigeonMap; } static Thumbnail decode(Object message) { final pigeonMap = message as Map<Object?, Object?>; return Thumbnail()..url = pigeonMap['url'] as String?; } } class _FlutterBookApiCodec extends StandardMessageCodec { const _FlutterBookApiCodec(); @override void writeValue(WriteBuffer buffer, Object? value) { if (value is Book) { buffer.putUint8(128); writeValue(buffer, value.encode()); } else { super.writeValue(buffer, value); } } @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { case 128: return Book.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); } } } abstract class FlutterBookApi { static const MessageCodec<Object?> codec = _FlutterBookApiCodec(); void displayBookDetails(Book book); static void setup(FlutterBookApi? api) { { const channel = BasicMessageChannel<Object?>( 'dev.flutter.pigeon.FlutterBookApi.displayBookDetails', codec); if (api == null) { channel.setMessageHandler(null); } else { // ignore: avoid_types_on_closure_parameters channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.FlutterBookApi.displayBookDetails was null.'); final List<Object?> args = (message as List<Object?>?)!; final Book? arg_book = args[0] as Book?; assert(arg_book != null, 'Argument for dev.flutter.pigeon.FlutterBookApi.displayBookDetails was null, expected non-null Book.'); api.displayBookDetails(arg_book!); return; }); } } } } class _HostBookApiCodec extends StandardMessageCodec { const _HostBookApiCodec(); @override void writeValue(WriteBuffer buffer, Object? value) { if (value is Book) { buffer.putUint8(128); writeValue(buffer, value.encode()); } else { super.writeValue(buffer, value); } } @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { case 128: return Book.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); } } } class HostBookApi { /// Constructor for [HostBookApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. HostBookApi({BinaryMessenger? binaryMessenger}) : _binaryMessenger = binaryMessenger; final BinaryMessenger? _binaryMessenger; static const MessageCodec<Object?> codec = _HostBookApiCodec(); Future<void> cancel() async { final channel = BasicMessageChannel<Object?>( 'dev.flutter.pigeon.HostBookApi.cancel', codec, binaryMessenger: _binaryMessenger); final Map<Object?, Object?>? replyMap = await channel.send(null) as Map<Object?, Object?>?; if (replyMap == null) { throw PlatformException( code: 'channel-error', message: 'Unable to establish connection on channel.', details: null, ); } else if (replyMap['error'] != null) { final error = (replyMap['error'] as Map<Object?, Object?>?)!; throw PlatformException( code: (error['code'] as String?)!, message: error['message'] as String?, details: error['details'], ); } } Future<void> finishEditingBook(Book arg_book) async { final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>( 'dev.flutter.pigeon.HostBookApi.finishEditingBook', codec, binaryMessenger: _binaryMessenger); final Map<Object?, Object?>? replyMap = await channel.send(<Object>[arg_book]) as Map<Object?, Object?>?; if (replyMap == null) { throw PlatformException( code: 'channel-error', message: 'Unable to establish connection on channel.', details: null, ); } else if (replyMap['error'] != null) { final Map<Object?, Object?> error = (replyMap['error'] as Map<Object?, Object?>?)!; throw PlatformException( code: (error['code'] as String?)!, message: error['message'] as String?, details: error['details'], ); } } }
samples/add_to_app/books/flutter_module_books/lib/api.dart/0
{ "file_path": "samples/add_to_app/books/flutter_module_books/lib/api.dart", "repo_id": "samples", "token_count": 2301 }
1,132
// Copyright 2019 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package dev.flutter.example.androidfullscreen import androidx.test.core.app.ActivityScenario import androidx.test.espresso.Espresso.onView import androidx.test.espresso.flutter.EspressoFlutter.onFlutterWidget import androidx.test.espresso.flutter.action.FlutterActions.click import androidx.test.espresso.flutter.assertion.FlutterAssertions.matches import androidx.test.espresso.flutter.matcher.FlutterMatchers import androidx.test.espresso.flutter.matcher.FlutterMatchers.withText import androidx.test.espresso.matcher.ViewMatchers.withId import androidx.test.ext.junit.runners.AndroidJUnit4 import org.junit.Before import org.junit.Test import org.junit.runner.RunWith @RunWith(AndroidJUnit4::class) class MainActivityTest { @Before fun setUp() { ActivityScenario.launch(MainActivity::class.java) } @Test fun flutterTextUpdatesOnClick() { // Launch Flutter module. onView(withId(R.id.launch_button)).perform(androidx.test.espresso.action.ViewActions.click()) // Verify state is inited correctly. onFlutterWidget(withText("Taps: 0")) .check(matches(FlutterMatchers.isExisting())) // Verify the increment button works. onFlutterWidget(withText("Tap me!")).perform(click()) onFlutterWidget(withText("Taps: 1")) .check(matches(FlutterMatchers.isExisting())) } @Test fun nativeTextViewUpdatesOnClick() { // Verify Android TextView is inited correctly. onView(withId(R.id.counter_label)).check( androidx.test.espresso.assertion.ViewAssertions.matches( // TODO(redbrogdon): This should be a check for 0 rather than 1. Because our state // management is hardcoded into the Application object, though, and that object is // reused across tests, this test begins with a counter already incremented by the // previous one. This situation can be corrected via DI or a number of other // approaches. androidx.test.espresso.matcher.ViewMatchers.withText("Current count: 1") ) ) // Launch Flutter module. onView(withId(R.id.launch_button)).perform(androidx.test.espresso.action.ViewActions.click()) // Increment count. onFlutterWidget(withText("Tap me!")).perform(click()) // Exit Flutter module and verify that the Android TextView is updated correctly. onFlutterWidget(withText("Exit this screen")).perform(click()) onView(withId(R.id.counter_label)).check( androidx.test.espresso.assertion.ViewAssertions.matches( // TODO(redbrogdon): s/2/1 androidx.test.espresso.matcher.ViewMatchers.withText("Current count: 2") ) ) } }
samples/add_to_app/fullscreen/android_fullscreen/app/src/androidTest/java/dev/flutter/example/androidfullscreen/ExampleInstrumentedTest.kt/0
{ "file_path": "samples/add_to_app/fullscreen/android_fullscreen/app/src/androidTest/java/dev/flutter/example/androidfullscreen/ExampleInstrumentedTest.kt", "repo_id": "samples", "token_count": 1158 }
1,133
plugins { id 'com.android.application' id 'kotlin-android' } android { signingConfigs { self { } } compileSdkVersion 33 defaultConfig { applicationId "dev.flutter.multipleflutters" minSdkVersion 24 targetSdkVersion 33 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' signingConfig debug.signingConfig } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' } namespace 'dev.flutter.multipleflutters' } dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation 'androidx.core:core-ktx:1.2.0' implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'com.google.android.material:material:1.1.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' testImplementation 'junit:junit:4.+' androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' implementation project(':flutter') }
samples/add_to_app/multiple_flutters/multiple_flutters_android/app/build.gradle/0
{ "file_path": "samples/add_to_app/multiple_flutters/multiple_flutters_android/app/build.gradle", "repo_id": "samples", "token_count": 598 }
1,134
// Copyright 2021 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import UIKit /// A UIViewController that hosts two instances of SingleFlutterViewController, splitting the screen /// between them. class DoubleFlutterViewController: UIViewController { private let topFlutter: SingleFlutterViewController = SingleFlutterViewController( withEntrypoint: "topMain") private let bottomFlutter: SingleFlutterViewController = SingleFlutterViewController( withEntrypoint: "bottomMain") override func viewDidLoad() { addChild(topFlutter) addChild(bottomFlutter) let safeFrame = self.view.safeAreaLayoutGuide.layoutFrame let halfHeight = safeFrame.height / 2.0 topFlutter.view.frame = CGRect( x: safeFrame.minX, y: safeFrame.minY, width: safeFrame.width, height: halfHeight) bottomFlutter.view.frame = CGRect( x: safeFrame.minX, y: topFlutter.view.frame.maxY, width: safeFrame.width, height: halfHeight) self.view.addSubview(topFlutter.view) self.view.addSubview(bottomFlutter.view) topFlutter.didMove(toParent: self) bottomFlutter.didMove(toParent: self) } }
samples/add_to_app/multiple_flutters/multiple_flutters_ios/MultipleFluttersIos/DoubleFlutterViewController.swift/0
{ "file_path": "samples/add_to_app/multiple_flutters/multiple_flutters_ios/MultipleFluttersIos/DoubleFlutterViewController.swift", "repo_id": "samples", "token_count": 394 }
1,135
apply plugin: 'com.android.application' apply plugin: 'kotlin-android' android { compileSdkVersion 33 defaultConfig { applicationId "dev.flutter.example.androidusingprebuiltmodule" minSdkVersion 19 targetSdkVersion 33 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" multiDexEnabled true } buildTypes { release { minifyEnabled false } } compileOptions { sourceCompatibility 1.8 targetCompatibility 1.8 } namespace 'dev.flutter.example.androidusingprebuiltmodule' } repositories { maven { // This maven repo is created when you run `flutter build aar`. It contains compiled code // and resources for flutter_module itself. url '../../flutter_module/build/host/outputs/repo' } maven { // This maven repo contains artifacts for Flutter's Android embedding. url 'https://storage.googleapis.com/download.flutter.io' } } dependencies { releaseImplementation ('dev.flutter.example.flutter_module:flutter_release:1.0@aar') { transitive = true } debugImplementation ('dev.flutter.example.flutter_module:flutter_debug:1.0@aar') { transitive = true } implementation 'androidx.multidex:multidex:2.0.1' implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation 'androidx.appcompat:appcompat:1.6.1' implementation 'androidx.core:core-ktx:1.10.1' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' testImplementation 'junit:junit:4.12' androidTestImplementation "com.google.truth:truth:1.1.3" androidTestImplementation 'androidx.test:runner:1.5.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' api 'androidx.test:core:1.5.0' }
samples/add_to_app/prebuilt_module/android_using_prebuilt_module/app/build.gradle/0
{ "file_path": "samples/add_to_app/prebuilt_module/android_using_prebuilt_module/app/build.gradle", "repo_id": "samples", "token_count": 771 }
1,136
org.gradle.jvmargs=-Xmx1536M android.useAndroidX=true android.enableJetifier=true
samples/android_splash_screen/android/gradle.properties/0
{ "file_path": "samples/android_splash_screen/android/gradle.properties", "repo_id": "samples", "token_count": 31 }
1,137
export 'animated_builder.dart'; export 'animated_container.dart'; export 'animation_controller.dart'; export 'custom_tween.dart'; export 'fade_transition.dart'; export 'page_route_builder.dart'; export 'tween_sequence.dart'; export 'tweens.dart';
samples/animations/lib/src/basics/basics.dart/0
{ "file_path": "samples/animations/lib/src/basics/basics.dart", "repo_id": "samples", "token_count": 89 }
1,138
export 'animated_list.dart'; export 'animated_positioned.dart'; export 'animated_switcher.dart'; export 'card_swipe.dart'; export 'carousel.dart'; export 'curved_animation.dart'; export 'expand_card.dart'; export 'flutter_animate.dart'; export 'focus_image.dart'; export 'hero_animation.dart'; export 'physics_card_drag.dart'; export 'repeating_animation.dart';
samples/animations/lib/src/misc/misc.dart/0
{ "file_path": "samples/animations/lib/src/misc/misc.dart", "repo_id": "samples", "token_count": 136 }
1,139
// Copyright 2021 The Flutter team. 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:animations/src/misc/focus_image.dart'; import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; Widget createFocusImageScreen() => const MaterialApp( home: FocusImageDemo(), ); void main() { group('FocusImage Tests', () { testWidgets('Size of ink well changes on tap', (tester) async { await tester.pumpWidget(createFocusImageScreen()); // Get the initial inkwell. final initialInkwell = tester.widget(find.byType(InkWell).at(0)); // Get the size of initial inkwell. var initialSize = tester.getSize(find.byWidget(initialInkwell)); // Tap on the ink well at index 0. await tester.tap(find.byType(InkWell).at(0)); await tester.pumpAndSettle(); // Get the final inkwell. final finalInkwell = tester.widget(find.byType(InkWell).at(0)); // Get the size of final inkwell. var finalSize = tester.getSize(find.byWidget(finalInkwell)); // Final size should be greater than initial size. expect( finalSize, greaterThan(initialSize), ); }); testWidgets('Final inkwell on tap goes back to the grid', (tester) async { await tester.pumpWidget(createFocusImageScreen()); // Tap on the ink well at index 0. await tester.tap(find.byType(InkWell).at(0)); await tester.pumpAndSettle(); // Tap on the final inkwell. await tester.tap(find.byType(InkWell)); await tester.pumpAndSettle(); // The grid view should appear again. expect(find.byType(Grid), findsOneWidget); }); }); }
samples/animations/test/misc/focus_image_test.dart/0
{ "file_path": "samples/animations/test/misc/focus_image_test.dart", "repo_id": "samples", "token_count": 664 }
1,140
# Use latest stable channel SDK. FROM dart:stable AS build # Copy shared code. WORKDIR /shared COPY /shared/. . # Copy server code. WORKDIR /server COPY /server/. . # Resolve app dependencies. RUN dart pub get # AOT compile app. RUN dart compile exe bin/server.dart -o bin/server # Build minimal serving image from AOT-compiled `/server` # and the pre-built AOT-runtime in the `/runtime/` directory of the base image. FROM scratch COPY --from=build /runtime/ / COPY --from=build /server/bin/server /app/bin/ # Start server. EXPOSE 8080 CMD ["/app/bin/server"]
samples/code_sharing/Dockerfile/0
{ "file_path": "samples/code_sharing/Dockerfile", "repo_id": "samples", "token_count": 194 }
1,141
#include "../../Flutter/Flutter-Release.xcconfig" #include "Warnings.xcconfig"
samples/code_sharing/client/macos/Runner/Configs/Release.xcconfig/0
{ "file_path": "samples/code_sharing/client/macos/Runner/Configs/Release.xcconfig", "repo_id": "samples", "token_count": 32 }
1,142
import 'package:freezed_annotation/freezed_annotation.dart'; part 'models.freezed.dart'; part 'models.g.dart'; @Freezed() class Increment with _$Increment { const factory Increment({required int by}) = _Increment; factory Increment.fromJson(Map<String, dynamic> json) => _$IncrementFromJson(json); } @Freezed() class Count with _$Count { const factory Count(int value) = _Count; factory Count.fromJson(Map<String, dynamic> json) => _$CountFromJson(json); }
samples/code_sharing/shared/lib/src/models.dart/0
{ "file_path": "samples/code_sharing/shared/lib/src/models.dart", "repo_id": "samples", "token_count": 167 }
1,143
/// Returns true if the given String is a valid email address. bool isValidEmail(String text) { return RegExp( r'(?<name>[a-zA-Z0-9]+)' r'@' r'(?<domain>[a-zA-Z0-9]+)' r'\.' r'(?<topLevelDomain>[a-zA-Z0-9]+)', ).hasMatch(text); }
samples/context_menus/lib/is_valid_email.dart/0
{ "file_path": "samples/context_menus/lib/is_valid_email.dart", "repo_id": "samples", "token_count": 127 }
1,144
import 'package:context_menus/anywhere_page.dart'; import 'package:context_menus/main.dart'; import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Right click works outside of text', (tester) async { await tester.pumpWidget(const MyApp()); // Navigate to the AnywherePage example. await tester.dragUntilVisible( find.text(AnywherePage.title), find.byType(ListView), const Offset(0.0, -100.0), ); await tester.pumpAndSettle(); await tester.tap(find.text(AnywherePage.title)); await tester.pumpAndSettle(); // Right click on the background of the app to show the context menu. final TestGesture gesture = await tester.startGesture( const Offset(100.0, 100.0), kind: PointerDeviceKind.mouse, buttons: kSecondaryMouseButton, ); await tester.pump(); await gesture.up(); await gesture.removePointer(); await tester.pumpAndSettle(); // The context menu is shown, with a custom back button. expect(find.byType(AdaptiveTextSelectionToolbar), findsOneWidget); expect(find.text('Back'), findsOneWidget); }); }
samples/context_menus/test/anywhere_page_test.dart/0
{ "file_path": "samples/context_menus/test/anywhere_page_test.dart", "repo_id": "samples", "token_count": 447 }
1,145
// Copyright 2020 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "include/federated_plugin_windows/federated_plugin_windows_plugin.h" // This must be included before many other Windows headers. #include <windows.h> #include <flutter/method_channel.h> #include <flutter/plugin_registrar_windows.h> #include <flutter/standard_method_codec.h> #include <map> #include <memory> namespace { class FederatedPluginWindowsPlugin : public flutter::Plugin { public: static void RegisterWithRegistrar(flutter::PluginRegistrarWindows *registrar); FederatedPluginWindowsPlugin(); virtual ~FederatedPluginWindowsPlugin(); private: // Called when a method is called on this plugin's channel from Dart. void HandleMethodCall( const flutter::MethodCall<flutter::EncodableValue> &method_call, std::unique_ptr<flutter::MethodResult<flutter::EncodableValue>> result); }; // static void FederatedPluginWindowsPlugin::RegisterWithRegistrar( flutter::PluginRegistrarWindows *registrar) { auto channel = std::make_unique<flutter::MethodChannel<flutter::EncodableValue>>( registrar->messenger(), "battery", &flutter::StandardMethodCodec::GetInstance()); auto plugin = std::make_unique<FederatedPluginWindowsPlugin>(); channel->SetMethodCallHandler( [plugin_pointer = plugin.get()](const auto &call, auto result) { plugin_pointer->HandleMethodCall(call, std::move(result)); }); registrar->AddPlugin(std::move(plugin)); } FederatedPluginWindowsPlugin::FederatedPluginWindowsPlugin() {} FederatedPluginWindowsPlugin::~FederatedPluginWindowsPlugin() {} void FederatedPluginWindowsPlugin::HandleMethodCall( const flutter::MethodCall<flutter::EncodableValue> &method_call, std::unique_ptr<flutter::MethodResult<flutter::EncodableValue>> result) { if (method_call.method_name().compare("getBatteryLevel") == 0) { SYSTEM_POWER_STATUS systemPower; // GetSystemPowerStatus will retrieve the power status of the system. if (GetSystemPowerStatus(&systemPower)) { int batteryLevel = systemPower.BatteryLifePercent; // The batteryLevel value in the range 0 to 100, or 255 if status is unknown. if (batteryLevel != 255) { flutter::EncodableValue response(batteryLevel); result->Success(&response); } else { result->Error("STATUS_UNAVAILABLE", "Not able to determine battery level."); } } else { result->Error("STATUS_UNAVAILABLE", "Not able to determine battery level."); } } else { result->NotImplemented(); } } } // namespace void FederatedPluginWindowsPluginRegisterWithRegistrar( FlutterDesktopPluginRegistrarRef registrar) { FederatedPluginWindowsPlugin::RegisterWithRegistrar( flutter::PluginRegistrarManager::GetInstance() ->GetRegistrar<flutter::PluginRegistrarWindows>(registrar)); }
samples/experimental/federated_plugin/federated_plugin_windows/windows/federated_plugin_windows_plugin.cpp/0
{ "file_path": "samples/experimental/federated_plugin/federated_plugin_windows/windows/federated_plugin_windows_plugin.cpp", "repo_id": "samples", "token_count": 986 }
1,146
// Copyright 2021 The Flutter team. 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/material.dart'; import 'package:linting_tool/layout/adaptive.dart'; import 'package:linting_tool/model/rules_store.dart'; import 'package:linting_tool/pages/default_rules_page.dart'; import 'package:linting_tool/theme/colors.dart'; import 'package:provider/provider.dart'; class DefaultLintsPage extends StatelessWidget { const DefaultLintsPage({super.key}); @override Widget build(BuildContext context) { return Consumer<RuleStore>( builder: (context, rulesStore, child) { if (rulesStore.isLoading) { return const CircularProgressIndicator.adaptive(); } final defaultSets = rulesStore.defaultProfiles; if (defaultSets.isNotEmpty) { final isDesktop = isDisplayLarge(context); final isTablet = isDisplayMedium(context); final startPadding = isTablet ? 60.0 : isDesktop ? 120.0 : 16.0; final endPadding = isTablet ? 60.0 : isDesktop ? 120.0 : 16.0; return ListView.separated( padding: EdgeInsetsDirectional.only( start: startPadding, end: endPadding, top: isDesktop ? 28 : 16, bottom: isDesktop ? kToolbarHeight : 16, ), cacheExtent: 5, itemCount: defaultSets.length, itemBuilder: (context, index) { final profile = defaultSets[index]; return ListTile( title: Text( profile.name, ), tileColor: AppColors.white50, onTap: () { Navigator.push<void>( context, MaterialPageRoute( builder: (context) => DefaultRulesPage(profile: profile), ), ); }, ); }, separatorBuilder: (context, index) => const SizedBox(height: 4), ); } return Column( mainAxisAlignment: MainAxisAlignment.center, children: [ Text(rulesStore.error ?? 'Failed to load rules.'), const SizedBox( height: 16.0, ), IconButton( onPressed: () => rulesStore.fetchRules(), icon: const Icon(Icons.refresh), ), ], ); }, ); } }
samples/experimental/linting_tool/lib/pages/default_lints_page.dart/0
{ "file_path": "samples/experimental/linting_tool/lib/pages/default_lints_page.dart", "repo_id": "samples", "token_count": 1373 }
1,147
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.jni_demo"> <application android:label="jni_demo" android:name="${applicationName}" android:icon="@mipmap/ic_launcher"> <activity android:name=".MainActivity" android:exported="true" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize"> <!-- Specifies an Android theme to apply to this Activity as soon as the Android process has started. This theme is visible to the user while the Flutter UI initializes. After that, this theme continues to determine the Window background behind the Flutter UI. --> <meta-data android:name="io.flutter.embedding.android.NormalTheme" android:resource="@style/NormalTheme" /> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name=".PermissionsRationaleActivity" android:exported="true" android:enabled="true"> <!-- (a) reference permissions resource --> <meta-data android:name="health_permissions" android:resource="@array/health_permissions" /> <!-- (b) handle intent --> <intent-filter> <action android:name="androidx.health.ACTION_SHOW_PERMISSIONS_RATIONALE" /> </intent-filter> </activity> <!-- Don't delete the meta-data below. This is used by the Flutter tool to generate GeneratedPluginRegistrant.java --> <meta-data android:name="flutterEmbedding" android:value="2" /> </application> <queries> <package android:name="com.google.android.apps.healthdata" /> </queries> </manifest>
samples/experimental/pedometer/example/android/app/src/main/AndroidManifest.xml/0
{ "file_path": "samples/experimental/pedometer/example/android/app/src/main/AndroidManifest.xml", "repo_id": "samples", "token_count": 1030 }
1,148
// Autogenerated by jnigen. DO NOT EDIT! // ignore_for_file: annotate_overrides // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names // ignore_for_file: file_names // ignore_for_file: lines_longer_than_80_chars // ignore_for_file: no_leading_underscores_for_local_identifiers // ignore_for_file: non_constant_identifier_names // ignore_for_file: overridden_fields // ignore_for_file: unnecessary_cast // ignore_for_file: unused_element // ignore_for_file: unused_field // ignore_for_file: unused_import // ignore_for_file: unused_local_variable // ignore_for_file: unused_shown_name // ignore_for_file: use_super_parameters import "dart:isolate" show ReceivePort; import "dart:ffi" as ffi; import "package:jni/internal_helpers_for_jnigen.dart"; import "package:jni/jni.dart" as jni; // Auto-generated initialization code. final ffi.Pointer<T> Function<T extends ffi.NativeType>(String sym) jniLookup = ProtectedJniExtensions.initGeneratedLibrary("health_connect"); /// from: androidx.health.connect.client.HealthConnectClient$Companion class HealthConnectClient_Companion extends jni.JObject { @override late final jni.JObjType<HealthConnectClient_Companion> $type = type; HealthConnectClient_Companion.fromRef( jni.JObjectPtr ref, ) : super.fromRef(ref); /// The type which includes information such as the signature of this class. static const type = $HealthConnectClient_CompanionType(); /// from: static public final java.lang.String DEFAULT_PROVIDER_PACKAGE_NAME static const DEFAULT_PROVIDER_PACKAGE_NAME = r"""com.google.android.apps.healthdata"""; /// from: static public final java.lang.String HEALTH_CONNECT_CLIENT_TAG static const HEALTH_CONNECT_CLIENT_TAG = r"""HealthConnectClient"""; static final _isAvailable = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "HealthConnectClient_Companion__isAvailable") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public final boolean isAvailable(android.content.Context context, java.util.List list) bool isAvailable( Context context, jni.JList<jni.JString> list, ) { return _isAvailable(reference, context.reference, list.reference).boolean; } static final _getOrCreate = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "HealthConnectClient_Companion__getOrCreate") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public final androidx.health.connect.client.HealthConnectClient getOrCreate(android.content.Context context, java.util.List list) /// The returned object must be released after use, by calling the [release] method. HealthConnectClient getOrCreate( Context context, jni.JList<jni.JString> list, ) { return const $HealthConnectClientType().fromRef( _getOrCreate(reference, context.reference, list.reference).object); } static final _isAvailable1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "HealthConnectClient_Companion__isAvailable1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public final boolean isAvailable(android.content.Context context) bool isAvailable1( Context context, ) { return _isAvailable1(reference, context.reference).boolean; } static final _getOrCreate1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "HealthConnectClient_Companion__getOrCreate1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public final androidx.health.connect.client.HealthConnectClient getOrCreate(android.content.Context context) /// The returned object must be released after use, by calling the [release] method. HealthConnectClient getOrCreate1( Context context, ) { return const $HealthConnectClientType() .fromRef(_getOrCreate1(reference, context.reference).object); } } final class $HealthConnectClient_CompanionType extends jni.JObjType<HealthConnectClient_Companion> { const $HealthConnectClient_CompanionType(); @override String get signature => r"Landroidx/health/connect/client/HealthConnectClient$Companion;"; @override HealthConnectClient_Companion fromRef(jni.JObjectPtr ref) => HealthConnectClient_Companion.fromRef(ref); @override jni.JObjType get superType => const jni.JObjectType(); @override final superCount = 1; @override int get hashCode => ($HealthConnectClient_CompanionType).hashCode; @override bool operator ==(Object other) { return other.runtimeType == ($HealthConnectClient_CompanionType) && other is $HealthConnectClient_CompanionType; } } /// from: androidx.health.connect.client.HealthConnectClient class HealthConnectClient extends jni.JObject { @override late final jni.JObjType<HealthConnectClient> $type = type; HealthConnectClient.fromRef( jni.JObjectPtr ref, ) : super.fromRef(ref); /// The type which includes information such as the signature of this class. static const type = $HealthConnectClientType(); static final _get_Companion = jniLookup<ffi.NativeFunction<jni.JniResult Function()>>( "get_HealthConnectClient__Companion") .asFunction<jni.JniResult Function()>(); /// from: static public final androidx.health.connect.client.HealthConnectClient$Companion Companion /// The returned object must be released after use, by calling the [release] method. static HealthConnectClient_Companion get Companion => const $HealthConnectClient_CompanionType() .fromRef(_get_Companion().object); /// from: static public final java.lang.String DEFAULT_PROVIDER_PACKAGE_NAME static const DEFAULT_PROVIDER_PACKAGE_NAME = r"""com.google.android.apps.healthdata"""; /// from: static public final java.lang.String HEALTH_CONNECT_CLIENT_TAG static const HEALTH_CONNECT_CLIENT_TAG = r"""HealthConnectClient"""; static final _getPermissionController = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "HealthConnectClient__getPermissionController") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract androidx.health.connect.client.PermissionController getPermissionController() /// The returned object must be released after use, by calling the [release] method. PermissionController getPermissionController() { return const $PermissionControllerType() .fromRef(_getPermissionController(reference).object); } static final _insertRecords = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("HealthConnectClient__insertRecords") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.lang.Object insertRecords(java.util.List list, kotlin.coroutines.Continuation continuation) /// The returned object must be released after use, by calling the [release] method. Future<jni.JObject> insertRecords( jni.JList<jni.JObject> list, ) async { final $p = ReceivePort(); final $c = jni.JObject.fromRef(ProtectedJniExtensions.newPortContinuation($p)); _insertRecords(reference, list.reference, $c.reference).object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const jni.JObjectType().getClass().reference; if (!jni.Jni.env.IsInstanceOf($o, $k)) { throw "Failed"; } return const jni.JObjectType().fromRef($o); } static final _updateRecords = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("HealthConnectClient__updateRecords") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.lang.Object updateRecords(java.util.List list, kotlin.coroutines.Continuation continuation) /// The returned object must be released after use, by calling the [release] method. Future<jni.JObject> updateRecords( jni.JList<jni.JObject> list, ) async { final $p = ReceivePort(); final $c = jni.JObject.fromRef(ProtectedJniExtensions.newPortContinuation($p)); _updateRecords(reference, list.reference, $c.reference).object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const jni.JObjectType().getClass().reference; if (!jni.Jni.env.IsInstanceOf($o, $k)) { throw "Failed"; } return const jni.JObjectType().fromRef($o); } static final _deleteRecords = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("HealthConnectClient__deleteRecords") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.lang.Object deleteRecords(kotlin.reflect.KClass kClass, java.util.List list, java.util.List list1, kotlin.coroutines.Continuation continuation) /// The returned object must be released after use, by calling the [release] method. Future<jni.JObject> deleteRecords( jni.JObject kClass, jni.JList<jni.JString> list, jni.JList<jni.JString> list1, ) async { final $p = ReceivePort(); final $c = jni.JObject.fromRef(ProtectedJniExtensions.newPortContinuation($p)); _deleteRecords(reference, kClass.reference, list.reference, list1.reference, $c.reference) .object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const jni.JObjectType().getClass().reference; if (!jni.Jni.env.IsInstanceOf($o, $k)) { throw "Failed"; } return const jni.JObjectType().fromRef($o); } static final _deleteRecords1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "HealthConnectClient__deleteRecords1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.lang.Object deleteRecords(kotlin.reflect.KClass kClass, androidx.health.connect.client.time.TimeRangeFilter timeRangeFilter, kotlin.coroutines.Continuation continuation) /// The returned object must be released after use, by calling the [release] method. Future<jni.JObject> deleteRecords1( jni.JObject kClass, TimeRangeFilter timeRangeFilter, ) async { final $p = ReceivePort(); final $c = jni.JObject.fromRef(ProtectedJniExtensions.newPortContinuation($p)); _deleteRecords1(reference, kClass.reference, timeRangeFilter.reference, $c.reference) .object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const jni.JObjectType().getClass().reference; if (!jni.Jni.env.IsInstanceOf($o, $k)) { throw "Failed"; } return const jni.JObjectType().fromRef($o); } static final _readRecord = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("HealthConnectClient__readRecord") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.lang.Object readRecord(kotlin.reflect.KClass kClass, java.lang.String string, kotlin.coroutines.Continuation continuation) /// The returned object must be released after use, by calling the [release] method. Future<jni.JObject> readRecord<$T extends jni.JObject>( jni.JObject kClass, jni.JString string, { required jni.JObjType<$T> T, }) async { final $p = ReceivePort(); final $c = jni.JObject.fromRef(ProtectedJniExtensions.newPortContinuation($p)); _readRecord(reference, kClass.reference, string.reference, $c.reference) .object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const jni.JObjectType().getClass().reference; if (!jni.Jni.env.IsInstanceOf($o, $k)) { throw "Failed"; } return const jni.JObjectType().fromRef($o); } static final _readRecords = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("HealthConnectClient__readRecords") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.lang.Object readRecords(androidx.health.connect.client.request.ReadRecordsRequest readRecordsRequest, kotlin.coroutines.Continuation continuation) /// The returned object must be released after use, by calling the [release] method. Future<jni.JObject> readRecords<$T extends jni.JObject>( ReadRecordsRequest<$T> readRecordsRequest, { jni.JObjType<$T>? T, }) async { T ??= jni.lowestCommonSuperType([ (readRecordsRequest.$type as $ReadRecordsRequestType).T, ]) as jni.JObjType<$T>; final $p = ReceivePort(); final $c = jni.JObject.fromRef(ProtectedJniExtensions.newPortContinuation($p)); _readRecords(reference, readRecordsRequest.reference, $c.reference).object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const jni.JObjectType().getClass().reference; if (!jni.Jni.env.IsInstanceOf($o, $k)) { throw "Failed"; } return const jni.JObjectType().fromRef($o); } static final _aggregate = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("HealthConnectClient__aggregate") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.lang.Object aggregate(androidx.health.connect.client.request.AggregateRequest aggregateRequest, kotlin.coroutines.Continuation continuation) /// The returned object must be released after use, by calling the [release] method. Future<AggregationResult> aggregate( AggregateRequest aggregateRequest, ) async { final $p = ReceivePort(); final $c = jni.JObject.fromRef(ProtectedJniExtensions.newPortContinuation($p)); _aggregate(reference, aggregateRequest.reference, $c.reference).object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const $AggregationResultType().getClass().reference; if (!jni.Jni.env.IsInstanceOf($o, $k)) { throw "Failed"; } return const $AggregationResultType().fromRef($o); } static final _aggregateGroupByDuration = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "HealthConnectClient__aggregateGroupByDuration") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.lang.Object aggregateGroupByDuration(androidx.health.connect.client.request.AggregateGroupByDurationRequest aggregateGroupByDurationRequest, kotlin.coroutines.Continuation continuation) /// The returned object must be released after use, by calling the [release] method. Future<jni.JList<jni.JObject>> aggregateGroupByDuration( AggregateGroupByDurationRequest aggregateGroupByDurationRequest, ) async { final $p = ReceivePort(); final $c = jni.JObject.fromRef(ProtectedJniExtensions.newPortContinuation($p)); _aggregateGroupByDuration( reference, aggregateGroupByDurationRequest.reference, $c.reference) .object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const jni.JListType(jni.JObjectType()).getClass().reference; if (!jni.Jni.env.IsInstanceOf($o, $k)) { throw "Failed"; } return const jni.JListType(jni.JObjectType()).fromRef($o); } static final _aggregateGroupByPeriod = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "HealthConnectClient__aggregateGroupByPeriod") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.lang.Object aggregateGroupByPeriod(androidx.health.connect.client.request.AggregateGroupByPeriodRequest aggregateGroupByPeriodRequest, kotlin.coroutines.Continuation continuation) /// The returned object must be released after use, by calling the [release] method. Future<jni.JList<jni.JObject>> aggregateGroupByPeriod( AggregateGroupByPeriodRequest aggregateGroupByPeriodRequest, ) async { final $p = ReceivePort(); final $c = jni.JObject.fromRef(ProtectedJniExtensions.newPortContinuation($p)); _aggregateGroupByPeriod( reference, aggregateGroupByPeriodRequest.reference, $c.reference) .object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const jni.JListType(jni.JObjectType()).getClass().reference; if (!jni.Jni.env.IsInstanceOf($o, $k)) { throw "Failed"; } return const jni.JListType(jni.JObjectType()).fromRef($o); } static final _getChangesToken = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "HealthConnectClient__getChangesToken") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.lang.Object getChangesToken(androidx.health.connect.client.request.ChangesTokenRequest changesTokenRequest, kotlin.coroutines.Continuation continuation) /// The returned object must be released after use, by calling the [release] method. Future<jni.JString> getChangesToken( ChangesTokenRequest changesTokenRequest, ) async { final $p = ReceivePort(); final $c = jni.JObject.fromRef(ProtectedJniExtensions.newPortContinuation($p)); _getChangesToken(reference, changesTokenRequest.reference, $c.reference) .object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const jni.JStringType().getClass().reference; if (!jni.Jni.env.IsInstanceOf($o, $k)) { throw "Failed"; } return const jni.JStringType().fromRef($o); } static final _registerForDataNotifications = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "HealthConnectClient__registerForDataNotifications") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.lang.Object registerForDataNotifications(java.lang.String string, java.lang.Iterable iterable, kotlin.coroutines.Continuation continuation) /// The returned object must be released after use, by calling the [release] method. Future<jni.JObject> registerForDataNotifications( jni.JString string, jni.JObject iterable, ) async { final $p = ReceivePort(); final $c = jni.JObject.fromRef(ProtectedJniExtensions.newPortContinuation($p)); _registerForDataNotifications( reference, string.reference, iterable.reference, $c.reference) .object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const jni.JObjectType().getClass().reference; if (!jni.Jni.env.IsInstanceOf($o, $k)) { throw "Failed"; } return const jni.JObjectType().fromRef($o); } static final _unregisterFromDataNotifications = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "HealthConnectClient__unregisterFromDataNotifications") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.lang.Object unregisterFromDataNotifications(java.lang.String string, kotlin.coroutines.Continuation continuation) /// The returned object must be released after use, by calling the [release] method. Future<jni.JObject> unregisterFromDataNotifications( jni.JString string, ) async { final $p = ReceivePort(); final $c = jni.JObject.fromRef(ProtectedJniExtensions.newPortContinuation($p)); _unregisterFromDataNotifications(reference, string.reference, $c.reference) .object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const jni.JObjectType().getClass().reference; if (!jni.Jni.env.IsInstanceOf($o, $k)) { throw "Failed"; } return const jni.JObjectType().fromRef($o); } static final _getChanges = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("HealthConnectClient__getChanges") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.lang.Object getChanges(java.lang.String string, kotlin.coroutines.Continuation continuation) /// The returned object must be released after use, by calling the [release] method. Future<jni.JObject> getChanges( jni.JString string, ) async { final $p = ReceivePort(); final $c = jni.JObject.fromRef(ProtectedJniExtensions.newPortContinuation($p)); _getChanges(reference, string.reference, $c.reference).object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const jni.JObjectType().getClass().reference; if (!jni.Jni.env.IsInstanceOf($o, $k)) { throw "Failed"; } return const jni.JObjectType().fromRef($o); } static final _isAvailable = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("HealthConnectClient__isAvailable") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: static public boolean isAvailable(android.content.Context context, java.util.List list) static bool isAvailable( Context context, jni.JList<jni.JString> list, ) { return _isAvailable(context.reference, list.reference).boolean; } static final _getOrCreate = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("HealthConnectClient__getOrCreate") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: static public androidx.health.connect.client.HealthConnectClient getOrCreate(android.content.Context context, java.util.List list) /// The returned object must be released after use, by calling the [release] method. static HealthConnectClient getOrCreate( Context context, jni.JList<jni.JString> list, ) { return const $HealthConnectClientType() .fromRef(_getOrCreate(context.reference, list.reference).object); } static final _isAvailable1 = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "HealthConnectClient__isAvailable1") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: static public boolean isAvailable(android.content.Context context) static bool isAvailable1( Context context, ) { return _isAvailable1(context.reference).boolean; } static final _getOrCreate1 = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "HealthConnectClient__getOrCreate1") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: static public androidx.health.connect.client.HealthConnectClient getOrCreate(android.content.Context context) /// The returned object must be released after use, by calling the [release] method. static HealthConnectClient getOrCreate1( Context context, ) { return const $HealthConnectClientType() .fromRef(_getOrCreate1(context.reference).object); } } final class $HealthConnectClientType extends jni.JObjType<HealthConnectClient> { const $HealthConnectClientType(); @override String get signature => r"Landroidx/health/connect/client/HealthConnectClient;"; @override HealthConnectClient fromRef(jni.JObjectPtr ref) => HealthConnectClient.fromRef(ref); @override jni.JObjType get superType => const jni.JObjectType(); @override final superCount = 1; @override int get hashCode => ($HealthConnectClientType).hashCode; @override bool operator ==(Object other) { return other.runtimeType == ($HealthConnectClientType) && other is $HealthConnectClientType; } } /// from: androidx.health.connect.client.PermissionController$Companion class PermissionController_Companion extends jni.JObject { @override late final jni.JObjType<PermissionController_Companion> $type = type; PermissionController_Companion.fromRef( jni.JObjectPtr ref, ) : super.fromRef(ref); /// The type which includes information such as the signature of this class. static const type = $PermissionController_CompanionType(); static final _createRequestPermissionResultContract = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "PermissionController_Companion__createRequestPermissionResultContract") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public final androidx.activity.result.contract.ActivityResultContract createRequestPermissionResultContract(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. jni.JObject createRequestPermissionResultContract( jni.JString string, ) { return const jni.JObjectType().fromRef( _createRequestPermissionResultContract(reference, string.reference) .object); } static final _createRequestPermissionResultContract1 = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "PermissionController_Companion__createRequestPermissionResultContract1") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public final androidx.activity.result.contract.ActivityResultContract createRequestPermissionResultContract() /// The returned object must be released after use, by calling the [release] method. jni.JObject createRequestPermissionResultContract1() { return const jni.JObjectType() .fromRef(_createRequestPermissionResultContract1(reference).object); } } final class $PermissionController_CompanionType extends jni.JObjType<PermissionController_Companion> { const $PermissionController_CompanionType(); @override String get signature => r"Landroidx/health/connect/client/PermissionController$Companion;"; @override PermissionController_Companion fromRef(jni.JObjectPtr ref) => PermissionController_Companion.fromRef(ref); @override jni.JObjType get superType => const jni.JObjectType(); @override final superCount = 1; @override int get hashCode => ($PermissionController_CompanionType).hashCode; @override bool operator ==(Object other) { return other.runtimeType == ($PermissionController_CompanionType) && other is $PermissionController_CompanionType; } } /// from: androidx.health.connect.client.PermissionController class PermissionController extends jni.JObject { @override late final jni.JObjType<PermissionController> $type = type; PermissionController.fromRef( jni.JObjectPtr ref, ) : super.fromRef(ref); /// The type which includes information such as the signature of this class. static const type = $PermissionControllerType(); static final _get_Companion = jniLookup<ffi.NativeFunction<jni.JniResult Function()>>( "get_PermissionController__Companion") .asFunction<jni.JniResult Function()>(); /// from: static public final androidx.health.connect.client.PermissionController$Companion Companion /// The returned object must be released after use, by calling the [release] method. static PermissionController_Companion get Companion => const $PermissionController_CompanionType() .fromRef(_get_Companion().object); static final _getGrantedPermissions = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "PermissionController__getGrantedPermissions") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.lang.Object getGrantedPermissions(java.util.Set set, kotlin.coroutines.Continuation continuation) /// The returned object must be released after use, by calling the [release] method. Future<jni.JSet<jni.JObject>> getGrantedPermissions( jni.JSet<jni.JObject> set0, ) async { final $p = ReceivePort(); final $c = jni.JObject.fromRef(ProtectedJniExtensions.newPortContinuation($p)); _getGrantedPermissions(reference, set0.reference, $c.reference).object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const jni.JSetType(jni.JObjectType()).getClass().reference; if (!jni.Jni.env.IsInstanceOf($o, $k)) { throw "Failed"; } return const jni.JSetType(jni.JObjectType()).fromRef($o); } static final _revokeAllPermissions = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "PermissionController__revokeAllPermissions") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.lang.Object revokeAllPermissions(kotlin.coroutines.Continuation continuation) /// The returned object must be released after use, by calling the [release] method. Future<jni.JObject> revokeAllPermissions() async { final $p = ReceivePort(); final $c = jni.JObject.fromRef(ProtectedJniExtensions.newPortContinuation($p)); _revokeAllPermissions(reference, $c.reference).object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const jni.JObjectType().getClass().reference; if (!jni.Jni.env.IsInstanceOf($o, $k)) { throw "Failed"; } return const jni.JObjectType().fromRef($o); } static final _createRequestPermissionResultContract = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "PermissionController__createRequestPermissionResultContract") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: static public androidx.activity.result.contract.ActivityResultContract createRequestPermissionResultContract(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. static jni.JObject createRequestPermissionResultContract( jni.JString string, ) { return const jni.JObjectType().fromRef( _createRequestPermissionResultContract(string.reference).object); } static final _createRequestPermissionResultContract1 = jniLookup<ffi.NativeFunction<jni.JniResult Function()>>( "PermissionController__createRequestPermissionResultContract1") .asFunction<jni.JniResult Function()>(); /// from: static public androidx.activity.result.contract.ActivityResultContract createRequestPermissionResultContract() /// The returned object must be released after use, by calling the [release] method. static jni.JObject createRequestPermissionResultContract1() { return const jni.JObjectType() .fromRef(_createRequestPermissionResultContract1().object); } } final class $PermissionControllerType extends jni.JObjType<PermissionController> { const $PermissionControllerType(); @override String get signature => r"Landroidx/health/connect/client/PermissionController;"; @override PermissionController fromRef(jni.JObjectPtr ref) => PermissionController.fromRef(ref); @override jni.JObjType get superType => const jni.JObjectType(); @override final superCount = 1; @override int get hashCode => ($PermissionControllerType).hashCode; @override bool operator ==(Object other) { return other.runtimeType == ($PermissionControllerType) && other is $PermissionControllerType; } } /// from: androidx.health.connect.client.records.StepsRecord$Companion class StepsRecord_Companion extends jni.JObject { @override late final jni.JObjType<StepsRecord_Companion> $type = type; StepsRecord_Companion.fromRef( jni.JObjectPtr ref, ) : super.fromRef(ref); /// The type which includes information such as the signature of this class. static const type = $StepsRecord_CompanionType(); static final _new0 = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "StepsRecord_Companion__new0") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void <init>(kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) /// The returned object must be released after use, by calling the [release] method. factory StepsRecord_Companion( jni.JObject defaultConstructorMarker, ) { return StepsRecord_Companion.fromRef( _new0(defaultConstructorMarker.reference).object); } } final class $StepsRecord_CompanionType extends jni.JObjType<StepsRecord_Companion> { const $StepsRecord_CompanionType(); @override String get signature => r"Landroidx/health/connect/client/records/StepsRecord$Companion;"; @override StepsRecord_Companion fromRef(jni.JObjectPtr ref) => StepsRecord_Companion.fromRef(ref); @override jni.JObjType get superType => const jni.JObjectType(); @override final superCount = 1; @override int get hashCode => ($StepsRecord_CompanionType).hashCode; @override bool operator ==(Object other) { return other.runtimeType == ($StepsRecord_CompanionType) && other is $StepsRecord_CompanionType; } } /// from: androidx.health.connect.client.records.StepsRecord class StepsRecord extends jni.JObject { @override late final jni.JObjType<StepsRecord> $type = type; StepsRecord.fromRef( jni.JObjectPtr ref, ) : super.fromRef(ref); /// The type which includes information such as the signature of this class. static const type = $StepsRecordType(); static final _get_Companion = jniLookup<ffi.NativeFunction<jni.JniResult Function()>>( "get_StepsRecord__Companion") .asFunction<jni.JniResult Function()>(); /// from: static public final androidx.health.connect.client.records.StepsRecord$Companion Companion /// The returned object must be released after use, by calling the [release] method. static StepsRecord_Companion get Companion => const $StepsRecord_CompanionType().fromRef(_get_Companion().object); static final _get_COUNT_TOTAL = jniLookup<ffi.NativeFunction<jni.JniResult Function()>>( "get_StepsRecord__COUNT_TOTAL") .asFunction<jni.JniResult Function()>(); /// from: static public final androidx.health.connect.client.aggregate.AggregateMetric COUNT_TOTAL /// The returned object must be released after use, by calling the [release] method. static AggregateMetric<jni.JLong> get COUNT_TOTAL => const $AggregateMetricType(jni.JLongType()) .fromRef(_get_COUNT_TOTAL().object); static final _new0 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Int64, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("StepsRecord__new0") .asFunction< jni.JniResult Function( int, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void <init>(long j, java.time.Instant instant, java.time.ZoneOffset zoneOffset, java.time.Instant instant1, java.time.ZoneOffset zoneOffset1, androidx.health.connect.client.records.metadata.Metadata metadata) /// The returned object must be released after use, by calling the [release] method. factory StepsRecord( int j, Instant instant, jni.JObject zoneOffset, Instant instant1, jni.JObject zoneOffset1, jni.JObject metadata, ) { return StepsRecord.fromRef(_new0(j, instant.reference, zoneOffset.reference, instant1.reference, zoneOffset1.reference, metadata.reference) .object); } static final _new1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Int64, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>("StepsRecord__new1") .asFunction< jni.JniResult Function( int, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public void <init>(long j, java.time.Instant instant, java.time.ZoneOffset zoneOffset, java.time.Instant instant1, java.time.ZoneOffset zoneOffset1, androidx.health.connect.client.records.metadata.Metadata metadata, int i, kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) /// The returned object must be released after use, by calling the [release] method. factory StepsRecord.new1( int j, Instant instant, jni.JObject zoneOffset, Instant instant1, jni.JObject zoneOffset1, jni.JObject metadata, int i, jni.JObject defaultConstructorMarker, ) { return StepsRecord.fromRef(_new1( j, instant.reference, zoneOffset.reference, instant1.reference, zoneOffset1.reference, metadata.reference, i, defaultConstructorMarker.reference) .object); } static final _getCount = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "StepsRecord__getCount") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public final long getCount() int getCount() { return _getCount(reference).long; } static final _getStartTime = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "StepsRecord__getStartTime") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public java.time.Instant getStartTime() /// The returned object must be released after use, by calling the [release] method. Instant getStartTime() { return const $InstantType().fromRef(_getStartTime(reference).object); } static final _getStartZoneOffset = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "StepsRecord__getStartZoneOffset") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public java.time.ZoneOffset getStartZoneOffset() /// The returned object must be released after use, by calling the [release] method. jni.JObject getStartZoneOffset() { return const jni.JObjectType() .fromRef(_getStartZoneOffset(reference).object); } static final _getEndTime = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "StepsRecord__getEndTime") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public java.time.Instant getEndTime() /// The returned object must be released after use, by calling the [release] method. Instant getEndTime() { return const $InstantType().fromRef(_getEndTime(reference).object); } static final _getEndZoneOffset = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "StepsRecord__getEndZoneOffset") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public java.time.ZoneOffset getEndZoneOffset() /// The returned object must be released after use, by calling the [release] method. jni.JObject getEndZoneOffset() { return const jni.JObjectType().fromRef(_getEndZoneOffset(reference).object); } static final _getMetadata = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "StepsRecord__getMetadata") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public androidx.health.connect.client.records.metadata.Metadata getMetadata() /// The returned object must be released after use, by calling the [release] method. jni.JObject getMetadata() { return const jni.JObjectType().fromRef(_getMetadata(reference).object); } static final _equals1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("StepsRecord__equals1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean equals(java.lang.Object object) bool equals1( jni.JObject object, ) { return _equals1(reference, object.reference).boolean; } static final _hashCode1 = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "StepsRecord__hashCode1") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public int hashCode() int hashCode1() { return _hashCode1(reference).integer; } } final class $StepsRecordType extends jni.JObjType<StepsRecord> { const $StepsRecordType(); @override String get signature => r"Landroidx/health/connect/client/records/StepsRecord;"; @override StepsRecord fromRef(jni.JObjectPtr ref) => StepsRecord.fromRef(ref); @override jni.JObjType get superType => const jni.JObjectType(); @override final superCount = 1; @override int get hashCode => ($StepsRecordType).hashCode; @override bool operator ==(Object other) { return other.runtimeType == ($StepsRecordType) && other is $StepsRecordType; } } /// from: androidx.health.connect.client.time.TimeRangeFilter$Companion class TimeRangeFilter_Companion extends jni.JObject { @override late final jni.JObjType<TimeRangeFilter_Companion> $type = type; TimeRangeFilter_Companion.fromRef( jni.JObjectPtr ref, ) : super.fromRef(ref); /// The type which includes information such as the signature of this class. static const type = $TimeRangeFilter_CompanionType(); static final _between = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("TimeRangeFilter_Companion__between") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public final androidx.health.connect.client.time.TimeRangeFilter between(java.time.Instant instant, java.time.Instant instant1) /// The returned object must be released after use, by calling the [release] method. TimeRangeFilter between( Instant instant, Instant instant1, ) { return const $TimeRangeFilterType().fromRef( _between(reference, instant.reference, instant1.reference).object); } static final _between1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "TimeRangeFilter_Companion__between1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public final androidx.health.connect.client.time.TimeRangeFilter between(java.time.LocalDateTime localDateTime, java.time.LocalDateTime localDateTime1) /// The returned object must be released after use, by calling the [release] method. TimeRangeFilter between1( jni.JObject localDateTime, jni.JObject localDateTime1, ) { return const $TimeRangeFilterType().fromRef( _between1(reference, localDateTime.reference, localDateTime1.reference) .object); } static final _before = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("TimeRangeFilter_Companion__before") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public final androidx.health.connect.client.time.TimeRangeFilter before(java.time.Instant instant) /// The returned object must be released after use, by calling the [release] method. TimeRangeFilter before( Instant instant, ) { return const $TimeRangeFilterType() .fromRef(_before(reference, instant.reference).object); } static final _before1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("TimeRangeFilter_Companion__before1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public final androidx.health.connect.client.time.TimeRangeFilter before(java.time.LocalDateTime localDateTime) /// The returned object must be released after use, by calling the [release] method. TimeRangeFilter before1( jni.JObject localDateTime, ) { return const $TimeRangeFilterType() .fromRef(_before1(reference, localDateTime.reference).object); } static final _after = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("TimeRangeFilter_Companion__after") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public final androidx.health.connect.client.time.TimeRangeFilter after(java.time.Instant instant) /// The returned object must be released after use, by calling the [release] method. TimeRangeFilter after( Instant instant, ) { return const $TimeRangeFilterType() .fromRef(_after(reference, instant.reference).object); } static final _after1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("TimeRangeFilter_Companion__after1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public final androidx.health.connect.client.time.TimeRangeFilter after(java.time.LocalDateTime localDateTime) /// The returned object must be released after use, by calling the [release] method. TimeRangeFilter after1( jni.JObject localDateTime, ) { return const $TimeRangeFilterType() .fromRef(_after1(reference, localDateTime.reference).object); } static final _new0 = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "TimeRangeFilter_Companion__new0") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void <init>(kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) /// The returned object must be released after use, by calling the [release] method. factory TimeRangeFilter_Companion( jni.JObject defaultConstructorMarker, ) { return TimeRangeFilter_Companion.fromRef( _new0(defaultConstructorMarker.reference).object); } } final class $TimeRangeFilter_CompanionType extends jni.JObjType<TimeRangeFilter_Companion> { const $TimeRangeFilter_CompanionType(); @override String get signature => r"Landroidx/health/connect/client/time/TimeRangeFilter$Companion;"; @override TimeRangeFilter_Companion fromRef(jni.JObjectPtr ref) => TimeRangeFilter_Companion.fromRef(ref); @override jni.JObjType get superType => const jni.JObjectType(); @override final superCount = 1; @override int get hashCode => ($TimeRangeFilter_CompanionType).hashCode; @override bool operator ==(Object other) { return other.runtimeType == ($TimeRangeFilter_CompanionType) && other is $TimeRangeFilter_CompanionType; } } /// from: androidx.health.connect.client.time.TimeRangeFilter class TimeRangeFilter extends jni.JObject { @override late final jni.JObjType<TimeRangeFilter> $type = type; TimeRangeFilter.fromRef( jni.JObjectPtr ref, ) : super.fromRef(ref); /// The type which includes information such as the signature of this class. static const type = $TimeRangeFilterType(); static final _get_Companion = jniLookup<ffi.NativeFunction<jni.JniResult Function()>>( "get_TimeRangeFilter__Companion") .asFunction<jni.JniResult Function()>(); /// from: static public final androidx.health.connect.client.time.TimeRangeFilter$Companion Companion /// The returned object must be released after use, by calling the [release] method. static TimeRangeFilter_Companion get Companion => const $TimeRangeFilter_CompanionType().fromRef(_get_Companion().object); static final _new0 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("TimeRangeFilter__new0") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void <init>(java.time.Instant instant, java.time.Instant instant1, java.time.LocalDateTime localDateTime, java.time.LocalDateTime localDateTime1) /// The returned object must be released after use, by calling the [release] method. factory TimeRangeFilter( Instant instant, Instant instant1, jni.JObject localDateTime, jni.JObject localDateTime1, ) { return TimeRangeFilter.fromRef(_new0(instant.reference, instant1.reference, localDateTime.reference, localDateTime1.reference) .object); } static final _new1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>("TimeRangeFilter__new1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public void <init>(java.time.Instant instant, java.time.Instant instant1, java.time.LocalDateTime localDateTime, java.time.LocalDateTime localDateTime1, int i, kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) /// The returned object must be released after use, by calling the [release] method. factory TimeRangeFilter.new1( Instant instant, Instant instant1, jni.JObject localDateTime, jni.JObject localDateTime1, int i, jni.JObject defaultConstructorMarker, ) { return TimeRangeFilter.fromRef(_new1( instant.reference, instant1.reference, localDateTime.reference, localDateTime1.reference, i, defaultConstructorMarker.reference) .object); } static final _equals1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("TimeRangeFilter__equals1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean equals(java.lang.Object object) bool equals1( jni.JObject object, ) { return _equals1(reference, object.reference).boolean; } static final _hashCode1 = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "TimeRangeFilter__hashCode1") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public int hashCode() int hashCode1() { return _hashCode1(reference).integer; } static final _new2 = jniLookup<ffi.NativeFunction<jni.JniResult Function()>>( "TimeRangeFilter__new2") .asFunction<jni.JniResult Function()>(); /// from: public void <init>() /// The returned object must be released after use, by calling the [release] method. factory TimeRangeFilter.new2() { return TimeRangeFilter.fromRef(_new2().object); } static final _between = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("TimeRangeFilter__between") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: static public final androidx.health.connect.client.time.TimeRangeFilter between(java.time.Instant instant, java.time.Instant instant1) /// The returned object must be released after use, by calling the [release] method. static TimeRangeFilter between( Instant instant, Instant instant1, ) { return const $TimeRangeFilterType() .fromRef(_between(instant.reference, instant1.reference).object); } static final _between1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("TimeRangeFilter__between1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: static public final androidx.health.connect.client.time.TimeRangeFilter between(java.time.LocalDateTime localDateTime, java.time.LocalDateTime localDateTime1) /// The returned object must be released after use, by calling the [release] method. static TimeRangeFilter between1( jni.JObject localDateTime, jni.JObject localDateTime1, ) { return const $TimeRangeFilterType().fromRef( _between1(localDateTime.reference, localDateTime1.reference).object); } static final _before = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "TimeRangeFilter__before") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: static public final androidx.health.connect.client.time.TimeRangeFilter before(java.time.Instant instant) /// The returned object must be released after use, by calling the [release] method. static TimeRangeFilter before( Instant instant, ) { return const $TimeRangeFilterType() .fromRef(_before(instant.reference).object); } static final _before1 = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "TimeRangeFilter__before1") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: static public final androidx.health.connect.client.time.TimeRangeFilter before(java.time.LocalDateTime localDateTime) /// The returned object must be released after use, by calling the [release] method. static TimeRangeFilter before1( jni.JObject localDateTime, ) { return const $TimeRangeFilterType() .fromRef(_before1(localDateTime.reference).object); } static final _after = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "TimeRangeFilter__after") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: static public final androidx.health.connect.client.time.TimeRangeFilter after(java.time.Instant instant) /// The returned object must be released after use, by calling the [release] method. static TimeRangeFilter after( Instant instant, ) { return const $TimeRangeFilterType() .fromRef(_after(instant.reference).object); } static final _after1 = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "TimeRangeFilter__after1") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: static public final androidx.health.connect.client.time.TimeRangeFilter after(java.time.LocalDateTime localDateTime) /// The returned object must be released after use, by calling the [release] method. static TimeRangeFilter after1( jni.JObject localDateTime, ) { return const $TimeRangeFilterType() .fromRef(_after1(localDateTime.reference).object); } } final class $TimeRangeFilterType extends jni.JObjType<TimeRangeFilter> { const $TimeRangeFilterType(); @override String get signature => r"Landroidx/health/connect/client/time/TimeRangeFilter;"; @override TimeRangeFilter fromRef(jni.JObjectPtr ref) => TimeRangeFilter.fromRef(ref); @override jni.JObjType get superType => const jni.JObjectType(); @override final superCount = 1; @override int get hashCode => ($TimeRangeFilterType).hashCode; @override bool operator ==(Object other) { return other.runtimeType == ($TimeRangeFilterType) && other is $TimeRangeFilterType; } } /// from: android.content.Context class Context extends jni.JObject { @override late final jni.JObjType<Context> $type = type; Context.fromRef( jni.JObjectPtr ref, ) : super.fromRef(ref); /// The type which includes information such as the signature of this class. static const type = $ContextType(); /// from: static public final java.lang.String ACCESSIBILITY_SERVICE static const ACCESSIBILITY_SERVICE = r"""accessibility"""; /// from: static public final java.lang.String ACCOUNT_SERVICE static const ACCOUNT_SERVICE = r"""account"""; /// from: static public final java.lang.String ACTIVITY_SERVICE static const ACTIVITY_SERVICE = r"""activity"""; /// from: static public final java.lang.String ALARM_SERVICE static const ALARM_SERVICE = r"""alarm"""; /// from: static public final java.lang.String APPWIDGET_SERVICE static const APPWIDGET_SERVICE = r"""appwidget"""; /// from: static public final java.lang.String APP_OPS_SERVICE static const APP_OPS_SERVICE = r"""appops"""; /// from: static public final java.lang.String APP_SEARCH_SERVICE static const APP_SEARCH_SERVICE = r"""app_search"""; /// from: static public final java.lang.String AUDIO_SERVICE static const AUDIO_SERVICE = r"""audio"""; /// from: static public final java.lang.String BATTERY_SERVICE static const BATTERY_SERVICE = r"""batterymanager"""; /// from: static public final int BIND_ABOVE_CLIENT static const BIND_ABOVE_CLIENT = 8; /// from: static public final int BIND_ADJUST_WITH_ACTIVITY static const BIND_ADJUST_WITH_ACTIVITY = 128; /// from: static public final int BIND_ALLOW_OOM_MANAGEMENT static const BIND_ALLOW_OOM_MANAGEMENT = 16; /// from: static public final int BIND_AUTO_CREATE static const BIND_AUTO_CREATE = 1; /// from: static public final int BIND_DEBUG_UNBIND static const BIND_DEBUG_UNBIND = 2; /// from: static public final int BIND_EXTERNAL_SERVICE static const BIND_EXTERNAL_SERVICE = -2147483648; /// from: static public final int BIND_IMPORTANT static const BIND_IMPORTANT = 64; /// from: static public final int BIND_INCLUDE_CAPABILITIES static const BIND_INCLUDE_CAPABILITIES = 4096; /// from: static public final int BIND_NOT_FOREGROUND static const BIND_NOT_FOREGROUND = 4; /// from: static public final int BIND_NOT_PERCEPTIBLE static const BIND_NOT_PERCEPTIBLE = 256; /// from: static public final int BIND_WAIVE_PRIORITY static const BIND_WAIVE_PRIORITY = 32; /// from: static public final java.lang.String BIOMETRIC_SERVICE static const BIOMETRIC_SERVICE = r"""biometric"""; /// from: static public final java.lang.String BLOB_STORE_SERVICE static const BLOB_STORE_SERVICE = r"""blob_store"""; /// from: static public final java.lang.String BLUETOOTH_SERVICE static const BLUETOOTH_SERVICE = r"""bluetooth"""; /// from: static public final java.lang.String BUGREPORT_SERVICE static const BUGREPORT_SERVICE = r"""bugreport"""; /// from: static public final java.lang.String CAMERA_SERVICE static const CAMERA_SERVICE = r"""camera"""; /// from: static public final java.lang.String CAPTIONING_SERVICE static const CAPTIONING_SERVICE = r"""captioning"""; /// from: static public final java.lang.String CARRIER_CONFIG_SERVICE static const CARRIER_CONFIG_SERVICE = r"""carrier_config"""; /// from: static public final java.lang.String CLIPBOARD_SERVICE static const CLIPBOARD_SERVICE = r"""clipboard"""; /// from: static public final java.lang.String COMPANION_DEVICE_SERVICE static const COMPANION_DEVICE_SERVICE = r"""companiondevice"""; /// from: static public final java.lang.String CONNECTIVITY_DIAGNOSTICS_SERVICE static const CONNECTIVITY_DIAGNOSTICS_SERVICE = r"""connectivity_diagnostics"""; /// from: static public final java.lang.String CONNECTIVITY_SERVICE static const CONNECTIVITY_SERVICE = r"""connectivity"""; /// from: static public final java.lang.String CONSUMER_IR_SERVICE static const CONSUMER_IR_SERVICE = r"""consumer_ir"""; /// from: static public final int CONTEXT_IGNORE_SECURITY static const CONTEXT_IGNORE_SECURITY = 2; /// from: static public final int CONTEXT_INCLUDE_CODE static const CONTEXT_INCLUDE_CODE = 1; /// from: static public final int CONTEXT_RESTRICTED static const CONTEXT_RESTRICTED = 4; /// from: static public final java.lang.String CROSS_PROFILE_APPS_SERVICE static const CROSS_PROFILE_APPS_SERVICE = r"""crossprofileapps"""; /// from: static public final java.lang.String DEVICE_POLICY_SERVICE static const DEVICE_POLICY_SERVICE = r"""device_policy"""; /// from: static public final java.lang.String DISPLAY_HASH_SERVICE static const DISPLAY_HASH_SERVICE = r"""display_hash"""; /// from: static public final java.lang.String DISPLAY_SERVICE static const DISPLAY_SERVICE = r"""display"""; /// from: static public final java.lang.String DOMAIN_VERIFICATION_SERVICE static const DOMAIN_VERIFICATION_SERVICE = r"""domain_verification"""; /// from: static public final java.lang.String DOWNLOAD_SERVICE static const DOWNLOAD_SERVICE = r"""download"""; /// from: static public final java.lang.String DROPBOX_SERVICE static const DROPBOX_SERVICE = r"""dropbox"""; /// from: static public final java.lang.String EUICC_SERVICE static const EUICC_SERVICE = r"""euicc"""; /// from: static public final java.lang.String FILE_INTEGRITY_SERVICE static const FILE_INTEGRITY_SERVICE = r"""file_integrity"""; /// from: static public final java.lang.String FINGERPRINT_SERVICE static const FINGERPRINT_SERVICE = r"""fingerprint"""; /// from: static public final java.lang.String GAME_SERVICE static const GAME_SERVICE = r"""game"""; /// from: static public final java.lang.String HARDWARE_PROPERTIES_SERVICE static const HARDWARE_PROPERTIES_SERVICE = r"""hardware_properties"""; /// from: static public final java.lang.String INPUT_METHOD_SERVICE static const INPUT_METHOD_SERVICE = r"""input_method"""; /// from: static public final java.lang.String INPUT_SERVICE static const INPUT_SERVICE = r"""input"""; /// from: static public final java.lang.String IPSEC_SERVICE static const IPSEC_SERVICE = r"""ipsec"""; /// from: static public final java.lang.String JOB_SCHEDULER_SERVICE static const JOB_SCHEDULER_SERVICE = r"""jobscheduler"""; /// from: static public final java.lang.String KEYGUARD_SERVICE static const KEYGUARD_SERVICE = r"""keyguard"""; /// from: static public final java.lang.String LAUNCHER_APPS_SERVICE static const LAUNCHER_APPS_SERVICE = r"""launcherapps"""; /// from: static public final java.lang.String LAYOUT_INFLATER_SERVICE static const LAYOUT_INFLATER_SERVICE = r"""layout_inflater"""; /// from: static public final java.lang.String LOCALE_SERVICE static const LOCALE_SERVICE = r"""locale"""; /// from: static public final java.lang.String LOCATION_SERVICE static const LOCATION_SERVICE = r"""location"""; /// from: static public final java.lang.String MEDIA_COMMUNICATION_SERVICE static const MEDIA_COMMUNICATION_SERVICE = r"""media_communication"""; /// from: static public final java.lang.String MEDIA_METRICS_SERVICE static const MEDIA_METRICS_SERVICE = r"""media_metrics"""; /// from: static public final java.lang.String MEDIA_PROJECTION_SERVICE static const MEDIA_PROJECTION_SERVICE = r"""media_projection"""; /// from: static public final java.lang.String MEDIA_ROUTER_SERVICE static const MEDIA_ROUTER_SERVICE = r"""media_router"""; /// from: static public final java.lang.String MEDIA_SESSION_SERVICE static const MEDIA_SESSION_SERVICE = r"""media_session"""; /// from: static public final java.lang.String MIDI_SERVICE static const MIDI_SERVICE = r"""midi"""; /// from: static public final int MODE_APPEND static const MODE_APPEND = 32768; /// from: static public final int MODE_ENABLE_WRITE_AHEAD_LOGGING static const MODE_ENABLE_WRITE_AHEAD_LOGGING = 8; /// from: static public final int MODE_MULTI_PROCESS static const MODE_MULTI_PROCESS = 4; /// from: static public final int MODE_NO_LOCALIZED_COLLATORS static const MODE_NO_LOCALIZED_COLLATORS = 16; /// from: static public final int MODE_PRIVATE static const MODE_PRIVATE = 0; /// from: static public final int MODE_WORLD_READABLE static const MODE_WORLD_READABLE = 1; /// from: static public final int MODE_WORLD_WRITEABLE static const MODE_WORLD_WRITEABLE = 2; /// from: static public final java.lang.String NETWORK_STATS_SERVICE static const NETWORK_STATS_SERVICE = r"""netstats"""; /// from: static public final java.lang.String NFC_SERVICE static const NFC_SERVICE = r"""nfc"""; /// from: static public final java.lang.String NOTIFICATION_SERVICE static const NOTIFICATION_SERVICE = r"""notification"""; /// from: static public final java.lang.String NSD_SERVICE static const NSD_SERVICE = r"""servicediscovery"""; /// from: static public final java.lang.String PEOPLE_SERVICE static const PEOPLE_SERVICE = r"""people"""; /// from: static public final java.lang.String PERFORMANCE_HINT_SERVICE static const PERFORMANCE_HINT_SERVICE = r"""performance_hint"""; /// from: static public final java.lang.String POWER_SERVICE static const POWER_SERVICE = r"""power"""; /// from: static public final java.lang.String PRINT_SERVICE static const PRINT_SERVICE = r"""print"""; /// from: static public final int RECEIVER_EXPORTED static const RECEIVER_EXPORTED = 2; /// from: static public final int RECEIVER_NOT_EXPORTED static const RECEIVER_NOT_EXPORTED = 4; /// from: static public final int RECEIVER_VISIBLE_TO_INSTANT_APPS static const RECEIVER_VISIBLE_TO_INSTANT_APPS = 1; /// from: static public final java.lang.String RESTRICTIONS_SERVICE static const RESTRICTIONS_SERVICE = r"""restrictions"""; /// from: static public final java.lang.String ROLE_SERVICE static const ROLE_SERVICE = r"""role"""; /// from: static public final java.lang.String SEARCH_SERVICE static const SEARCH_SERVICE = r"""search"""; /// from: static public final java.lang.String SENSOR_SERVICE static const SENSOR_SERVICE = r"""sensor"""; /// from: static public final java.lang.String SHORTCUT_SERVICE static const SHORTCUT_SERVICE = r"""shortcut"""; /// from: static public final java.lang.String STATUS_BAR_SERVICE static const STATUS_BAR_SERVICE = r"""statusbar"""; /// from: static public final java.lang.String STORAGE_SERVICE static const STORAGE_SERVICE = r"""storage"""; /// from: static public final java.lang.String STORAGE_STATS_SERVICE static const STORAGE_STATS_SERVICE = r"""storagestats"""; /// from: static public final java.lang.String SYSTEM_HEALTH_SERVICE static const SYSTEM_HEALTH_SERVICE = r"""systemhealth"""; /// from: static public final java.lang.String TELECOM_SERVICE static const TELECOM_SERVICE = r"""telecom"""; /// from: static public final java.lang.String TELEPHONY_IMS_SERVICE static const TELEPHONY_IMS_SERVICE = r"""telephony_ims"""; /// from: static public final java.lang.String TELEPHONY_SERVICE static const TELEPHONY_SERVICE = r"""phone"""; /// from: static public final java.lang.String TELEPHONY_SUBSCRIPTION_SERVICE static const TELEPHONY_SUBSCRIPTION_SERVICE = r"""telephony_subscription_service"""; /// from: static public final java.lang.String TEXT_CLASSIFICATION_SERVICE static const TEXT_CLASSIFICATION_SERVICE = r"""textclassification"""; /// from: static public final java.lang.String TEXT_SERVICES_MANAGER_SERVICE static const TEXT_SERVICES_MANAGER_SERVICE = r"""textservices"""; /// from: static public final java.lang.String TV_INPUT_SERVICE static const TV_INPUT_SERVICE = r"""tv_input"""; /// from: static public final java.lang.String TV_INTERACTIVE_APP_SERVICE static const TV_INTERACTIVE_APP_SERVICE = r"""tv_interactive_app"""; /// from: static public final java.lang.String UI_MODE_SERVICE static const UI_MODE_SERVICE = r"""uimode"""; /// from: static public final java.lang.String USAGE_STATS_SERVICE static const USAGE_STATS_SERVICE = r"""usagestats"""; /// from: static public final java.lang.String USB_SERVICE static const USB_SERVICE = r"""usb"""; /// from: static public final java.lang.String USER_SERVICE static const USER_SERVICE = r"""user"""; /// from: static public final java.lang.String VIBRATOR_MANAGER_SERVICE static const VIBRATOR_MANAGER_SERVICE = r"""vibrator_manager"""; /// from: static public final java.lang.String VIBRATOR_SERVICE static const VIBRATOR_SERVICE = r"""vibrator"""; /// from: static public final java.lang.String VPN_MANAGEMENT_SERVICE static const VPN_MANAGEMENT_SERVICE = r"""vpn_management"""; /// from: static public final java.lang.String WALLPAPER_SERVICE static const WALLPAPER_SERVICE = r"""wallpaper"""; /// from: static public final java.lang.String WIFI_AWARE_SERVICE static const WIFI_AWARE_SERVICE = r"""wifiaware"""; /// from: static public final java.lang.String WIFI_P2P_SERVICE static const WIFI_P2P_SERVICE = r"""wifip2p"""; /// from: static public final java.lang.String WIFI_RTT_RANGING_SERVICE static const WIFI_RTT_RANGING_SERVICE = r"""wifirtt"""; /// from: static public final java.lang.String WIFI_SERVICE static const WIFI_SERVICE = r"""wifi"""; /// from: static public final java.lang.String WINDOW_SERVICE static const WINDOW_SERVICE = r"""window"""; static final _new0 = jniLookup<ffi.NativeFunction<jni.JniResult Function()>>("Context__new0") .asFunction<jni.JniResult Function()>(); /// from: public void <init>() /// The returned object must be released after use, by calling the [release] method. factory Context() { return Context.fromRef(_new0().object); } static final _getAssets = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getAssets") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract android.content.res.AssetManager getAssets() /// The returned object must be released after use, by calling the [release] method. jni.JObject getAssets() { return const jni.JObjectType().fromRef(_getAssets(reference).object); } static final _getResources = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getResources") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract android.content.res.Resources getResources() /// The returned object must be released after use, by calling the [release] method. jni.JObject getResources() { return const jni.JObjectType().fromRef(_getResources(reference).object); } static final _getPackageManager = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getPackageManager") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract android.content.pm.PackageManager getPackageManager() /// The returned object must be released after use, by calling the [release] method. jni.JObject getPackageManager() { return const jni.JObjectType() .fromRef(_getPackageManager(reference).object); } static final _getContentResolver = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getContentResolver") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract android.content.ContentResolver getContentResolver() /// The returned object must be released after use, by calling the [release] method. jni.JObject getContentResolver() { return const jni.JObjectType() .fromRef(_getContentResolver(reference).object); } static final _getMainLooper = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getMainLooper") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract android.os.Looper getMainLooper() /// The returned object must be released after use, by calling the [release] method. jni.JObject getMainLooper() { return const jni.JObjectType().fromRef(_getMainLooper(reference).object); } static final _getMainExecutor = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getMainExecutor") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public java.util.concurrent.Executor getMainExecutor() /// The returned object must be released after use, by calling the [release] method. jni.JObject getMainExecutor() { return const jni.JObjectType().fromRef(_getMainExecutor(reference).object); } static final _getApplicationContext = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getApplicationContext") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract android.content.Context getApplicationContext() /// The returned object must be released after use, by calling the [release] method. Context getApplicationContext() { return const $ContextType() .fromRef(_getApplicationContext(reference).object); } static final _registerComponentCallbacks = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Context__registerComponentCallbacks") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void registerComponentCallbacks(android.content.ComponentCallbacks componentCallbacks) void registerComponentCallbacks( jni.JObject componentCallbacks, ) { return _registerComponentCallbacks(reference, componentCallbacks.reference) .check(); } static final _unregisterComponentCallbacks = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Context__unregisterComponentCallbacks") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void unregisterComponentCallbacks(android.content.ComponentCallbacks componentCallbacks) void unregisterComponentCallbacks( jni.JObject componentCallbacks, ) { return _unregisterComponentCallbacks( reference, componentCallbacks.reference) .check(); } static final _getText = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int32)>>("Context__getText") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public final java.lang.CharSequence getText(int i) /// The returned object must be released after use, by calling the [release] method. jni.JObject getText( int i, ) { return const jni.JObjectType().fromRef(_getText(reference, i).object); } static final _getString = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int32)>>("Context__getString") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public final java.lang.String getString(int i) /// The returned object must be released after use, by calling the [release] method. jni.JString getString( int i, ) { return const jni.JStringType().fromRef(_getString(reference, i).object); } static final _getString1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Context__getString1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public final java.lang.String getString(int i, java.lang.Object[] objects) /// The returned object must be released after use, by calling the [release] method. jni.JString getString1( int i, jni.JArray<jni.JObject> objects, ) { return const jni.JStringType() .fromRef(_getString1(reference, i, objects.reference).object); } static final _getColor = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int32)>>("Context__getColor") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public final int getColor(int i) int getColor( int i, ) { return _getColor(reference, i).integer; } static final _getDrawable = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int32)>>("Context__getDrawable") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public final android.graphics.drawable.Drawable getDrawable(int i) /// The returned object must be released after use, by calling the [release] method. jni.JObject getDrawable( int i, ) { return const jni.JObjectType().fromRef(_getDrawable(reference, i).object); } static final _getColorStateList = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32)>>("Context__getColorStateList") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public final android.content.res.ColorStateList getColorStateList(int i) /// The returned object must be released after use, by calling the [release] method. jni.JObject getColorStateList( int i, ) { return const jni.JObjectType() .fromRef(_getColorStateList(reference, i).object); } static final _setTheme = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int32)>>("Context__setTheme") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public abstract void setTheme(int i) void setTheme( int i, ) { return _setTheme(reference, i).check(); } static final _getTheme = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getTheme") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract android.content.res.Resources$Theme getTheme() /// The returned object must be released after use, by calling the [release] method. jni.JObject getTheme() { return const jni.JObjectType().fromRef(_getTheme(reference).object); } static final _obtainStyledAttributes = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__obtainStyledAttributes") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public final android.content.res.TypedArray obtainStyledAttributes(int[] is) /// The returned object must be released after use, by calling the [release] method. jni.JObject obtainStyledAttributes( jni.JArray<jni.jint> is0, ) { return const jni.JObjectType() .fromRef(_obtainStyledAttributes(reference, is0.reference).object); } static final _obtainStyledAttributes1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Context__obtainStyledAttributes1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public final android.content.res.TypedArray obtainStyledAttributes(int i, int[] is) /// The returned object must be released after use, by calling the [release] method. jni.JObject obtainStyledAttributes1( int i, jni.JArray<jni.jint> is0, ) { return const jni.JObjectType() .fromRef(_obtainStyledAttributes1(reference, i, is0.reference).object); } static final _obtainStyledAttributes2 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__obtainStyledAttributes2") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public final android.content.res.TypedArray obtainStyledAttributes(android.util.AttributeSet attributeSet, int[] is) /// The returned object must be released after use, by calling the [release] method. jni.JObject obtainStyledAttributes2( jni.JObject attributeSet, jni.JArray<jni.jint> is0, ) { return const jni.JObjectType().fromRef(_obtainStyledAttributes2( reference, attributeSet.reference, is0.reference) .object); } static final _obtainStyledAttributes3 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Int32)>>("Context__obtainStyledAttributes3") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, int)>(); /// from: public final android.content.res.TypedArray obtainStyledAttributes(android.util.AttributeSet attributeSet, int[] is, int i, int i1) /// The returned object must be released after use, by calling the [release] method. jni.JObject obtainStyledAttributes3( jni.JObject attributeSet, jni.JArray<jni.jint> is0, int i, int i1, ) { return const jni.JObjectType().fromRef(_obtainStyledAttributes3( reference, attributeSet.reference, is0.reference, i, i1) .object); } static final _getClassLoader = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getClassLoader") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.lang.ClassLoader getClassLoader() /// The returned object must be released after use, by calling the [release] method. jni.JObject getClassLoader() { return const jni.JObjectType().fromRef(_getClassLoader(reference).object); } static final _getPackageName = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getPackageName") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.lang.String getPackageName() /// The returned object must be released after use, by calling the [release] method. jni.JString getPackageName() { return const jni.JStringType().fromRef(_getPackageName(reference).object); } static final _getOpPackageName = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getOpPackageName") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public java.lang.String getOpPackageName() /// The returned object must be released after use, by calling the [release] method. jni.JString getOpPackageName() { return const jni.JStringType().fromRef(_getOpPackageName(reference).object); } static final _getAttributionTag = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getAttributionTag") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public java.lang.String getAttributionTag() /// The returned object must be released after use, by calling the [release] method. jni.JString getAttributionTag() { return const jni.JStringType() .fromRef(_getAttributionTag(reference).object); } static final _getAttributionSource = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getAttributionSource") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public android.content.AttributionSource getAttributionSource() /// The returned object must be released after use, by calling the [release] method. jni.JObject getAttributionSource() { return const jni.JObjectType() .fromRef(_getAttributionSource(reference).object); } static final _getParams = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getParams") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public android.content.ContextParams getParams() /// The returned object must be released after use, by calling the [release] method. jni.JObject getParams() { return const jni.JObjectType().fromRef(_getParams(reference).object); } static final _getApplicationInfo = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getApplicationInfo") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract android.content.pm.ApplicationInfo getApplicationInfo() /// The returned object must be released after use, by calling the [release] method. jni.JObject getApplicationInfo() { return const jni.JObjectType() .fromRef(_getApplicationInfo(reference).object); } static final _getPackageResourcePath = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getPackageResourcePath") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.lang.String getPackageResourcePath() /// The returned object must be released after use, by calling the [release] method. jni.JString getPackageResourcePath() { return const jni.JStringType() .fromRef(_getPackageResourcePath(reference).object); } static final _getPackageCodePath = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getPackageCodePath") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.lang.String getPackageCodePath() /// The returned object must be released after use, by calling the [release] method. jni.JString getPackageCodePath() { return const jni.JStringType() .fromRef(_getPackageCodePath(reference).object); } static final _getSharedPreferences = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Context__getSharedPreferences") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public abstract android.content.SharedPreferences getSharedPreferences(java.lang.String string, int i) /// The returned object must be released after use, by calling the [release] method. jni.JObject getSharedPreferences( jni.JString string, int i, ) { return const jni.JObjectType() .fromRef(_getSharedPreferences(reference, string.reference, i).object); } static final _moveSharedPreferencesFrom = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__moveSharedPreferencesFrom") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract boolean moveSharedPreferencesFrom(android.content.Context context, java.lang.String string) bool moveSharedPreferencesFrom( Context context, jni.JString string, ) { return _moveSharedPreferencesFrom( reference, context.reference, string.reference) .boolean; } static final _deleteSharedPreferences = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__deleteSharedPreferences") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract boolean deleteSharedPreferences(java.lang.String string) bool deleteSharedPreferences( jni.JString string, ) { return _deleteSharedPreferences(reference, string.reference).boolean; } static final _openFileInput = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__openFileInput") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.io.FileInputStream openFileInput(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. jni.JObject openFileInput( jni.JString string, ) { return const jni.JObjectType() .fromRef(_openFileInput(reference, string.reference).object); } static final _openFileOutput = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Context__openFileOutput") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public abstract java.io.FileOutputStream openFileOutput(java.lang.String string, int i) /// The returned object must be released after use, by calling the [release] method. jni.JObject openFileOutput( jni.JString string, int i, ) { return const jni.JObjectType() .fromRef(_openFileOutput(reference, string.reference, i).object); } static final _deleteFile = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__deleteFile") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract boolean deleteFile(java.lang.String string) bool deleteFile( jni.JString string, ) { return _deleteFile(reference, string.reference).boolean; } static final _getFileStreamPath = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__getFileStreamPath") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.io.File getFileStreamPath(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. jni.JObject getFileStreamPath( jni.JString string, ) { return const jni.JObjectType() .fromRef(_getFileStreamPath(reference, string.reference).object); } static final _getDataDir = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getDataDir") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.io.File getDataDir() /// The returned object must be released after use, by calling the [release] method. jni.JObject getDataDir() { return const jni.JObjectType().fromRef(_getDataDir(reference).object); } static final _getFilesDir = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getFilesDir") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.io.File getFilesDir() /// The returned object must be released after use, by calling the [release] method. jni.JObject getFilesDir() { return const jni.JObjectType().fromRef(_getFilesDir(reference).object); } static final _getNoBackupFilesDir = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getNoBackupFilesDir") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.io.File getNoBackupFilesDir() /// The returned object must be released after use, by calling the [release] method. jni.JObject getNoBackupFilesDir() { return const jni.JObjectType() .fromRef(_getNoBackupFilesDir(reference).object); } static final _getExternalFilesDir = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__getExternalFilesDir") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.io.File getExternalFilesDir(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. jni.JObject getExternalFilesDir( jni.JString string, ) { return const jni.JObjectType() .fromRef(_getExternalFilesDir(reference, string.reference).object); } static final _getExternalFilesDirs = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__getExternalFilesDirs") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.io.File[] getExternalFilesDirs(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. jni.JArray<jni.JObject> getExternalFilesDirs( jni.JString string, ) { return const jni.JArrayType(jni.JObjectType()) .fromRef(_getExternalFilesDirs(reference, string.reference).object); } static final _getObbDir = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getObbDir") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.io.File getObbDir() /// The returned object must be released after use, by calling the [release] method. jni.JObject getObbDir() { return const jni.JObjectType().fromRef(_getObbDir(reference).object); } static final _getObbDirs = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getObbDirs") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.io.File[] getObbDirs() /// The returned object must be released after use, by calling the [release] method. jni.JArray<jni.JObject> getObbDirs() { return const jni.JArrayType(jni.JObjectType()) .fromRef(_getObbDirs(reference).object); } static final _getCacheDir = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getCacheDir") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.io.File getCacheDir() /// The returned object must be released after use, by calling the [release] method. jni.JObject getCacheDir() { return const jni.JObjectType().fromRef(_getCacheDir(reference).object); } static final _getCodeCacheDir = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getCodeCacheDir") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.io.File getCodeCacheDir() /// The returned object must be released after use, by calling the [release] method. jni.JObject getCodeCacheDir() { return const jni.JObjectType().fromRef(_getCodeCacheDir(reference).object); } static final _getExternalCacheDir = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getExternalCacheDir") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.io.File getExternalCacheDir() /// The returned object must be released after use, by calling the [release] method. jni.JObject getExternalCacheDir() { return const jni.JObjectType() .fromRef(_getExternalCacheDir(reference).object); } static final _getExternalCacheDirs = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getExternalCacheDirs") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.io.File[] getExternalCacheDirs() /// The returned object must be released after use, by calling the [release] method. jni.JArray<jni.JObject> getExternalCacheDirs() { return const jni.JArrayType(jni.JObjectType()) .fromRef(_getExternalCacheDirs(reference).object); } static final _getExternalMediaDirs = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getExternalMediaDirs") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.io.File[] getExternalMediaDirs() /// The returned object must be released after use, by calling the [release] method. jni.JArray<jni.JObject> getExternalMediaDirs() { return const jni.JArrayType(jni.JObjectType()) .fromRef(_getExternalMediaDirs(reference).object); } static final _fileList = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__fileList") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.lang.String[] fileList() /// The returned object must be released after use, by calling the [release] method. jni.JArray<jni.JString> fileList() { return const jni.JArrayType(jni.JStringType()) .fromRef(_fileList(reference).object); } static final _getDir = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Context__getDir") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public abstract java.io.File getDir(java.lang.String string, int i) /// The returned object must be released after use, by calling the [release] method. jni.JObject getDir( jni.JString string, int i, ) { return const jni.JObjectType() .fromRef(_getDir(reference, string.reference, i).object); } static final _openOrCreateDatabase = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Context__openOrCreateDatabase") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public abstract android.database.sqlite.SQLiteDatabase openOrCreateDatabase(java.lang.String string, int i, android.database.sqlite.SQLiteDatabase$CursorFactory cursorFactory) /// The returned object must be released after use, by calling the [release] method. jni.JObject openOrCreateDatabase( jni.JString string, int i, jni.JObject cursorFactory, ) { return const jni.JObjectType().fromRef(_openOrCreateDatabase( reference, string.reference, i, cursorFactory.reference) .object); } static final _openOrCreateDatabase1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__openOrCreateDatabase1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract android.database.sqlite.SQLiteDatabase openOrCreateDatabase(java.lang.String string, int i, android.database.sqlite.SQLiteDatabase$CursorFactory cursorFactory, android.database.DatabaseErrorHandler databaseErrorHandler) /// The returned object must be released after use, by calling the [release] method. jni.JObject openOrCreateDatabase1( jni.JString string, int i, jni.JObject cursorFactory, jni.JObject databaseErrorHandler, ) { return const jni.JObjectType().fromRef(_openOrCreateDatabase1( reference, string.reference, i, cursorFactory.reference, databaseErrorHandler.reference) .object); } static final _moveDatabaseFrom = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__moveDatabaseFrom") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract boolean moveDatabaseFrom(android.content.Context context, java.lang.String string) bool moveDatabaseFrom( Context context, jni.JString string, ) { return _moveDatabaseFrom(reference, context.reference, string.reference) .boolean; } static final _deleteDatabase = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__deleteDatabase") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract boolean deleteDatabase(java.lang.String string) bool deleteDatabase( jni.JString string, ) { return _deleteDatabase(reference, string.reference).boolean; } static final _getDatabasePath = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__getDatabasePath") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.io.File getDatabasePath(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. jni.JObject getDatabasePath( jni.JString string, ) { return const jni.JObjectType() .fromRef(_getDatabasePath(reference, string.reference).object); } static final _databaseList = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__databaseList") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.lang.String[] databaseList() /// The returned object must be released after use, by calling the [release] method. jni.JArray<jni.JString> databaseList() { return const jni.JArrayType(jni.JStringType()) .fromRef(_databaseList(reference).object); } static final _getWallpaper = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getWallpaper") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract android.graphics.drawable.Drawable getWallpaper() /// The returned object must be released after use, by calling the [release] method. jni.JObject getWallpaper() { return const jni.JObjectType().fromRef(_getWallpaper(reference).object); } static final _peekWallpaper = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__peekWallpaper") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract android.graphics.drawable.Drawable peekWallpaper() /// The returned object must be released after use, by calling the [release] method. jni.JObject peekWallpaper() { return const jni.JObjectType().fromRef(_peekWallpaper(reference).object); } static final _getWallpaperDesiredMinimumWidth = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getWallpaperDesiredMinimumWidth") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract int getWallpaperDesiredMinimumWidth() int getWallpaperDesiredMinimumWidth() { return _getWallpaperDesiredMinimumWidth(reference).integer; } static final _getWallpaperDesiredMinimumHeight = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getWallpaperDesiredMinimumHeight") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract int getWallpaperDesiredMinimumHeight() int getWallpaperDesiredMinimumHeight() { return _getWallpaperDesiredMinimumHeight(reference).integer; } static final _setWallpaper = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__setWallpaper") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract void setWallpaper(android.graphics.Bitmap bitmap) void setWallpaper( jni.JObject bitmap, ) { return _setWallpaper(reference, bitmap.reference).check(); } static final _setWallpaper1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__setWallpaper1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract void setWallpaper(java.io.InputStream inputStream) void setWallpaper1( jni.JObject inputStream, ) { return _setWallpaper1(reference, inputStream.reference).check(); } static final _clearWallpaper = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__clearWallpaper") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract void clearWallpaper() void clearWallpaper() { return _clearWallpaper(reference).check(); } static final _startActivity = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__startActivity") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract void startActivity(android.content.Intent intent) void startActivity( Intent intent, ) { return _startActivity(reference, intent.reference).check(); } static final _startActivity1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__startActivity1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract void startActivity(android.content.Intent intent, android.os.Bundle bundle) void startActivity1( Intent intent, jni.JObject bundle, ) { return _startActivity1(reference, intent.reference, bundle.reference) .check(); } static final _startActivities = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__startActivities") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract void startActivities(android.content.Intent[] intents) void startActivities( jni.JArray<Intent> intents, ) { return _startActivities(reference, intents.reference).check(); } static final _startActivities1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__startActivities1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract void startActivities(android.content.Intent[] intents, android.os.Bundle bundle) void startActivities1( jni.JArray<Intent> intents, jni.JObject bundle, ) { return _startActivities1(reference, intents.reference, bundle.reference) .check(); } static final _startIntentSender = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Int32, ffi.Int32)>>("Context__startIntentSender") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, int, int)>(); /// from: public abstract void startIntentSender(android.content.IntentSender intentSender, android.content.Intent intent, int i, int i1, int i2) void startIntentSender( jni.JObject intentSender, Intent intent, int i, int i1, int i2, ) { return _startIntentSender( reference, intentSender.reference, intent.reference, i, i1, i2) .check(); } static final _startIntentSender1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Int32, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Context__startIntentSender1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, int, int, ffi.Pointer<ffi.Void>)>(); /// from: public abstract void startIntentSender(android.content.IntentSender intentSender, android.content.Intent intent, int i, int i1, int i2, android.os.Bundle bundle) void startIntentSender1( jni.JObject intentSender, Intent intent, int i, int i1, int i2, jni.JObject bundle, ) { return _startIntentSender1(reference, intentSender.reference, intent.reference, i, i1, i2, bundle.reference) .check(); } static final _sendBroadcast = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__sendBroadcast") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract void sendBroadcast(android.content.Intent intent) void sendBroadcast( Intent intent, ) { return _sendBroadcast(reference, intent.reference).check(); } static final _sendBroadcast1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__sendBroadcast1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract void sendBroadcast(android.content.Intent intent, java.lang.String string) void sendBroadcast1( Intent intent, jni.JString string, ) { return _sendBroadcast1(reference, intent.reference, string.reference) .check(); } static final _sendBroadcastWithMultiplePermissions = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Context__sendBroadcastWithMultiplePermissions") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void sendBroadcastWithMultiplePermissions(android.content.Intent intent, java.lang.String[] strings) void sendBroadcastWithMultiplePermissions( Intent intent, jni.JArray<jni.JString> strings, ) { return _sendBroadcastWithMultiplePermissions( reference, intent.reference, strings.reference) .check(); } static final _sendOrderedBroadcast = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__sendOrderedBroadcast") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract void sendOrderedBroadcast(android.content.Intent intent, java.lang.String string) void sendOrderedBroadcast( Intent intent, jni.JString string, ) { return _sendOrderedBroadcast(reference, intent.reference, string.reference) .check(); } static final _sendOrderedBroadcast1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__sendOrderedBroadcast1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract void sendOrderedBroadcast(android.content.Intent intent, java.lang.String string, android.content.BroadcastReceiver broadcastReceiver, android.os.Handler handler, int i, java.lang.String string1, android.os.Bundle bundle) void sendOrderedBroadcast1( Intent intent, jni.JString string, jni.JObject broadcastReceiver, jni.JObject handler, int i, jni.JString string1, jni.JObject bundle, ) { return _sendOrderedBroadcast1( reference, intent.reference, string.reference, broadcastReceiver.reference, handler.reference, i, string1.reference, bundle.reference) .check(); } static final _sendBroadcastAsUser = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__sendBroadcastAsUser") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract void sendBroadcastAsUser(android.content.Intent intent, android.os.UserHandle userHandle) void sendBroadcastAsUser( Intent intent, jni.JObject userHandle, ) { return _sendBroadcastAsUser( reference, intent.reference, userHandle.reference) .check(); } static final _sendBroadcastAsUser1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__sendBroadcastAsUser1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract void sendBroadcastAsUser(android.content.Intent intent, android.os.UserHandle userHandle, java.lang.String string) void sendBroadcastAsUser1( Intent intent, jni.JObject userHandle, jni.JString string, ) { return _sendBroadcastAsUser1( reference, intent.reference, userHandle.reference, string.reference) .check(); } static final _sendOrderedBroadcastAsUser = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Context__sendOrderedBroadcastAsUser") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract void sendOrderedBroadcastAsUser(android.content.Intent intent, android.os.UserHandle userHandle, java.lang.String string, android.content.BroadcastReceiver broadcastReceiver, android.os.Handler handler, int i, java.lang.String string1, android.os.Bundle bundle) void sendOrderedBroadcastAsUser( Intent intent, jni.JObject userHandle, jni.JString string, jni.JObject broadcastReceiver, jni.JObject handler, int i, jni.JString string1, jni.JObject bundle, ) { return _sendOrderedBroadcastAsUser( reference, intent.reference, userHandle.reference, string.reference, broadcastReceiver.reference, handler.reference, i, string1.reference, bundle.reference) .check(); } static final _sendOrderedBroadcast2 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__sendOrderedBroadcast2") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void sendOrderedBroadcast(android.content.Intent intent, java.lang.String string, java.lang.String string1, android.content.BroadcastReceiver broadcastReceiver, android.os.Handler handler, int i, java.lang.String string2, android.os.Bundle bundle) void sendOrderedBroadcast2( Intent intent, jni.JString string, jni.JString string1, jni.JObject broadcastReceiver, jni.JObject handler, int i, jni.JString string2, jni.JObject bundle, ) { return _sendOrderedBroadcast2( reference, intent.reference, string.reference, string1.reference, broadcastReceiver.reference, handler.reference, i, string2.reference, bundle.reference) .check(); } static final _sendStickyBroadcast = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__sendStickyBroadcast") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract void sendStickyBroadcast(android.content.Intent intent) void sendStickyBroadcast( Intent intent, ) { return _sendStickyBroadcast(reference, intent.reference).check(); } static final _sendStickyBroadcast1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__sendStickyBroadcast1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void sendStickyBroadcast(android.content.Intent intent, android.os.Bundle bundle) void sendStickyBroadcast1( Intent intent, jni.JObject bundle, ) { return _sendStickyBroadcast1(reference, intent.reference, bundle.reference) .check(); } static final _sendStickyOrderedBroadcast = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Context__sendStickyOrderedBroadcast") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract void sendStickyOrderedBroadcast(android.content.Intent intent, android.content.BroadcastReceiver broadcastReceiver, android.os.Handler handler, int i, java.lang.String string, android.os.Bundle bundle) void sendStickyOrderedBroadcast( Intent intent, jni.JObject broadcastReceiver, jni.JObject handler, int i, jni.JString string, jni.JObject bundle, ) { return _sendStickyOrderedBroadcast( reference, intent.reference, broadcastReceiver.reference, handler.reference, i, string.reference, bundle.reference) .check(); } static final _removeStickyBroadcast = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__removeStickyBroadcast") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract void removeStickyBroadcast(android.content.Intent intent) void removeStickyBroadcast( Intent intent, ) { return _removeStickyBroadcast(reference, intent.reference).check(); } static final _sendStickyBroadcastAsUser = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__sendStickyBroadcastAsUser") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract void sendStickyBroadcastAsUser(android.content.Intent intent, android.os.UserHandle userHandle) void sendStickyBroadcastAsUser( Intent intent, jni.JObject userHandle, ) { return _sendStickyBroadcastAsUser( reference, intent.reference, userHandle.reference) .check(); } static final _sendStickyOrderedBroadcastAsUser = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Context__sendStickyOrderedBroadcastAsUser") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract void sendStickyOrderedBroadcastAsUser(android.content.Intent intent, android.os.UserHandle userHandle, android.content.BroadcastReceiver broadcastReceiver, android.os.Handler handler, int i, java.lang.String string, android.os.Bundle bundle) void sendStickyOrderedBroadcastAsUser( Intent intent, jni.JObject userHandle, jni.JObject broadcastReceiver, jni.JObject handler, int i, jni.JString string, jni.JObject bundle, ) { return _sendStickyOrderedBroadcastAsUser( reference, intent.reference, userHandle.reference, broadcastReceiver.reference, handler.reference, i, string.reference, bundle.reference) .check(); } static final _removeStickyBroadcastAsUser = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Context__removeStickyBroadcastAsUser") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract void removeStickyBroadcastAsUser(android.content.Intent intent, android.os.UserHandle userHandle) void removeStickyBroadcastAsUser( Intent intent, jni.JObject userHandle, ) { return _removeStickyBroadcastAsUser( reference, intent.reference, userHandle.reference) .check(); } static final _registerReceiver = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__registerReceiver") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract android.content.Intent registerReceiver(android.content.BroadcastReceiver broadcastReceiver, android.content.IntentFilter intentFilter) /// The returned object must be released after use, by calling the [release] method. Intent registerReceiver( jni.JObject broadcastReceiver, jni.JObject intentFilter, ) { return const $IntentType().fromRef(_registerReceiver( reference, broadcastReceiver.reference, intentFilter.reference) .object); } static final _registerReceiver1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Context__registerReceiver1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public abstract android.content.Intent registerReceiver(android.content.BroadcastReceiver broadcastReceiver, android.content.IntentFilter intentFilter, int i) /// The returned object must be released after use, by calling the [release] method. Intent registerReceiver1( jni.JObject broadcastReceiver, jni.JObject intentFilter, int i, ) { return const $IntentType().fromRef(_registerReceiver1( reference, broadcastReceiver.reference, intentFilter.reference, i) .object); } static final _registerReceiver2 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__registerReceiver2") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract android.content.Intent registerReceiver(android.content.BroadcastReceiver broadcastReceiver, android.content.IntentFilter intentFilter, java.lang.String string, android.os.Handler handler) /// The returned object must be released after use, by calling the [release] method. Intent registerReceiver2( jni.JObject broadcastReceiver, jni.JObject intentFilter, jni.JString string, jni.JObject handler, ) { return const $IntentType().fromRef(_registerReceiver2( reference, broadcastReceiver.reference, intentFilter.reference, string.reference, handler.reference) .object); } static final _registerReceiver3 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Context__registerReceiver3") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public abstract android.content.Intent registerReceiver(android.content.BroadcastReceiver broadcastReceiver, android.content.IntentFilter intentFilter, java.lang.String string, android.os.Handler handler, int i) /// The returned object must be released after use, by calling the [release] method. Intent registerReceiver3( jni.JObject broadcastReceiver, jni.JObject intentFilter, jni.JString string, jni.JObject handler, int i, ) { return const $IntentType().fromRef(_registerReceiver3( reference, broadcastReceiver.reference, intentFilter.reference, string.reference, handler.reference, i) .object); } static final _unregisterReceiver = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__unregisterReceiver") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract void unregisterReceiver(android.content.BroadcastReceiver broadcastReceiver) void unregisterReceiver( jni.JObject broadcastReceiver, ) { return _unregisterReceiver(reference, broadcastReceiver.reference).check(); } static final _startService = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__startService") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract android.content.ComponentName startService(android.content.Intent intent) /// The returned object must be released after use, by calling the [release] method. jni.JObject startService( Intent intent, ) { return const jni.JObjectType() .fromRef(_startService(reference, intent.reference).object); } static final _startForegroundService = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__startForegroundService") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract android.content.ComponentName startForegroundService(android.content.Intent intent) /// The returned object must be released after use, by calling the [release] method. jni.JObject startForegroundService( Intent intent, ) { return const jni.JObjectType() .fromRef(_startForegroundService(reference, intent.reference).object); } static final _stopService = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__stopService") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract boolean stopService(android.content.Intent intent) bool stopService( Intent intent, ) { return _stopService(reference, intent.reference).boolean; } static final _bindService = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Context__bindService") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public abstract boolean bindService(android.content.Intent intent, android.content.ServiceConnection serviceConnection, int i) bool bindService( Intent intent, jni.JObject serviceConnection, int i, ) { return _bindService( reference, intent.reference, serviceConnection.reference, i) .boolean; } static final _bindService1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__bindService1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean bindService(android.content.Intent intent, int i, java.util.concurrent.Executor executor, android.content.ServiceConnection serviceConnection) bool bindService1( Intent intent, int i, jni.JObject executor, jni.JObject serviceConnection, ) { return _bindService1(reference, intent.reference, i, executor.reference, serviceConnection.reference) .boolean; } static final _bindIsolatedService = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__bindIsolatedService") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean bindIsolatedService(android.content.Intent intent, int i, java.lang.String string, java.util.concurrent.Executor executor, android.content.ServiceConnection serviceConnection) bool bindIsolatedService( Intent intent, int i, jni.JString string, jni.JObject executor, jni.JObject serviceConnection, ) { return _bindIsolatedService(reference, intent.reference, i, string.reference, executor.reference, serviceConnection.reference) .boolean; } static final _bindServiceAsUser = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Context__bindServiceAsUser") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public boolean bindServiceAsUser(android.content.Intent intent, android.content.ServiceConnection serviceConnection, int i, android.os.UserHandle userHandle) bool bindServiceAsUser( Intent intent, jni.JObject serviceConnection, int i, jni.JObject userHandle, ) { return _bindServiceAsUser(reference, intent.reference, serviceConnection.reference, i, userHandle.reference) .boolean; } static final _updateServiceGroup = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Int32)>>("Context__updateServiceGroup") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, int)>(); /// from: public void updateServiceGroup(android.content.ServiceConnection serviceConnection, int i, int i1) void updateServiceGroup( jni.JObject serviceConnection, int i, int i1, ) { return _updateServiceGroup(reference, serviceConnection.reference, i, i1) .check(); } static final _unbindService = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__unbindService") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract void unbindService(android.content.ServiceConnection serviceConnection) void unbindService( jni.JObject serviceConnection, ) { return _unbindService(reference, serviceConnection.reference).check(); } static final _startInstrumentation = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__startInstrumentation") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract boolean startInstrumentation(android.content.ComponentName componentName, java.lang.String string, android.os.Bundle bundle) bool startInstrumentation( jni.JObject componentName, jni.JString string, jni.JObject bundle, ) { return _startInstrumentation(reference, componentName.reference, string.reference, bundle.reference) .boolean; } static final _getSystemService = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__getSystemService") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.lang.Object getSystemService(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. jni.JObject getSystemService( jni.JString string, ) { return const jni.JObjectType() .fromRef(_getSystemService(reference, string.reference).object); } static final _getSystemService1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__getSystemService1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public final T getSystemService(java.lang.Class class) /// The returned object must be released after use, by calling the [release] method. $T getSystemService1<$T extends jni.JObject>( jni.JObject class0, { required jni.JObjType<$T> T, }) { return T.fromRef(_getSystemService1(reference, class0.reference).object); } static final _getSystemServiceName = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__getSystemServiceName") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract java.lang.String getSystemServiceName(java.lang.Class class) /// The returned object must be released after use, by calling the [release] method. jni.JString getSystemServiceName( jni.JObject class0, ) { return const jni.JStringType() .fromRef(_getSystemServiceName(reference, class0.reference).object); } static final _checkPermission = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Int32)>>("Context__checkPermission") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, int)>(); /// from: public abstract int checkPermission(java.lang.String string, int i, int i1) int checkPermission( jni.JString string, int i, int i1, ) { return _checkPermission(reference, string.reference, i, i1).integer; } static final _checkCallingPermission = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__checkCallingPermission") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract int checkCallingPermission(java.lang.String string) int checkCallingPermission( jni.JString string, ) { return _checkCallingPermission(reference, string.reference).integer; } static final _checkCallingOrSelfPermission = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Context__checkCallingOrSelfPermission") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract int checkCallingOrSelfPermission(java.lang.String string) int checkCallingOrSelfPermission( jni.JString string, ) { return _checkCallingOrSelfPermission(reference, string.reference).integer; } static final _checkSelfPermission = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__checkSelfPermission") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract int checkSelfPermission(java.lang.String string) int checkSelfPermission( jni.JString string, ) { return _checkSelfPermission(reference, string.reference).integer; } static final _enforcePermission = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Context__enforcePermission") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, int, ffi.Pointer<ffi.Void>)>(); /// from: public abstract void enforcePermission(java.lang.String string, int i, int i1, java.lang.String string1) void enforcePermission( jni.JString string, int i, int i1, jni.JString string1, ) { return _enforcePermission( reference, string.reference, i, i1, string1.reference) .check(); } static final _enforceCallingPermission = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__enforceCallingPermission") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract void enforceCallingPermission(java.lang.String string, java.lang.String string1) void enforceCallingPermission( jni.JString string, jni.JString string1, ) { return _enforceCallingPermission( reference, string.reference, string1.reference) .check(); } static final _enforceCallingOrSelfPermission = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Context__enforceCallingOrSelfPermission") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract void enforceCallingOrSelfPermission(java.lang.String string, java.lang.String string1) void enforceCallingOrSelfPermission( jni.JString string, jni.JString string1, ) { return _enforceCallingOrSelfPermission( reference, string.reference, string1.reference) .check(); } static final _grantUriPermission = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Context__grantUriPermission") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public abstract void grantUriPermission(java.lang.String string, android.net.Uri uri, int i) void grantUriPermission( jni.JString string, jni.JObject uri, int i, ) { return _grantUriPermission(reference, string.reference, uri.reference, i) .check(); } static final _revokeUriPermission = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Context__revokeUriPermission") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public abstract void revokeUriPermission(android.net.Uri uri, int i) void revokeUriPermission( jni.JObject uri, int i, ) { return _revokeUriPermission(reference, uri.reference, i).check(); } static final _revokeUriPermission1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Context__revokeUriPermission1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public abstract void revokeUriPermission(java.lang.String string, android.net.Uri uri, int i) void revokeUriPermission1( jni.JString string, jni.JObject uri, int i, ) { return _revokeUriPermission1(reference, string.reference, uri.reference, i) .check(); } static final _checkUriPermission = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Int32, ffi.Int32)>>("Context__checkUriPermission") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, int, int)>(); /// from: public abstract int checkUriPermission(android.net.Uri uri, int i, int i1, int i2) int checkUriPermission( jni.JObject uri, int i, int i1, int i2, ) { return _checkUriPermission(reference, uri.reference, i, i1, i2).integer; } static final _checkUriPermissions = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Int32, ffi.Int32)>>("Context__checkUriPermissions") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, int, int)>(); /// from: public java.lang.Object[] checkUriPermissions(java.util.List list, int i, int i1, int i2) /// The returned object must be released after use, by calling the [release] method. jni.JArray<jni.jint> checkUriPermissions( jni.JList<jni.JObject> list, int i, int i1, int i2, ) { return const jni.JArrayType(jni.jintType()).fromRef( _checkUriPermissions(reference, list.reference, i, i1, i2).object); } static final _checkCallingUriPermission = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Context__checkCallingUriPermission") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public abstract int checkCallingUriPermission(android.net.Uri uri, int i) int checkCallingUriPermission( jni.JObject uri, int i, ) { return _checkCallingUriPermission(reference, uri.reference, i).integer; } static final _checkCallingUriPermissions = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Context__checkCallingUriPermissions") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public java.lang.Object[] checkCallingUriPermissions(java.util.List list, int i) /// The returned object must be released after use, by calling the [release] method. jni.JArray<jni.jint> checkCallingUriPermissions( jni.JList<jni.JObject> list, int i, ) { return const jni.JArrayType(jni.jintType()).fromRef( _checkCallingUriPermissions(reference, list.reference, i).object); } static final _checkCallingOrSelfUriPermission = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Context__checkCallingOrSelfUriPermission") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public abstract int checkCallingOrSelfUriPermission(android.net.Uri uri, int i) int checkCallingOrSelfUriPermission( jni.JObject uri, int i, ) { return _checkCallingOrSelfUriPermission(reference, uri.reference, i) .integer; } static final _checkCallingOrSelfUriPermissions = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Context__checkCallingOrSelfUriPermissions") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public java.lang.Object[] checkCallingOrSelfUriPermissions(java.util.List list, int i) /// The returned object must be released after use, by calling the [release] method. jni.JArray<jni.jint> checkCallingOrSelfUriPermissions( jni.JList<jni.JObject> list, int i, ) { return const jni.JArrayType(jni.jintType()).fromRef( _checkCallingOrSelfUriPermissions(reference, list.reference, i).object); } static final _checkUriPermission1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Int32, ffi.Int32)>>("Context__checkUriPermission1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, int, int)>(); /// from: public abstract int checkUriPermission(android.net.Uri uri, java.lang.String string, java.lang.String string1, int i, int i1, int i2) int checkUriPermission1( jni.JObject uri, jni.JString string, jni.JString string1, int i, int i1, int i2, ) { return _checkUriPermission1(reference, uri.reference, string.reference, string1.reference, i, i1, i2) .integer; } static final _enforceUriPermission = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Int32, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Context__enforceUriPermission") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, int, int, ffi.Pointer<ffi.Void>)>(); /// from: public abstract void enforceUriPermission(android.net.Uri uri, int i, int i1, int i2, java.lang.String string) void enforceUriPermission( jni.JObject uri, int i, int i1, int i2, jni.JString string, ) { return _enforceUriPermission( reference, uri.reference, i, i1, i2, string.reference) .check(); } static final _enforceCallingUriPermission = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>( "Context__enforceCallingUriPermission") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public abstract void enforceCallingUriPermission(android.net.Uri uri, int i, java.lang.String string) void enforceCallingUriPermission( jni.JObject uri, int i, jni.JString string, ) { return _enforceCallingUriPermission( reference, uri.reference, i, string.reference) .check(); } static final _enforceCallingOrSelfUriPermission = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>( "Context__enforceCallingOrSelfUriPermission") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public abstract void enforceCallingOrSelfUriPermission(android.net.Uri uri, int i, java.lang.String string) void enforceCallingOrSelfUriPermission( jni.JObject uri, int i, jni.JString string, ) { return _enforceCallingOrSelfUriPermission( reference, uri.reference, i, string.reference) .check(); } static final _enforceUriPermission1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Int32, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Context__enforceUriPermission1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, int, int, ffi.Pointer<ffi.Void>)>(); /// from: public abstract void enforceUriPermission(android.net.Uri uri, java.lang.String string, java.lang.String string1, int i, int i1, int i2, java.lang.String string2) void enforceUriPermission1( jni.JObject uri, jni.JString string, jni.JString string1, int i, int i1, int i2, jni.JString string2, ) { return _enforceUriPermission1(reference, uri.reference, string.reference, string1.reference, i, i1, i2, string2.reference) .check(); } static final _revokeSelfPermissionOnKill = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Context__revokeSelfPermissionOnKill") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void revokeSelfPermissionOnKill(java.lang.String string) void revokeSelfPermissionOnKill( jni.JString string, ) { return _revokeSelfPermissionOnKill(reference, string.reference).check(); } static final _revokeSelfPermissionsOnKill = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Context__revokeSelfPermissionsOnKill") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void revokeSelfPermissionsOnKill(java.util.Collection collection) void revokeSelfPermissionsOnKill( jni.JObject collection, ) { return _revokeSelfPermissionsOnKill(reference, collection.reference) .check(); } static final _createPackageContext = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Context__createPackageContext") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public abstract android.content.Context createPackageContext(java.lang.String string, int i) /// The returned object must be released after use, by calling the [release] method. Context createPackageContext( jni.JString string, int i, ) { return const $ContextType() .fromRef(_createPackageContext(reference, string.reference, i).object); } static final _createContextForSplit = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__createContextForSplit") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract android.content.Context createContextForSplit(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. Context createContextForSplit( jni.JString string, ) { return const $ContextType() .fromRef(_createContextForSplit(reference, string.reference).object); } static final _createConfigurationContext = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Context__createConfigurationContext") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract android.content.Context createConfigurationContext(android.content.res.Configuration configuration) /// The returned object must be released after use, by calling the [release] method. Context createConfigurationContext( jni.JObject configuration, ) { return const $ContextType().fromRef( _createConfigurationContext(reference, configuration.reference).object); } static final _createDisplayContext = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__createDisplayContext") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public abstract android.content.Context createDisplayContext(android.view.Display display) /// The returned object must be released after use, by calling the [release] method. Context createDisplayContext( jni.JObject display, ) { return const $ContextType() .fromRef(_createDisplayContext(reference, display.reference).object); } static final _createWindowContext = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Context__createWindowContext") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Context createWindowContext(int i, android.os.Bundle bundle) /// The returned object must be released after use, by calling the [release] method. Context createWindowContext( int i, jni.JObject bundle, ) { return const $ContextType() .fromRef(_createWindowContext(reference, i, bundle.reference).object); } static final _createWindowContext1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Context__createWindowContext1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Context createWindowContext(android.view.Display display, int i, android.os.Bundle bundle) /// The returned object must be released after use, by calling the [release] method. Context createWindowContext1( jni.JObject display, int i, jni.JObject bundle, ) { return const $ContextType().fromRef( _createWindowContext1(reference, display.reference, i, bundle.reference) .object); } static final _createContext = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__createContext") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Context createContext(android.content.ContextParams contextParams) /// The returned object must be released after use, by calling the [release] method. Context createContext( jni.JObject contextParams, ) { return const $ContextType() .fromRef(_createContext(reference, contextParams.reference).object); } static final _createAttributionContext = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Context__createAttributionContext") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Context createAttributionContext(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. Context createAttributionContext( jni.JString string, ) { return const $ContextType() .fromRef(_createAttributionContext(reference, string.reference).object); } static final _createDeviceProtectedStorageContext = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__createDeviceProtectedStorageContext") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract android.content.Context createDeviceProtectedStorageContext() /// The returned object must be released after use, by calling the [release] method. Context createDeviceProtectedStorageContext() { return const $ContextType() .fromRef(_createDeviceProtectedStorageContext(reference).object); } static final _getDisplay = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__getDisplay") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public android.view.Display getDisplay() /// The returned object must be released after use, by calling the [release] method. jni.JObject getDisplay() { return const jni.JObjectType().fromRef(_getDisplay(reference).object); } static final _isRestricted = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__isRestricted") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public boolean isRestricted() bool isRestricted() { return _isRestricted(reference).boolean; } static final _isDeviceProtectedStorage = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__isDeviceProtectedStorage") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public abstract boolean isDeviceProtectedStorage() bool isDeviceProtectedStorage() { return _isDeviceProtectedStorage(reference).boolean; } static final _isUiContext = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Context__isUiContext") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public boolean isUiContext() bool isUiContext() { return _isUiContext(reference).boolean; } } final class $ContextType extends jni.JObjType<Context> { const $ContextType(); @override String get signature => r"Landroid/content/Context;"; @override Context fromRef(jni.JObjectPtr ref) => Context.fromRef(ref); @override jni.JObjType get superType => const jni.JObjectType(); @override final superCount = 1; @override int get hashCode => ($ContextType).hashCode; @override bool operator ==(Object other) { return other.runtimeType == ($ContextType) && other is $ContextType; } } /// from: android.content.Intent$FilterComparison class Intent_FilterComparison extends jni.JObject { @override late final jni.JObjType<Intent_FilterComparison> $type = type; Intent_FilterComparison.fromRef( jni.JObjectPtr ref, ) : super.fromRef(ref); /// The type which includes information such as the signature of this class. static const type = $Intent_FilterComparisonType(); static final _new0 = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Intent_FilterComparison__new0") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void <init>(android.content.Intent intent) /// The returned object must be released after use, by calling the [release] method. factory Intent_FilterComparison( Intent intent, ) { return Intent_FilterComparison.fromRef(_new0(intent.reference).object); } static final _getIntent = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Intent_FilterComparison__getIntent") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent getIntent() /// The returned object must be released after use, by calling the [release] method. Intent getIntent() { return const $IntentType().fromRef(_getIntent(reference).object); } static final _equals1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent_FilterComparison__equals1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean equals(java.lang.Object object) bool equals1( jni.JObject object, ) { return _equals1(reference, object.reference).boolean; } static final _hashCode1 = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Intent_FilterComparison__hashCode1") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public int hashCode() int hashCode1() { return _hashCode1(reference).integer; } } final class $Intent_FilterComparisonType extends jni.JObjType<Intent_FilterComparison> { const $Intent_FilterComparisonType(); @override String get signature => r"Landroid/content/Intent$FilterComparison;"; @override Intent_FilterComparison fromRef(jni.JObjectPtr ref) => Intent_FilterComparison.fromRef(ref); @override jni.JObjType get superType => const jni.JObjectType(); @override final superCount = 1; @override int get hashCode => ($Intent_FilterComparisonType).hashCode; @override bool operator ==(Object other) { return other.runtimeType == ($Intent_FilterComparisonType) && other is $Intent_FilterComparisonType; } } /// from: android.content.Intent$ShortcutIconResource class Intent_ShortcutIconResource extends jni.JObject { @override late final jni.JObjType<Intent_ShortcutIconResource> $type = type; Intent_ShortcutIconResource.fromRef( jni.JObjectPtr ref, ) : super.fromRef(ref); /// The type which includes information such as the signature of this class. static const type = $Intent_ShortcutIconResourceType(); static final _get_CREATOR = jniLookup<ffi.NativeFunction<jni.JniResult Function()>>( "get_Intent_ShortcutIconResource__CREATOR") .asFunction<jni.JniResult Function()>(); /// from: static public final android.os.Parcelable$Creator CREATOR /// The returned object must be released after use, by calling the [release] method. static jni.JObject get CREATOR => const jni.JObjectType().fromRef(_get_CREATOR().object); static final _get_packageName = jniLookup< ffi.NativeFunction< jni.JniResult Function( jni.JObjectPtr, )>>("get_Intent_ShortcutIconResource__packageName") .asFunction< jni.JniResult Function( jni.JObjectPtr, )>(); static final _set_packageName = jniLookup< ffi.NativeFunction< jni.JniResult Function( jni.JObjectPtr, ffi.Pointer<ffi.Void>)>>( "set_Intent_ShortcutIconResource__packageName") .asFunction< jni.JniResult Function(jni.JObjectPtr, ffi.Pointer<ffi.Void>)>(); /// from: public java.lang.String packageName /// The returned object must be released after use, by calling the [release] method. jni.JString get packageName => const jni.JStringType().fromRef(_get_packageName(reference).object); /// from: public java.lang.String packageName /// The returned object must be released after use, by calling the [release] method. set packageName(jni.JString value) => _set_packageName(reference, value.reference).check(); static final _get_resourceName = jniLookup< ffi.NativeFunction< jni.JniResult Function( jni.JObjectPtr, )>>("get_Intent_ShortcutIconResource__resourceName") .asFunction< jni.JniResult Function( jni.JObjectPtr, )>(); static final _set_resourceName = jniLookup< ffi.NativeFunction< jni.JniResult Function( jni.JObjectPtr, ffi.Pointer<ffi.Void>)>>( "set_Intent_ShortcutIconResource__resourceName") .asFunction< jni.JniResult Function(jni.JObjectPtr, ffi.Pointer<ffi.Void>)>(); /// from: public java.lang.String resourceName /// The returned object must be released after use, by calling the [release] method. jni.JString get resourceName => const jni.JStringType().fromRef(_get_resourceName(reference).object); /// from: public java.lang.String resourceName /// The returned object must be released after use, by calling the [release] method. set resourceName(jni.JString value) => _set_resourceName(reference, value.reference).check(); static final _new0 = jniLookup<ffi.NativeFunction<jni.JniResult Function()>>( "Intent_ShortcutIconResource__new0") .asFunction<jni.JniResult Function()>(); /// from: public void <init>() /// The returned object must be released after use, by calling the [release] method. factory Intent_ShortcutIconResource() { return Intent_ShortcutIconResource.fromRef(_new0().object); } static final _fromContext = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32)>>("Intent_ShortcutIconResource__fromContext") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: static public android.content.Intent$ShortcutIconResource fromContext(android.content.Context context, int i) /// The returned object must be released after use, by calling the [release] method. static Intent_ShortcutIconResource fromContext( Context context, int i, ) { return const $Intent_ShortcutIconResourceType() .fromRef(_fromContext(context.reference, i).object); } static final _describeContents = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Intent_ShortcutIconResource__describeContents") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public int describeContents() int describeContents() { return _describeContents(reference).integer; } static final _writeToParcel = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Intent_ShortcutIconResource__writeToParcel") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public void writeToParcel(android.os.Parcel parcel, int i) void writeToParcel( jni.JObject parcel, int i, ) { return _writeToParcel(reference, parcel.reference, i).check(); } static final _toString1 = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Intent_ShortcutIconResource__toString1") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public java.lang.String toString() /// The returned object must be released after use, by calling the [release] method. jni.JString toString1() { return const jni.JStringType().fromRef(_toString1(reference).object); } } final class $Intent_ShortcutIconResourceType extends jni.JObjType<Intent_ShortcutIconResource> { const $Intent_ShortcutIconResourceType(); @override String get signature => r"Landroid/content/Intent$ShortcutIconResource;"; @override Intent_ShortcutIconResource fromRef(jni.JObjectPtr ref) => Intent_ShortcutIconResource.fromRef(ref); @override jni.JObjType get superType => const jni.JObjectType(); @override final superCount = 1; @override int get hashCode => ($Intent_ShortcutIconResourceType).hashCode; @override bool operator ==(Object other) { return other.runtimeType == ($Intent_ShortcutIconResourceType) && other is $Intent_ShortcutIconResourceType; } } /// from: android.content.Intent class Intent extends jni.JObject { @override late final jni.JObjType<Intent> $type = type; Intent.fromRef( jni.JObjectPtr ref, ) : super.fromRef(ref); /// The type which includes information such as the signature of this class. static const type = $IntentType(); /// from: static public final java.lang.String ACTION_AIRPLANE_MODE_CHANGED static const ACTION_AIRPLANE_MODE_CHANGED = r"""android.intent.action.AIRPLANE_MODE"""; /// from: static public final java.lang.String ACTION_ALL_APPS static const ACTION_ALL_APPS = r"""android.intent.action.ALL_APPS"""; /// from: static public final java.lang.String ACTION_ANSWER static const ACTION_ANSWER = r"""android.intent.action.ANSWER"""; /// from: static public final java.lang.String ACTION_APPLICATION_LOCALE_CHANGED static const ACTION_APPLICATION_LOCALE_CHANGED = r"""android.intent.action.APPLICATION_LOCALE_CHANGED"""; /// from: static public final java.lang.String ACTION_APPLICATION_PREFERENCES static const ACTION_APPLICATION_PREFERENCES = r"""android.intent.action.APPLICATION_PREFERENCES"""; /// from: static public final java.lang.String ACTION_APPLICATION_RESTRICTIONS_CHANGED static const ACTION_APPLICATION_RESTRICTIONS_CHANGED = r"""android.intent.action.APPLICATION_RESTRICTIONS_CHANGED"""; /// from: static public final java.lang.String ACTION_APP_ERROR static const ACTION_APP_ERROR = r"""android.intent.action.APP_ERROR"""; /// from: static public final java.lang.String ACTION_ASSIST static const ACTION_ASSIST = r"""android.intent.action.ASSIST"""; /// from: static public final java.lang.String ACTION_ATTACH_DATA static const ACTION_ATTACH_DATA = r"""android.intent.action.ATTACH_DATA"""; /// from: static public final java.lang.String ACTION_AUTO_REVOKE_PERMISSIONS static const ACTION_AUTO_REVOKE_PERMISSIONS = r"""android.intent.action.AUTO_REVOKE_PERMISSIONS"""; /// from: static public final java.lang.String ACTION_BATTERY_CHANGED static const ACTION_BATTERY_CHANGED = r"""android.intent.action.BATTERY_CHANGED"""; /// from: static public final java.lang.String ACTION_BATTERY_LOW static const ACTION_BATTERY_LOW = r"""android.intent.action.BATTERY_LOW"""; /// from: static public final java.lang.String ACTION_BATTERY_OKAY static const ACTION_BATTERY_OKAY = r"""android.intent.action.BATTERY_OKAY"""; /// from: static public final java.lang.String ACTION_BOOT_COMPLETED static const ACTION_BOOT_COMPLETED = r"""android.intent.action.BOOT_COMPLETED"""; /// from: static public final java.lang.String ACTION_BUG_REPORT static const ACTION_BUG_REPORT = r"""android.intent.action.BUG_REPORT"""; /// from: static public final java.lang.String ACTION_CALL static const ACTION_CALL = r"""android.intent.action.CALL"""; /// from: static public final java.lang.String ACTION_CALL_BUTTON static const ACTION_CALL_BUTTON = r"""android.intent.action.CALL_BUTTON"""; /// from: static public final java.lang.String ACTION_CAMERA_BUTTON static const ACTION_CAMERA_BUTTON = r"""android.intent.action.CAMERA_BUTTON"""; /// from: static public final java.lang.String ACTION_CARRIER_SETUP static const ACTION_CARRIER_SETUP = r"""android.intent.action.CARRIER_SETUP"""; /// from: static public final java.lang.String ACTION_CHOOSER static const ACTION_CHOOSER = r"""android.intent.action.CHOOSER"""; /// from: static public final java.lang.String ACTION_CLOSE_SYSTEM_DIALOGS static const ACTION_CLOSE_SYSTEM_DIALOGS = r"""android.intent.action.CLOSE_SYSTEM_DIALOGS"""; /// from: static public final java.lang.String ACTION_CONFIGURATION_CHANGED static const ACTION_CONFIGURATION_CHANGED = r"""android.intent.action.CONFIGURATION_CHANGED"""; /// from: static public final java.lang.String ACTION_CREATE_DOCUMENT static const ACTION_CREATE_DOCUMENT = r"""android.intent.action.CREATE_DOCUMENT"""; /// from: static public final java.lang.String ACTION_CREATE_REMINDER static const ACTION_CREATE_REMINDER = r"""android.intent.action.CREATE_REMINDER"""; /// from: static public final java.lang.String ACTION_CREATE_SHORTCUT static const ACTION_CREATE_SHORTCUT = r"""android.intent.action.CREATE_SHORTCUT"""; /// from: static public final java.lang.String ACTION_DATE_CHANGED static const ACTION_DATE_CHANGED = r"""android.intent.action.DATE_CHANGED"""; /// from: static public final java.lang.String ACTION_DEFAULT static const ACTION_DEFAULT = r"""android.intent.action.VIEW"""; /// from: static public final java.lang.String ACTION_DEFINE static const ACTION_DEFINE = r"""android.intent.action.DEFINE"""; /// from: static public final java.lang.String ACTION_DELETE static const ACTION_DELETE = r"""android.intent.action.DELETE"""; /// from: static public final java.lang.String ACTION_DEVICE_STORAGE_LOW static const ACTION_DEVICE_STORAGE_LOW = r"""android.intent.action.DEVICE_STORAGE_LOW"""; /// from: static public final java.lang.String ACTION_DEVICE_STORAGE_OK static const ACTION_DEVICE_STORAGE_OK = r"""android.intent.action.DEVICE_STORAGE_OK"""; /// from: static public final java.lang.String ACTION_DIAL static const ACTION_DIAL = r"""android.intent.action.DIAL"""; /// from: static public final java.lang.String ACTION_DOCK_EVENT static const ACTION_DOCK_EVENT = r"""android.intent.action.DOCK_EVENT"""; /// from: static public final java.lang.String ACTION_DREAMING_STARTED static const ACTION_DREAMING_STARTED = r"""android.intent.action.DREAMING_STARTED"""; /// from: static public final java.lang.String ACTION_DREAMING_STOPPED static const ACTION_DREAMING_STOPPED = r"""android.intent.action.DREAMING_STOPPED"""; /// from: static public final java.lang.String ACTION_EDIT static const ACTION_EDIT = r"""android.intent.action.EDIT"""; /// from: static public final java.lang.String ACTION_EXTERNAL_APPLICATIONS_AVAILABLE static const ACTION_EXTERNAL_APPLICATIONS_AVAILABLE = r"""android.intent.action.EXTERNAL_APPLICATIONS_AVAILABLE"""; /// from: static public final java.lang.String ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE static const ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE = r"""android.intent.action.EXTERNAL_APPLICATIONS_UNAVAILABLE"""; /// from: static public final java.lang.String ACTION_FACTORY_TEST static const ACTION_FACTORY_TEST = r"""android.intent.action.FACTORY_TEST"""; /// from: static public final java.lang.String ACTION_GET_CONTENT static const ACTION_GET_CONTENT = r"""android.intent.action.GET_CONTENT"""; /// from: static public final java.lang.String ACTION_GET_RESTRICTION_ENTRIES static const ACTION_GET_RESTRICTION_ENTRIES = r"""android.intent.action.GET_RESTRICTION_ENTRIES"""; /// from: static public final java.lang.String ACTION_GTALK_SERVICE_CONNECTED static const ACTION_GTALK_SERVICE_CONNECTED = r"""android.intent.action.GTALK_CONNECTED"""; /// from: static public final java.lang.String ACTION_GTALK_SERVICE_DISCONNECTED static const ACTION_GTALK_SERVICE_DISCONNECTED = r"""android.intent.action.GTALK_DISCONNECTED"""; /// from: static public final java.lang.String ACTION_HEADSET_PLUG static const ACTION_HEADSET_PLUG = r"""android.intent.action.HEADSET_PLUG"""; /// from: static public final java.lang.String ACTION_INPUT_METHOD_CHANGED static const ACTION_INPUT_METHOD_CHANGED = r"""android.intent.action.INPUT_METHOD_CHANGED"""; /// from: static public final java.lang.String ACTION_INSERT static const ACTION_INSERT = r"""android.intent.action.INSERT"""; /// from: static public final java.lang.String ACTION_INSERT_OR_EDIT static const ACTION_INSERT_OR_EDIT = r"""android.intent.action.INSERT_OR_EDIT"""; /// from: static public final java.lang.String ACTION_INSTALL_FAILURE static const ACTION_INSTALL_FAILURE = r"""android.intent.action.INSTALL_FAILURE"""; /// from: static public final java.lang.String ACTION_INSTALL_PACKAGE static const ACTION_INSTALL_PACKAGE = r"""android.intent.action.INSTALL_PACKAGE"""; /// from: static public final java.lang.String ACTION_LOCALE_CHANGED static const ACTION_LOCALE_CHANGED = r"""android.intent.action.LOCALE_CHANGED"""; /// from: static public final java.lang.String ACTION_LOCKED_BOOT_COMPLETED static const ACTION_LOCKED_BOOT_COMPLETED = r"""android.intent.action.LOCKED_BOOT_COMPLETED"""; /// from: static public final java.lang.String ACTION_MAIN static const ACTION_MAIN = r"""android.intent.action.MAIN"""; /// from: static public final java.lang.String ACTION_MANAGED_PROFILE_ADDED static const ACTION_MANAGED_PROFILE_ADDED = r"""android.intent.action.MANAGED_PROFILE_ADDED"""; /// from: static public final java.lang.String ACTION_MANAGED_PROFILE_AVAILABLE static const ACTION_MANAGED_PROFILE_AVAILABLE = r"""android.intent.action.MANAGED_PROFILE_AVAILABLE"""; /// from: static public final java.lang.String ACTION_MANAGED_PROFILE_REMOVED static const ACTION_MANAGED_PROFILE_REMOVED = r"""android.intent.action.MANAGED_PROFILE_REMOVED"""; /// from: static public final java.lang.String ACTION_MANAGED_PROFILE_UNAVAILABLE static const ACTION_MANAGED_PROFILE_UNAVAILABLE = r"""android.intent.action.MANAGED_PROFILE_UNAVAILABLE"""; /// from: static public final java.lang.String ACTION_MANAGED_PROFILE_UNLOCKED static const ACTION_MANAGED_PROFILE_UNLOCKED = r"""android.intent.action.MANAGED_PROFILE_UNLOCKED"""; /// from: static public final java.lang.String ACTION_MANAGE_NETWORK_USAGE static const ACTION_MANAGE_NETWORK_USAGE = r"""android.intent.action.MANAGE_NETWORK_USAGE"""; /// from: static public final java.lang.String ACTION_MANAGE_PACKAGE_STORAGE static const ACTION_MANAGE_PACKAGE_STORAGE = r"""android.intent.action.MANAGE_PACKAGE_STORAGE"""; /// from: static public final java.lang.String ACTION_MANAGE_UNUSED_APPS static const ACTION_MANAGE_UNUSED_APPS = r"""android.intent.action.MANAGE_UNUSED_APPS"""; /// from: static public final java.lang.String ACTION_MEDIA_BAD_REMOVAL static const ACTION_MEDIA_BAD_REMOVAL = r"""android.intent.action.MEDIA_BAD_REMOVAL"""; /// from: static public final java.lang.String ACTION_MEDIA_BUTTON static const ACTION_MEDIA_BUTTON = r"""android.intent.action.MEDIA_BUTTON"""; /// from: static public final java.lang.String ACTION_MEDIA_CHECKING static const ACTION_MEDIA_CHECKING = r"""android.intent.action.MEDIA_CHECKING"""; /// from: static public final java.lang.String ACTION_MEDIA_EJECT static const ACTION_MEDIA_EJECT = r"""android.intent.action.MEDIA_EJECT"""; /// from: static public final java.lang.String ACTION_MEDIA_MOUNTED static const ACTION_MEDIA_MOUNTED = r"""android.intent.action.MEDIA_MOUNTED"""; /// from: static public final java.lang.String ACTION_MEDIA_NOFS static const ACTION_MEDIA_NOFS = r"""android.intent.action.MEDIA_NOFS"""; /// from: static public final java.lang.String ACTION_MEDIA_REMOVED static const ACTION_MEDIA_REMOVED = r"""android.intent.action.MEDIA_REMOVED"""; /// from: static public final java.lang.String ACTION_MEDIA_SCANNER_FINISHED static const ACTION_MEDIA_SCANNER_FINISHED = r"""android.intent.action.MEDIA_SCANNER_FINISHED"""; /// from: static public final java.lang.String ACTION_MEDIA_SCANNER_SCAN_FILE static const ACTION_MEDIA_SCANNER_SCAN_FILE = r"""android.intent.action.MEDIA_SCANNER_SCAN_FILE"""; /// from: static public final java.lang.String ACTION_MEDIA_SCANNER_STARTED static const ACTION_MEDIA_SCANNER_STARTED = r"""android.intent.action.MEDIA_SCANNER_STARTED"""; /// from: static public final java.lang.String ACTION_MEDIA_SHARED static const ACTION_MEDIA_SHARED = r"""android.intent.action.MEDIA_SHARED"""; /// from: static public final java.lang.String ACTION_MEDIA_UNMOUNTABLE static const ACTION_MEDIA_UNMOUNTABLE = r"""android.intent.action.MEDIA_UNMOUNTABLE"""; /// from: static public final java.lang.String ACTION_MEDIA_UNMOUNTED static const ACTION_MEDIA_UNMOUNTED = r"""android.intent.action.MEDIA_UNMOUNTED"""; /// from: static public final java.lang.String ACTION_MY_PACKAGE_REPLACED static const ACTION_MY_PACKAGE_REPLACED = r"""android.intent.action.MY_PACKAGE_REPLACED"""; /// from: static public final java.lang.String ACTION_MY_PACKAGE_SUSPENDED static const ACTION_MY_PACKAGE_SUSPENDED = r"""android.intent.action.MY_PACKAGE_SUSPENDED"""; /// from: static public final java.lang.String ACTION_MY_PACKAGE_UNSUSPENDED static const ACTION_MY_PACKAGE_UNSUSPENDED = r"""android.intent.action.MY_PACKAGE_UNSUSPENDED"""; /// from: static public final java.lang.String ACTION_NEW_OUTGOING_CALL static const ACTION_NEW_OUTGOING_CALL = r"""android.intent.action.NEW_OUTGOING_CALL"""; /// from: static public final java.lang.String ACTION_OPEN_DOCUMENT static const ACTION_OPEN_DOCUMENT = r"""android.intent.action.OPEN_DOCUMENT"""; /// from: static public final java.lang.String ACTION_OPEN_DOCUMENT_TREE static const ACTION_OPEN_DOCUMENT_TREE = r"""android.intent.action.OPEN_DOCUMENT_TREE"""; /// from: static public final java.lang.String ACTION_PACKAGES_SUSPENDED static const ACTION_PACKAGES_SUSPENDED = r"""android.intent.action.PACKAGES_SUSPENDED"""; /// from: static public final java.lang.String ACTION_PACKAGES_UNSUSPENDED static const ACTION_PACKAGES_UNSUSPENDED = r"""android.intent.action.PACKAGES_UNSUSPENDED"""; /// from: static public final java.lang.String ACTION_PACKAGE_ADDED static const ACTION_PACKAGE_ADDED = r"""android.intent.action.PACKAGE_ADDED"""; /// from: static public final java.lang.String ACTION_PACKAGE_CHANGED static const ACTION_PACKAGE_CHANGED = r"""android.intent.action.PACKAGE_CHANGED"""; /// from: static public final java.lang.String ACTION_PACKAGE_DATA_CLEARED static const ACTION_PACKAGE_DATA_CLEARED = r"""android.intent.action.PACKAGE_DATA_CLEARED"""; /// from: static public final java.lang.String ACTION_PACKAGE_FIRST_LAUNCH static const ACTION_PACKAGE_FIRST_LAUNCH = r"""android.intent.action.PACKAGE_FIRST_LAUNCH"""; /// from: static public final java.lang.String ACTION_PACKAGE_FULLY_REMOVED static const ACTION_PACKAGE_FULLY_REMOVED = r"""android.intent.action.PACKAGE_FULLY_REMOVED"""; /// from: static public final java.lang.String ACTION_PACKAGE_INSTALL static const ACTION_PACKAGE_INSTALL = r"""android.intent.action.PACKAGE_INSTALL"""; /// from: static public final java.lang.String ACTION_PACKAGE_NEEDS_VERIFICATION static const ACTION_PACKAGE_NEEDS_VERIFICATION = r"""android.intent.action.PACKAGE_NEEDS_VERIFICATION"""; /// from: static public final java.lang.String ACTION_PACKAGE_REMOVED static const ACTION_PACKAGE_REMOVED = r"""android.intent.action.PACKAGE_REMOVED"""; /// from: static public final java.lang.String ACTION_PACKAGE_REPLACED static const ACTION_PACKAGE_REPLACED = r"""android.intent.action.PACKAGE_REPLACED"""; /// from: static public final java.lang.String ACTION_PACKAGE_RESTARTED static const ACTION_PACKAGE_RESTARTED = r"""android.intent.action.PACKAGE_RESTARTED"""; /// from: static public final java.lang.String ACTION_PACKAGE_VERIFIED static const ACTION_PACKAGE_VERIFIED = r"""android.intent.action.PACKAGE_VERIFIED"""; /// from: static public final java.lang.String ACTION_PASTE static const ACTION_PASTE = r"""android.intent.action.PASTE"""; /// from: static public final java.lang.String ACTION_PICK static const ACTION_PICK = r"""android.intent.action.PICK"""; /// from: static public final java.lang.String ACTION_PICK_ACTIVITY static const ACTION_PICK_ACTIVITY = r"""android.intent.action.PICK_ACTIVITY"""; /// from: static public final java.lang.String ACTION_POWER_CONNECTED static const ACTION_POWER_CONNECTED = r"""android.intent.action.ACTION_POWER_CONNECTED"""; /// from: static public final java.lang.String ACTION_POWER_DISCONNECTED static const ACTION_POWER_DISCONNECTED = r"""android.intent.action.ACTION_POWER_DISCONNECTED"""; /// from: static public final java.lang.String ACTION_POWER_USAGE_SUMMARY static const ACTION_POWER_USAGE_SUMMARY = r"""android.intent.action.POWER_USAGE_SUMMARY"""; /// from: static public final java.lang.String ACTION_PROCESS_TEXT static const ACTION_PROCESS_TEXT = r"""android.intent.action.PROCESS_TEXT"""; /// from: static public final java.lang.String ACTION_PROFILE_ACCESSIBLE static const ACTION_PROFILE_ACCESSIBLE = r"""android.intent.action.PROFILE_ACCESSIBLE"""; /// from: static public final java.lang.String ACTION_PROFILE_INACCESSIBLE static const ACTION_PROFILE_INACCESSIBLE = r"""android.intent.action.PROFILE_INACCESSIBLE"""; /// from: static public final java.lang.String ACTION_PROVIDER_CHANGED static const ACTION_PROVIDER_CHANGED = r"""android.intent.action.PROVIDER_CHANGED"""; /// from: static public final java.lang.String ACTION_QUICK_CLOCK static const ACTION_QUICK_CLOCK = r"""android.intent.action.QUICK_CLOCK"""; /// from: static public final java.lang.String ACTION_QUICK_VIEW static const ACTION_QUICK_VIEW = r"""android.intent.action.QUICK_VIEW"""; /// from: static public final java.lang.String ACTION_REBOOT static const ACTION_REBOOT = r"""android.intent.action.REBOOT"""; /// from: static public final java.lang.String ACTION_RUN static const ACTION_RUN = r"""android.intent.action.RUN"""; /// from: static public final java.lang.String ACTION_SAFETY_CENTER static const ACTION_SAFETY_CENTER = r"""android.intent.action.SAFETY_CENTER"""; /// from: static public final java.lang.String ACTION_SCREEN_OFF static const ACTION_SCREEN_OFF = r"""android.intent.action.SCREEN_OFF"""; /// from: static public final java.lang.String ACTION_SCREEN_ON static const ACTION_SCREEN_ON = r"""android.intent.action.SCREEN_ON"""; /// from: static public final java.lang.String ACTION_SEARCH static const ACTION_SEARCH = r"""android.intent.action.SEARCH"""; /// from: static public final java.lang.String ACTION_SEARCH_LONG_PRESS static const ACTION_SEARCH_LONG_PRESS = r"""android.intent.action.SEARCH_LONG_PRESS"""; /// from: static public final java.lang.String ACTION_SEND static const ACTION_SEND = r"""android.intent.action.SEND"""; /// from: static public final java.lang.String ACTION_SENDTO static const ACTION_SENDTO = r"""android.intent.action.SENDTO"""; /// from: static public final java.lang.String ACTION_SEND_MULTIPLE static const ACTION_SEND_MULTIPLE = r"""android.intent.action.SEND_MULTIPLE"""; /// from: static public final java.lang.String ACTION_SET_WALLPAPER static const ACTION_SET_WALLPAPER = r"""android.intent.action.SET_WALLPAPER"""; /// from: static public final java.lang.String ACTION_SHOW_APP_INFO static const ACTION_SHOW_APP_INFO = r"""android.intent.action.SHOW_APP_INFO"""; /// from: static public final java.lang.String ACTION_SHOW_WORK_APPS static const ACTION_SHOW_WORK_APPS = r"""android.intent.action.SHOW_WORK_APPS"""; /// from: static public final java.lang.String ACTION_SHUTDOWN static const ACTION_SHUTDOWN = r"""android.intent.action.ACTION_SHUTDOWN"""; /// from: static public final java.lang.String ACTION_SYNC static const ACTION_SYNC = r"""android.intent.action.SYNC"""; /// from: static public final java.lang.String ACTION_SYSTEM_TUTORIAL static const ACTION_SYSTEM_TUTORIAL = r"""android.intent.action.SYSTEM_TUTORIAL"""; /// from: static public final java.lang.String ACTION_TIMEZONE_CHANGED static const ACTION_TIMEZONE_CHANGED = r"""android.intent.action.TIMEZONE_CHANGED"""; /// from: static public final java.lang.String ACTION_TIME_CHANGED static const ACTION_TIME_CHANGED = r"""android.intent.action.TIME_SET"""; /// from: static public final java.lang.String ACTION_TIME_TICK static const ACTION_TIME_TICK = r"""android.intent.action.TIME_TICK"""; /// from: static public final java.lang.String ACTION_TRANSLATE static const ACTION_TRANSLATE = r"""android.intent.action.TRANSLATE"""; /// from: static public final java.lang.String ACTION_UID_REMOVED static const ACTION_UID_REMOVED = r"""android.intent.action.UID_REMOVED"""; /// from: static public final java.lang.String ACTION_UMS_CONNECTED static const ACTION_UMS_CONNECTED = r"""android.intent.action.UMS_CONNECTED"""; /// from: static public final java.lang.String ACTION_UMS_DISCONNECTED static const ACTION_UMS_DISCONNECTED = r"""android.intent.action.UMS_DISCONNECTED"""; /// from: static public final java.lang.String ACTION_UNINSTALL_PACKAGE static const ACTION_UNINSTALL_PACKAGE = r"""android.intent.action.UNINSTALL_PACKAGE"""; /// from: static public final java.lang.String ACTION_USER_BACKGROUND static const ACTION_USER_BACKGROUND = r"""android.intent.action.USER_BACKGROUND"""; /// from: static public final java.lang.String ACTION_USER_FOREGROUND static const ACTION_USER_FOREGROUND = r"""android.intent.action.USER_FOREGROUND"""; /// from: static public final java.lang.String ACTION_USER_INITIALIZE static const ACTION_USER_INITIALIZE = r"""android.intent.action.USER_INITIALIZE"""; /// from: static public final java.lang.String ACTION_USER_PRESENT static const ACTION_USER_PRESENT = r"""android.intent.action.USER_PRESENT"""; /// from: static public final java.lang.String ACTION_USER_UNLOCKED static const ACTION_USER_UNLOCKED = r"""android.intent.action.USER_UNLOCKED"""; /// from: static public final java.lang.String ACTION_VIEW static const ACTION_VIEW = r"""android.intent.action.VIEW"""; /// from: static public final java.lang.String ACTION_VIEW_LOCUS static const ACTION_VIEW_LOCUS = r"""android.intent.action.VIEW_LOCUS"""; /// from: static public final java.lang.String ACTION_VIEW_PERMISSION_USAGE static const ACTION_VIEW_PERMISSION_USAGE = r"""android.intent.action.VIEW_PERMISSION_USAGE"""; /// from: static public final java.lang.String ACTION_VIEW_PERMISSION_USAGE_FOR_PERIOD static const ACTION_VIEW_PERMISSION_USAGE_FOR_PERIOD = r"""android.intent.action.VIEW_PERMISSION_USAGE_FOR_PERIOD"""; /// from: static public final java.lang.String ACTION_VOICE_COMMAND static const ACTION_VOICE_COMMAND = r"""android.intent.action.VOICE_COMMAND"""; /// from: static public final java.lang.String ACTION_WALLPAPER_CHANGED static const ACTION_WALLPAPER_CHANGED = r"""android.intent.action.WALLPAPER_CHANGED"""; /// from: static public final java.lang.String ACTION_WEB_SEARCH static const ACTION_WEB_SEARCH = r"""android.intent.action.WEB_SEARCH"""; /// from: static public final java.lang.String CATEGORY_ACCESSIBILITY_SHORTCUT_TARGET static const CATEGORY_ACCESSIBILITY_SHORTCUT_TARGET = r"""android.intent.category.ACCESSIBILITY_SHORTCUT_TARGET"""; /// from: static public final java.lang.String CATEGORY_ALTERNATIVE static const CATEGORY_ALTERNATIVE = r"""android.intent.category.ALTERNATIVE"""; /// from: static public final java.lang.String CATEGORY_APP_BROWSER static const CATEGORY_APP_BROWSER = r"""android.intent.category.APP_BROWSER"""; /// from: static public final java.lang.String CATEGORY_APP_CALCULATOR static const CATEGORY_APP_CALCULATOR = r"""android.intent.category.APP_CALCULATOR"""; /// from: static public final java.lang.String CATEGORY_APP_CALENDAR static const CATEGORY_APP_CALENDAR = r"""android.intent.category.APP_CALENDAR"""; /// from: static public final java.lang.String CATEGORY_APP_CONTACTS static const CATEGORY_APP_CONTACTS = r"""android.intent.category.APP_CONTACTS"""; /// from: static public final java.lang.String CATEGORY_APP_EMAIL static const CATEGORY_APP_EMAIL = r"""android.intent.category.APP_EMAIL"""; /// from: static public final java.lang.String CATEGORY_APP_FILES static const CATEGORY_APP_FILES = r"""android.intent.category.APP_FILES"""; /// from: static public final java.lang.String CATEGORY_APP_FITNESS static const CATEGORY_APP_FITNESS = r"""android.intent.category.APP_FITNESS"""; /// from: static public final java.lang.String CATEGORY_APP_GALLERY static const CATEGORY_APP_GALLERY = r"""android.intent.category.APP_GALLERY"""; /// from: static public final java.lang.String CATEGORY_APP_MAPS static const CATEGORY_APP_MAPS = r"""android.intent.category.APP_MAPS"""; /// from: static public final java.lang.String CATEGORY_APP_MARKET static const CATEGORY_APP_MARKET = r"""android.intent.category.APP_MARKET"""; /// from: static public final java.lang.String CATEGORY_APP_MESSAGING static const CATEGORY_APP_MESSAGING = r"""android.intent.category.APP_MESSAGING"""; /// from: static public final java.lang.String CATEGORY_APP_MUSIC static const CATEGORY_APP_MUSIC = r"""android.intent.category.APP_MUSIC"""; /// from: static public final java.lang.String CATEGORY_APP_WEATHER static const CATEGORY_APP_WEATHER = r"""android.intent.category.APP_WEATHER"""; /// from: static public final java.lang.String CATEGORY_BROWSABLE static const CATEGORY_BROWSABLE = r"""android.intent.category.BROWSABLE"""; /// from: static public final java.lang.String CATEGORY_CAR_DOCK static const CATEGORY_CAR_DOCK = r"""android.intent.category.CAR_DOCK"""; /// from: static public final java.lang.String CATEGORY_CAR_MODE static const CATEGORY_CAR_MODE = r"""android.intent.category.CAR_MODE"""; /// from: static public final java.lang.String CATEGORY_DEFAULT static const CATEGORY_DEFAULT = r"""android.intent.category.DEFAULT"""; /// from: static public final java.lang.String CATEGORY_DESK_DOCK static const CATEGORY_DESK_DOCK = r"""android.intent.category.DESK_DOCK"""; /// from: static public final java.lang.String CATEGORY_DEVELOPMENT_PREFERENCE static const CATEGORY_DEVELOPMENT_PREFERENCE = r"""android.intent.category.DEVELOPMENT_PREFERENCE"""; /// from: static public final java.lang.String CATEGORY_EMBED static const CATEGORY_EMBED = r"""android.intent.category.EMBED"""; /// from: static public final java.lang.String CATEGORY_FRAMEWORK_INSTRUMENTATION_TEST static const CATEGORY_FRAMEWORK_INSTRUMENTATION_TEST = r"""android.intent.category.FRAMEWORK_INSTRUMENTATION_TEST"""; /// from: static public final java.lang.String CATEGORY_HE_DESK_DOCK static const CATEGORY_HE_DESK_DOCK = r"""android.intent.category.HE_DESK_DOCK"""; /// from: static public final java.lang.String CATEGORY_HOME static const CATEGORY_HOME = r"""android.intent.category.HOME"""; /// from: static public final java.lang.String CATEGORY_INFO static const CATEGORY_INFO = r"""android.intent.category.INFO"""; /// from: static public final java.lang.String CATEGORY_LAUNCHER static const CATEGORY_LAUNCHER = r"""android.intent.category.LAUNCHER"""; /// from: static public final java.lang.String CATEGORY_LEANBACK_LAUNCHER static const CATEGORY_LEANBACK_LAUNCHER = r"""android.intent.category.LEANBACK_LAUNCHER"""; /// from: static public final java.lang.String CATEGORY_LE_DESK_DOCK static const CATEGORY_LE_DESK_DOCK = r"""android.intent.category.LE_DESK_DOCK"""; /// from: static public final java.lang.String CATEGORY_MONKEY static const CATEGORY_MONKEY = r"""android.intent.category.MONKEY"""; /// from: static public final java.lang.String CATEGORY_OPENABLE static const CATEGORY_OPENABLE = r"""android.intent.category.OPENABLE"""; /// from: static public final java.lang.String CATEGORY_PREFERENCE static const CATEGORY_PREFERENCE = r"""android.intent.category.PREFERENCE"""; /// from: static public final java.lang.String CATEGORY_SAMPLE_CODE static const CATEGORY_SAMPLE_CODE = r"""android.intent.category.SAMPLE_CODE"""; /// from: static public final java.lang.String CATEGORY_SECONDARY_HOME static const CATEGORY_SECONDARY_HOME = r"""android.intent.category.SECONDARY_HOME"""; /// from: static public final java.lang.String CATEGORY_SELECTED_ALTERNATIVE static const CATEGORY_SELECTED_ALTERNATIVE = r"""android.intent.category.SELECTED_ALTERNATIVE"""; /// from: static public final java.lang.String CATEGORY_TAB static const CATEGORY_TAB = r"""android.intent.category.TAB"""; /// from: static public final java.lang.String CATEGORY_TEST static const CATEGORY_TEST = r"""android.intent.category.TEST"""; /// from: static public final java.lang.String CATEGORY_TYPED_OPENABLE static const CATEGORY_TYPED_OPENABLE = r"""android.intent.category.TYPED_OPENABLE"""; /// from: static public final java.lang.String CATEGORY_UNIT_TEST static const CATEGORY_UNIT_TEST = r"""android.intent.category.UNIT_TEST"""; /// from: static public final java.lang.String CATEGORY_VOICE static const CATEGORY_VOICE = r"""android.intent.category.VOICE"""; /// from: static public final java.lang.String CATEGORY_VR_HOME static const CATEGORY_VR_HOME = r"""android.intent.category.VR_HOME"""; static final _get_CREATOR = jniLookup<ffi.NativeFunction<jni.JniResult Function()>>( "get_Intent__CREATOR") .asFunction<jni.JniResult Function()>(); /// from: static public final android.os.Parcelable$Creator CREATOR /// The returned object must be released after use, by calling the [release] method. static jni.JObject get CREATOR => const jni.JObjectType().fromRef(_get_CREATOR().object); /// from: static public final java.lang.String EXTRA_ALARM_COUNT static const EXTRA_ALARM_COUNT = r"""android.intent.extra.ALARM_COUNT"""; /// from: static public final java.lang.String EXTRA_ALLOW_MULTIPLE static const EXTRA_ALLOW_MULTIPLE = r"""android.intent.extra.ALLOW_MULTIPLE"""; /// from: static public final java.lang.String EXTRA_ALLOW_REPLACE static const EXTRA_ALLOW_REPLACE = r"""android.intent.extra.ALLOW_REPLACE"""; /// from: static public final java.lang.String EXTRA_ALTERNATE_INTENTS static const EXTRA_ALTERNATE_INTENTS = r"""android.intent.extra.ALTERNATE_INTENTS"""; /// from: static public final java.lang.String EXTRA_ASSIST_CONTEXT static const EXTRA_ASSIST_CONTEXT = r"""android.intent.extra.ASSIST_CONTEXT"""; /// from: static public final java.lang.String EXTRA_ASSIST_INPUT_DEVICE_ID static const EXTRA_ASSIST_INPUT_DEVICE_ID = r"""android.intent.extra.ASSIST_INPUT_DEVICE_ID"""; /// from: static public final java.lang.String EXTRA_ASSIST_INPUT_HINT_KEYBOARD static const EXTRA_ASSIST_INPUT_HINT_KEYBOARD = r"""android.intent.extra.ASSIST_INPUT_HINT_KEYBOARD"""; /// from: static public final java.lang.String EXTRA_ASSIST_PACKAGE static const EXTRA_ASSIST_PACKAGE = r"""android.intent.extra.ASSIST_PACKAGE"""; /// from: static public final java.lang.String EXTRA_ASSIST_UID static const EXTRA_ASSIST_UID = r"""android.intent.extra.ASSIST_UID"""; /// from: static public final java.lang.String EXTRA_ATTRIBUTION_TAGS static const EXTRA_ATTRIBUTION_TAGS = r"""android.intent.extra.ATTRIBUTION_TAGS"""; /// from: static public final java.lang.String EXTRA_AUTO_LAUNCH_SINGLE_CHOICE static const EXTRA_AUTO_LAUNCH_SINGLE_CHOICE = r"""android.intent.extra.AUTO_LAUNCH_SINGLE_CHOICE"""; /// from: static public final java.lang.String EXTRA_BCC static const EXTRA_BCC = r"""android.intent.extra.BCC"""; /// from: static public final java.lang.String EXTRA_BUG_REPORT static const EXTRA_BUG_REPORT = r"""android.intent.extra.BUG_REPORT"""; /// from: static public final java.lang.String EXTRA_CC static const EXTRA_CC = r"""android.intent.extra.CC"""; /// from: static public final java.lang.String EXTRA_CHANGED_COMPONENT_NAME static const EXTRA_CHANGED_COMPONENT_NAME = r"""android.intent.extra.changed_component_name"""; /// from: static public final java.lang.String EXTRA_CHANGED_COMPONENT_NAME_LIST static const EXTRA_CHANGED_COMPONENT_NAME_LIST = r"""android.intent.extra.changed_component_name_list"""; /// from: static public final java.lang.String EXTRA_CHANGED_PACKAGE_LIST static const EXTRA_CHANGED_PACKAGE_LIST = r"""android.intent.extra.changed_package_list"""; /// from: static public final java.lang.String EXTRA_CHANGED_UID_LIST static const EXTRA_CHANGED_UID_LIST = r"""android.intent.extra.changed_uid_list"""; /// from: static public final java.lang.String EXTRA_CHOOSER_REFINEMENT_INTENT_SENDER static const EXTRA_CHOOSER_REFINEMENT_INTENT_SENDER = r"""android.intent.extra.CHOOSER_REFINEMENT_INTENT_SENDER"""; /// from: static public final java.lang.String EXTRA_CHOOSER_TARGETS static const EXTRA_CHOOSER_TARGETS = r"""android.intent.extra.CHOOSER_TARGETS"""; /// from: static public final java.lang.String EXTRA_CHOSEN_COMPONENT static const EXTRA_CHOSEN_COMPONENT = r"""android.intent.extra.CHOSEN_COMPONENT"""; /// from: static public final java.lang.String EXTRA_CHOSEN_COMPONENT_INTENT_SENDER static const EXTRA_CHOSEN_COMPONENT_INTENT_SENDER = r"""android.intent.extra.CHOSEN_COMPONENT_INTENT_SENDER"""; /// from: static public final java.lang.String EXTRA_COMPONENT_NAME static const EXTRA_COMPONENT_NAME = r"""android.intent.extra.COMPONENT_NAME"""; /// from: static public final java.lang.String EXTRA_CONTENT_ANNOTATIONS static const EXTRA_CONTENT_ANNOTATIONS = r"""android.intent.extra.CONTENT_ANNOTATIONS"""; /// from: static public final java.lang.String EXTRA_CONTENT_QUERY static const EXTRA_CONTENT_QUERY = r"""android.intent.extra.CONTENT_QUERY"""; /// from: static public final java.lang.String EXTRA_DATA_REMOVED static const EXTRA_DATA_REMOVED = r"""android.intent.extra.DATA_REMOVED"""; /// from: static public final java.lang.String EXTRA_DOCK_STATE static const EXTRA_DOCK_STATE = r"""android.intent.extra.DOCK_STATE"""; /// from: static public final int EXTRA_DOCK_STATE_CAR static const EXTRA_DOCK_STATE_CAR = 2; /// from: static public final int EXTRA_DOCK_STATE_DESK static const EXTRA_DOCK_STATE_DESK = 1; /// from: static public final int EXTRA_DOCK_STATE_HE_DESK static const EXTRA_DOCK_STATE_HE_DESK = 4; /// from: static public final int EXTRA_DOCK_STATE_LE_DESK static const EXTRA_DOCK_STATE_LE_DESK = 3; /// from: static public final int EXTRA_DOCK_STATE_UNDOCKED static const EXTRA_DOCK_STATE_UNDOCKED = 0; /// from: static public final java.lang.String EXTRA_DONT_KILL_APP static const EXTRA_DONT_KILL_APP = r"""android.intent.extra.DONT_KILL_APP"""; /// from: static public final java.lang.String EXTRA_DURATION_MILLIS static const EXTRA_DURATION_MILLIS = r"""android.intent.extra.DURATION_MILLIS"""; /// from: static public final java.lang.String EXTRA_EMAIL static const EXTRA_EMAIL = r"""android.intent.extra.EMAIL"""; /// from: static public final java.lang.String EXTRA_END_TIME static const EXTRA_END_TIME = r"""android.intent.extra.END_TIME"""; /// from: static public final java.lang.String EXTRA_EXCLUDE_COMPONENTS static const EXTRA_EXCLUDE_COMPONENTS = r"""android.intent.extra.EXCLUDE_COMPONENTS"""; /// from: static public final java.lang.String EXTRA_FROM_STORAGE static const EXTRA_FROM_STORAGE = r"""android.intent.extra.FROM_STORAGE"""; /// from: static public final java.lang.String EXTRA_HTML_TEXT static const EXTRA_HTML_TEXT = r"""android.intent.extra.HTML_TEXT"""; /// from: static public final java.lang.String EXTRA_INDEX static const EXTRA_INDEX = r"""android.intent.extra.INDEX"""; /// from: static public final java.lang.String EXTRA_INITIAL_INTENTS static const EXTRA_INITIAL_INTENTS = r"""android.intent.extra.INITIAL_INTENTS"""; /// from: static public final java.lang.String EXTRA_INSTALLER_PACKAGE_NAME static const EXTRA_INSTALLER_PACKAGE_NAME = r"""android.intent.extra.INSTALLER_PACKAGE_NAME"""; /// from: static public final java.lang.String EXTRA_INTENT static const EXTRA_INTENT = r"""android.intent.extra.INTENT"""; /// from: static public final java.lang.String EXTRA_KEY_EVENT static const EXTRA_KEY_EVENT = r"""android.intent.extra.KEY_EVENT"""; /// from: static public final java.lang.String EXTRA_LOCALE_LIST static const EXTRA_LOCALE_LIST = r"""android.intent.extra.LOCALE_LIST"""; /// from: static public final java.lang.String EXTRA_LOCAL_ONLY static const EXTRA_LOCAL_ONLY = r"""android.intent.extra.LOCAL_ONLY"""; /// from: static public final java.lang.String EXTRA_LOCUS_ID static const EXTRA_LOCUS_ID = r"""android.intent.extra.LOCUS_ID"""; /// from: static public final java.lang.String EXTRA_MIME_TYPES static const EXTRA_MIME_TYPES = r"""android.intent.extra.MIME_TYPES"""; /// from: static public final java.lang.String EXTRA_NOT_UNKNOWN_SOURCE static const EXTRA_NOT_UNKNOWN_SOURCE = r"""android.intent.extra.NOT_UNKNOWN_SOURCE"""; /// from: static public final java.lang.String EXTRA_ORIGINATING_URI static const EXTRA_ORIGINATING_URI = r"""android.intent.extra.ORIGINATING_URI"""; /// from: static public final java.lang.String EXTRA_PACKAGE_NAME static const EXTRA_PACKAGE_NAME = r"""android.intent.extra.PACKAGE_NAME"""; /// from: static public final java.lang.String EXTRA_PERMISSION_GROUP_NAME static const EXTRA_PERMISSION_GROUP_NAME = r"""android.intent.extra.PERMISSION_GROUP_NAME"""; /// from: static public final java.lang.String EXTRA_PHONE_NUMBER static const EXTRA_PHONE_NUMBER = r"""android.intent.extra.PHONE_NUMBER"""; /// from: static public final java.lang.String EXTRA_PROCESS_TEXT static const EXTRA_PROCESS_TEXT = r"""android.intent.extra.PROCESS_TEXT"""; /// from: static public final java.lang.String EXTRA_PROCESS_TEXT_READONLY static const EXTRA_PROCESS_TEXT_READONLY = r"""android.intent.extra.PROCESS_TEXT_READONLY"""; /// from: static public final java.lang.String EXTRA_QUICK_VIEW_FEATURES static const EXTRA_QUICK_VIEW_FEATURES = r"""android.intent.extra.QUICK_VIEW_FEATURES"""; /// from: static public final java.lang.String EXTRA_QUIET_MODE static const EXTRA_QUIET_MODE = r"""android.intent.extra.QUIET_MODE"""; /// from: static public final java.lang.String EXTRA_REFERRER static const EXTRA_REFERRER = r"""android.intent.extra.REFERRER"""; /// from: static public final java.lang.String EXTRA_REFERRER_NAME static const EXTRA_REFERRER_NAME = r"""android.intent.extra.REFERRER_NAME"""; /// from: static public final java.lang.String EXTRA_REMOTE_INTENT_TOKEN static const EXTRA_REMOTE_INTENT_TOKEN = r"""android.intent.extra.remote_intent_token"""; /// from: static public final java.lang.String EXTRA_REPLACEMENT_EXTRAS static const EXTRA_REPLACEMENT_EXTRAS = r"""android.intent.extra.REPLACEMENT_EXTRAS"""; /// from: static public final java.lang.String EXTRA_REPLACING static const EXTRA_REPLACING = r"""android.intent.extra.REPLACING"""; /// from: static public final java.lang.String EXTRA_RESTRICTIONS_BUNDLE static const EXTRA_RESTRICTIONS_BUNDLE = r"""android.intent.extra.restrictions_bundle"""; /// from: static public final java.lang.String EXTRA_RESTRICTIONS_INTENT static const EXTRA_RESTRICTIONS_INTENT = r"""android.intent.extra.restrictions_intent"""; /// from: static public final java.lang.String EXTRA_RESTRICTIONS_LIST static const EXTRA_RESTRICTIONS_LIST = r"""android.intent.extra.restrictions_list"""; /// from: static public final java.lang.String EXTRA_RESULT_RECEIVER static const EXTRA_RESULT_RECEIVER = r"""android.intent.extra.RESULT_RECEIVER"""; /// from: static public final java.lang.String EXTRA_RETURN_RESULT static const EXTRA_RETURN_RESULT = r"""android.intent.extra.RETURN_RESULT"""; /// from: static public final java.lang.String EXTRA_SHORTCUT_ICON static const EXTRA_SHORTCUT_ICON = r"""android.intent.extra.shortcut.ICON"""; /// from: static public final java.lang.String EXTRA_SHORTCUT_ICON_RESOURCE static const EXTRA_SHORTCUT_ICON_RESOURCE = r"""android.intent.extra.shortcut.ICON_RESOURCE"""; /// from: static public final java.lang.String EXTRA_SHORTCUT_ID static const EXTRA_SHORTCUT_ID = r"""android.intent.extra.shortcut.ID"""; /// from: static public final java.lang.String EXTRA_SHORTCUT_INTENT static const EXTRA_SHORTCUT_INTENT = r"""android.intent.extra.shortcut.INTENT"""; /// from: static public final java.lang.String EXTRA_SHORTCUT_NAME static const EXTRA_SHORTCUT_NAME = r"""android.intent.extra.shortcut.NAME"""; /// from: static public final java.lang.String EXTRA_SHUTDOWN_USERSPACE_ONLY static const EXTRA_SHUTDOWN_USERSPACE_ONLY = r"""android.intent.extra.SHUTDOWN_USERSPACE_ONLY"""; /// from: static public final java.lang.String EXTRA_SPLIT_NAME static const EXTRA_SPLIT_NAME = r"""android.intent.extra.SPLIT_NAME"""; /// from: static public final java.lang.String EXTRA_START_TIME static const EXTRA_START_TIME = r"""android.intent.extra.START_TIME"""; /// from: static public final java.lang.String EXTRA_STREAM static const EXTRA_STREAM = r"""android.intent.extra.STREAM"""; /// from: static public final java.lang.String EXTRA_SUBJECT static const EXTRA_SUBJECT = r"""android.intent.extra.SUBJECT"""; /// from: static public final java.lang.String EXTRA_SUSPENDED_PACKAGE_EXTRAS static const EXTRA_SUSPENDED_PACKAGE_EXTRAS = r"""android.intent.extra.SUSPENDED_PACKAGE_EXTRAS"""; /// from: static public final java.lang.String EXTRA_TEMPLATE static const EXTRA_TEMPLATE = r"""android.intent.extra.TEMPLATE"""; /// from: static public final java.lang.String EXTRA_TEXT static const EXTRA_TEXT = r"""android.intent.extra.TEXT"""; /// from: static public final java.lang.String EXTRA_TIME static const EXTRA_TIME = r"""android.intent.extra.TIME"""; /// from: static public final java.lang.String EXTRA_TIMEZONE static const EXTRA_TIMEZONE = r"""time-zone"""; /// from: static public final java.lang.String EXTRA_TITLE static const EXTRA_TITLE = r"""android.intent.extra.TITLE"""; /// from: static public final java.lang.String EXTRA_UID static const EXTRA_UID = r"""android.intent.extra.UID"""; /// from: static public final java.lang.String EXTRA_USER static const EXTRA_USER = r"""android.intent.extra.USER"""; /// from: static public final java.lang.String EXTRA_USER_INITIATED static const EXTRA_USER_INITIATED = r"""android.intent.extra.USER_INITIATED"""; /// from: static public final int FILL_IN_ACTION static const FILL_IN_ACTION = 1; /// from: static public final int FILL_IN_CATEGORIES static const FILL_IN_CATEGORIES = 4; /// from: static public final int FILL_IN_CLIP_DATA static const FILL_IN_CLIP_DATA = 128; /// from: static public final int FILL_IN_COMPONENT static const FILL_IN_COMPONENT = 8; /// from: static public final int FILL_IN_DATA static const FILL_IN_DATA = 2; /// from: static public final int FILL_IN_IDENTIFIER static const FILL_IN_IDENTIFIER = 256; /// from: static public final int FILL_IN_PACKAGE static const FILL_IN_PACKAGE = 16; /// from: static public final int FILL_IN_SELECTOR static const FILL_IN_SELECTOR = 64; /// from: static public final int FILL_IN_SOURCE_BOUNDS static const FILL_IN_SOURCE_BOUNDS = 32; /// from: static public final int FLAG_ACTIVITY_BROUGHT_TO_FRONT static const FLAG_ACTIVITY_BROUGHT_TO_FRONT = 4194304; /// from: static public final int FLAG_ACTIVITY_CLEAR_TASK static const FLAG_ACTIVITY_CLEAR_TASK = 32768; /// from: static public final int FLAG_ACTIVITY_CLEAR_TOP static const FLAG_ACTIVITY_CLEAR_TOP = 67108864; /// from: static public final int FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET static const FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET = 524288; /// from: static public final int FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS static const FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS = 8388608; /// from: static public final int FLAG_ACTIVITY_FORWARD_RESULT static const FLAG_ACTIVITY_FORWARD_RESULT = 33554432; /// from: static public final int FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY static const FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY = 1048576; /// from: static public final int FLAG_ACTIVITY_LAUNCH_ADJACENT static const FLAG_ACTIVITY_LAUNCH_ADJACENT = 4096; /// from: static public final int FLAG_ACTIVITY_MATCH_EXTERNAL static const FLAG_ACTIVITY_MATCH_EXTERNAL = 2048; /// from: static public final int FLAG_ACTIVITY_MULTIPLE_TASK static const FLAG_ACTIVITY_MULTIPLE_TASK = 134217728; /// from: static public final int FLAG_ACTIVITY_NEW_DOCUMENT static const FLAG_ACTIVITY_NEW_DOCUMENT = 524288; /// from: static public final int FLAG_ACTIVITY_NEW_TASK static const FLAG_ACTIVITY_NEW_TASK = 268435456; /// from: static public final int FLAG_ACTIVITY_NO_ANIMATION static const FLAG_ACTIVITY_NO_ANIMATION = 65536; /// from: static public final int FLAG_ACTIVITY_NO_HISTORY static const FLAG_ACTIVITY_NO_HISTORY = 1073741824; /// from: static public final int FLAG_ACTIVITY_NO_USER_ACTION static const FLAG_ACTIVITY_NO_USER_ACTION = 262144; /// from: static public final int FLAG_ACTIVITY_PREVIOUS_IS_TOP static const FLAG_ACTIVITY_PREVIOUS_IS_TOP = 16777216; /// from: static public final int FLAG_ACTIVITY_REORDER_TO_FRONT static const FLAG_ACTIVITY_REORDER_TO_FRONT = 131072; /// from: static public final int FLAG_ACTIVITY_REQUIRE_DEFAULT static const FLAG_ACTIVITY_REQUIRE_DEFAULT = 512; /// from: static public final int FLAG_ACTIVITY_REQUIRE_NON_BROWSER static const FLAG_ACTIVITY_REQUIRE_NON_BROWSER = 1024; /// from: static public final int FLAG_ACTIVITY_RESET_TASK_IF_NEEDED static const FLAG_ACTIVITY_RESET_TASK_IF_NEEDED = 2097152; /// from: static public final int FLAG_ACTIVITY_RETAIN_IN_RECENTS static const FLAG_ACTIVITY_RETAIN_IN_RECENTS = 8192; /// from: static public final int FLAG_ACTIVITY_SINGLE_TOP static const FLAG_ACTIVITY_SINGLE_TOP = 536870912; /// from: static public final int FLAG_ACTIVITY_TASK_ON_HOME static const FLAG_ACTIVITY_TASK_ON_HOME = 16384; /// from: static public final int FLAG_DEBUG_LOG_RESOLUTION static const FLAG_DEBUG_LOG_RESOLUTION = 8; /// from: static public final int FLAG_DIRECT_BOOT_AUTO static const FLAG_DIRECT_BOOT_AUTO = 256; /// from: static public final int FLAG_EXCLUDE_STOPPED_PACKAGES static const FLAG_EXCLUDE_STOPPED_PACKAGES = 16; /// from: static public final int FLAG_FROM_BACKGROUND static const FLAG_FROM_BACKGROUND = 4; /// from: static public final int FLAG_GRANT_PERSISTABLE_URI_PERMISSION static const FLAG_GRANT_PERSISTABLE_URI_PERMISSION = 64; /// from: static public final int FLAG_GRANT_PREFIX_URI_PERMISSION static const FLAG_GRANT_PREFIX_URI_PERMISSION = 128; /// from: static public final int FLAG_GRANT_READ_URI_PERMISSION static const FLAG_GRANT_READ_URI_PERMISSION = 1; /// from: static public final int FLAG_GRANT_WRITE_URI_PERMISSION static const FLAG_GRANT_WRITE_URI_PERMISSION = 2; /// from: static public final int FLAG_INCLUDE_STOPPED_PACKAGES static const FLAG_INCLUDE_STOPPED_PACKAGES = 32; /// from: static public final int FLAG_RECEIVER_FOREGROUND static const FLAG_RECEIVER_FOREGROUND = 268435456; /// from: static public final int FLAG_RECEIVER_NO_ABORT static const FLAG_RECEIVER_NO_ABORT = 134217728; /// from: static public final int FLAG_RECEIVER_REGISTERED_ONLY static const FLAG_RECEIVER_REGISTERED_ONLY = 1073741824; /// from: static public final int FLAG_RECEIVER_REPLACE_PENDING static const FLAG_RECEIVER_REPLACE_PENDING = 536870912; /// from: static public final int FLAG_RECEIVER_VISIBLE_TO_INSTANT_APPS static const FLAG_RECEIVER_VISIBLE_TO_INSTANT_APPS = 2097152; /// from: static public final java.lang.String METADATA_DOCK_HOME static const METADATA_DOCK_HOME = r"""android.dock_home"""; /// from: static public final int URI_ALLOW_UNSAFE static const URI_ALLOW_UNSAFE = 4; /// from: static public final int URI_ANDROID_APP_SCHEME static const URI_ANDROID_APP_SCHEME = 2; /// from: static public final int URI_INTENT_SCHEME static const URI_INTENT_SCHEME = 1; static final _new0 = jniLookup<ffi.NativeFunction<jni.JniResult Function()>>("Intent__new0") .asFunction<jni.JniResult Function()>(); /// from: public void <init>() /// The returned object must be released after use, by calling the [release] method. factory Intent() { return Intent.fromRef(_new0().object); } static final _new1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>)>>("Intent__new1") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void <init>(android.content.Intent intent) /// The returned object must be released after use, by calling the [release] method. factory Intent.new1( Intent intent, ) { return Intent.fromRef(_new1(intent.reference).object); } static final _new2 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>)>>("Intent__new2") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void <init>(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. factory Intent.new2( jni.JString string, ) { return Intent.fromRef(_new2(string.reference).object); } static final _new3 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__new3") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void <init>(java.lang.String string, android.net.Uri uri) /// The returned object must be released after use, by calling the [release] method. factory Intent.new3( jni.JString string, jni.JObject uri, ) { return Intent.fromRef(_new3(string.reference, uri.reference).object); } static final _new4 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__new4") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void <init>(android.content.Context context, java.lang.Class class) /// The returned object must be released after use, by calling the [release] method. factory Intent.new4( Context context, jni.JObject class0, ) { return Intent.fromRef(_new4(context.reference, class0.reference).object); } static final _new5 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__new5") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void <init>(java.lang.String string, android.net.Uri uri, android.content.Context context, java.lang.Class class) /// The returned object must be released after use, by calling the [release] method. factory Intent.new5( jni.JString string, jni.JObject uri, Context context, jni.JObject class0, ) { return Intent.fromRef(_new5(string.reference, uri.reference, context.reference, class0.reference) .object); } static final _createChooser = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__createChooser") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: static public android.content.Intent createChooser(android.content.Intent intent, java.lang.CharSequence charSequence) /// The returned object must be released after use, by calling the [release] method. static Intent createChooser( Intent intent, jni.JObject charSequence, ) { return const $IntentType().fromRef( _createChooser(intent.reference, charSequence.reference).object); } static final _createChooser1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__createChooser1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: static public android.content.Intent createChooser(android.content.Intent intent, java.lang.CharSequence charSequence, android.content.IntentSender intentSender) /// The returned object must be released after use, by calling the [release] method. static Intent createChooser1( Intent intent, jni.JObject charSequence, jni.JObject intentSender, ) { return const $IntentType().fromRef(_createChooser1( intent.reference, charSequence.reference, intentSender.reference) .object); } static final _clone = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>)>>("Intent__clone") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public java.lang.Object clone() /// The returned object must be released after use, by calling the [release] method. jni.JObject clone() { return const jni.JObjectType().fromRef(_clone(reference).object); } static final _cloneFilter = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Intent__cloneFilter") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent cloneFilter() /// The returned object must be released after use, by calling the [release] method. Intent cloneFilter() { return const $IntentType().fromRef(_cloneFilter(reference).object); } static final _makeMainActivity = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Intent__makeMainActivity") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: static public android.content.Intent makeMainActivity(android.content.ComponentName componentName) /// The returned object must be released after use, by calling the [release] method. static Intent makeMainActivity( jni.JObject componentName, ) { return const $IntentType() .fromRef(_makeMainActivity(componentName.reference).object); } static final _makeMainSelectorActivity = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__makeMainSelectorActivity") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: static public android.content.Intent makeMainSelectorActivity(java.lang.String string, java.lang.String string1) /// The returned object must be released after use, by calling the [release] method. static Intent makeMainSelectorActivity( jni.JString string, jni.JString string1, ) { return const $IntentType().fromRef( _makeMainSelectorActivity(string.reference, string1.reference).object); } static final _makeRestartActivityTask = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Intent__makeRestartActivityTask") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: static public android.content.Intent makeRestartActivityTask(android.content.ComponentName componentName) /// The returned object must be released after use, by calling the [release] method. static Intent makeRestartActivityTask( jni.JObject componentName, ) { return const $IntentType() .fromRef(_makeRestartActivityTask(componentName.reference).object); } static final _getIntent = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Intent__getIntent") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: static public android.content.Intent getIntent(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. static Intent getIntent( jni.JString string, ) { return const $IntentType().fromRef(_getIntent(string.reference).object); } static final _parseUri = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int32)>>("Intent__parseUri") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: static public android.content.Intent parseUri(java.lang.String string, int i) /// The returned object must be released after use, by calling the [release] method. static Intent parseUri( jni.JString string, int i, ) { return const $IntentType().fromRef(_parseUri(string.reference, i).object); } static final _getIntentOld = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Intent__getIntentOld") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: static public android.content.Intent getIntentOld(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. static Intent getIntentOld( jni.JString string, ) { return const $IntentType().fromRef(_getIntentOld(string.reference).object); } static final _getAction = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Intent__getAction") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public java.lang.String getAction() /// The returned object must be released after use, by calling the [release] method. jni.JString getAction() { return const jni.JStringType().fromRef(_getAction(reference).object); } static final _getData = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>)>>("Intent__getData") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public android.net.Uri getData() /// The returned object must be released after use, by calling the [release] method. jni.JObject getData() { return const jni.JObjectType().fromRef(_getData(reference).object); } static final _getDataString = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Intent__getDataString") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public java.lang.String getDataString() /// The returned object must be released after use, by calling the [release] method. jni.JString getDataString() { return const jni.JStringType().fromRef(_getDataString(reference).object); } static final _getScheme = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Intent__getScheme") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public java.lang.String getScheme() /// The returned object must be released after use, by calling the [release] method. jni.JString getScheme() { return const jni.JStringType().fromRef(_getScheme(reference).object); } static final _getType = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>)>>("Intent__getType") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public java.lang.String getType() /// The returned object must be released after use, by calling the [release] method. jni.JString getType() { return const jni.JStringType().fromRef(_getType(reference).object); } static final _resolveType = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__resolveType") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public java.lang.String resolveType(android.content.Context context) /// The returned object must be released after use, by calling the [release] method. jni.JString resolveType( Context context, ) { return const jni.JStringType() .fromRef(_resolveType(reference, context.reference).object); } static final _resolveType1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__resolveType1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public java.lang.String resolveType(android.content.ContentResolver contentResolver) /// The returned object must be released after use, by calling the [release] method. jni.JString resolveType1( jni.JObject contentResolver, ) { return const jni.JStringType() .fromRef(_resolveType1(reference, contentResolver.reference).object); } static final _resolveTypeIfNeeded = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__resolveTypeIfNeeded") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public java.lang.String resolveTypeIfNeeded(android.content.ContentResolver contentResolver) /// The returned object must be released after use, by calling the [release] method. jni.JString resolveTypeIfNeeded( jni.JObject contentResolver, ) { return const jni.JStringType().fromRef( _resolveTypeIfNeeded(reference, contentResolver.reference).object); } static final _getIdentifier = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Intent__getIdentifier") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public java.lang.String getIdentifier() /// The returned object must be released after use, by calling the [release] method. jni.JString getIdentifier() { return const jni.JStringType().fromRef(_getIdentifier(reference).object); } static final _hasCategory = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__hasCategory") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean hasCategory(java.lang.String string) bool hasCategory( jni.JString string, ) { return _hasCategory(reference, string.reference).boolean; } static final _getCategories = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Intent__getCategories") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public java.util.Set getCategories() /// The returned object must be released after use, by calling the [release] method. jni.JSet<jni.JString> getCategories() { return const jni.JSetType(jni.JStringType()) .fromRef(_getCategories(reference).object); } static final _getSelector = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Intent__getSelector") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent getSelector() /// The returned object must be released after use, by calling the [release] method. Intent getSelector() { return const $IntentType().fromRef(_getSelector(reference).object); } static final _getClipData = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Intent__getClipData") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public android.content.ClipData getClipData() /// The returned object must be released after use, by calling the [release] method. jni.JObject getClipData() { return const jni.JObjectType().fromRef(_getClipData(reference).object); } static final _setExtrasClassLoader = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__setExtrasClassLoader") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void setExtrasClassLoader(java.lang.ClassLoader classLoader) void setExtrasClassLoader( jni.JObject classLoader, ) { return _setExtrasClassLoader(reference, classLoader.reference).check(); } static final _hasExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__hasExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean hasExtra(java.lang.String string) bool hasExtra( jni.JString string, ) { return _hasExtra(reference, string.reference).boolean; } static final _hasFileDescriptors = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Intent__hasFileDescriptors") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public boolean hasFileDescriptors() bool hasFileDescriptors() { return _hasFileDescriptors(reference).boolean; } static final _getBooleanExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Uint8)>>("Intent__getBooleanExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public boolean getBooleanExtra(java.lang.String string, boolean z) bool getBooleanExtra( jni.JString string, bool z, ) { return _getBooleanExtra(reference, string.reference, z ? 1 : 0).boolean; } static final _getByteExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int8)>>("Intent__getByteExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public byte getByteExtra(java.lang.String string, byte b) int getByteExtra( jni.JString string, int b, ) { return _getByteExtra(reference, string.reference, b).byte; } static final _getShortExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int16)>>("Intent__getShortExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public short getShortExtra(java.lang.String string, short s) int getShortExtra( jni.JString string, int s, ) { return _getShortExtra(reference, string.reference, s).short; } static final _getCharExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Uint16)>>("Intent__getCharExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public char getCharExtra(java.lang.String string, char c) int getCharExtra( jni.JString string, int c, ) { return _getCharExtra(reference, string.reference, c).char; } static final _getIntExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Intent__getIntExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public int getIntExtra(java.lang.String string, int i) int getIntExtra( jni.JString string, int i, ) { return _getIntExtra(reference, string.reference, i).integer; } static final _getLongExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int64)>>("Intent__getLongExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public long getLongExtra(java.lang.String string, long j) int getLongExtra( jni.JString string, int j, ) { return _getLongExtra(reference, string.reference, j).long; } static final _getFloatExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Float)>>("Intent__getFloatExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, double)>(); /// from: public float getFloatExtra(java.lang.String string, float f) double getFloatExtra( jni.JString string, double f, ) { return _getFloatExtra(reference, string.reference, f).float; } static final _getDoubleExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Double)>>("Intent__getDoubleExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, double)>(); /// from: public double getDoubleExtra(java.lang.String string, double d) double getDoubleExtra( jni.JString string, double d, ) { return _getDoubleExtra(reference, string.reference, d).doubleFloat; } static final _getStringExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__getStringExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public java.lang.String getStringExtra(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. jni.JString getStringExtra( jni.JString string, ) { return const jni.JStringType() .fromRef(_getStringExtra(reference, string.reference).object); } static final _getCharSequenceExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__getCharSequenceExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public java.lang.CharSequence getCharSequenceExtra(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. jni.JObject getCharSequenceExtra( jni.JString string, ) { return const jni.JObjectType() .fromRef(_getCharSequenceExtra(reference, string.reference).object); } static final _getParcelableExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__getParcelableExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public T getParcelableExtra(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. $T getParcelableExtra<$T extends jni.JObject>( jni.JString string, { required jni.JObjType<$T> T, }) { return T.fromRef(_getParcelableExtra(reference, string.reference).object); } static final _getParcelableExtra1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__getParcelableExtra1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public T getParcelableExtra(java.lang.String string, java.lang.Class class) /// The returned object must be released after use, by calling the [release] method. $T getParcelableExtra1<$T extends jni.JObject>( jni.JString string, jni.JObject class0, { required jni.JObjType<$T> T, }) { return T.fromRef( _getParcelableExtra1(reference, string.reference, class0.reference) .object); } static final _getParcelableArrayExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__getParcelableArrayExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.os.Parcelable[] getParcelableArrayExtra(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. jni.JArray<jni.JObject> getParcelableArrayExtra( jni.JString string, ) { return const jni.JArrayType(jni.JObjectType()) .fromRef(_getParcelableArrayExtra(reference, string.reference).object); } static final _getParcelableArrayExtra1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__getParcelableArrayExtra1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public java.lang.Object[] getParcelableArrayExtra(java.lang.String string, java.lang.Class class) /// The returned object must be released after use, by calling the [release] method. jni.JArray<$T> getParcelableArrayExtra1<$T extends jni.JObject>( jni.JString string, jni.JObject class0, { required jni.JObjType<$T> T, }) { return jni.JArrayType(T).fromRef( _getParcelableArrayExtra1(reference, string.reference, class0.reference) .object); } static final _getParcelableArrayListExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Intent__getParcelableArrayListExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public java.util.ArrayList getParcelableArrayListExtra(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. jni.JObject getParcelableArrayListExtra<$T extends jni.JObject>( jni.JString string, { required jni.JObjType<$T> T, }) { return const jni.JObjectType().fromRef( _getParcelableArrayListExtra(reference, string.reference).object); } static final _getParcelableArrayListExtra1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Intent__getParcelableArrayListExtra1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public java.util.ArrayList getParcelableArrayListExtra(java.lang.String string, java.lang.Class class) /// The returned object must be released after use, by calling the [release] method. jni.JObject getParcelableArrayListExtra1<$T extends jni.JObject>( jni.JString string, jni.JObject class0, { required jni.JObjType<$T> T, }) { return const jni.JObjectType().fromRef(_getParcelableArrayListExtra1( reference, string.reference, class0.reference) .object); } static final _getSerializableExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__getSerializableExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public java.io.Serializable getSerializableExtra(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. jni.JObject getSerializableExtra( jni.JString string, ) { return const jni.JObjectType() .fromRef(_getSerializableExtra(reference, string.reference).object); } static final _getSerializableExtra1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__getSerializableExtra1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public T getSerializableExtra(java.lang.String string, java.lang.Class class) /// The returned object must be released after use, by calling the [release] method. $T getSerializableExtra1<$T extends jni.JObject>( jni.JString string, jni.JObject class0, { required jni.JObjType<$T> T, }) { return T.fromRef( _getSerializableExtra1(reference, string.reference, class0.reference) .object); } static final _getIntegerArrayListExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__getIntegerArrayListExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public java.util.ArrayList getIntegerArrayListExtra(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. jni.JObject getIntegerArrayListExtra( jni.JString string, ) { return const jni.JObjectType() .fromRef(_getIntegerArrayListExtra(reference, string.reference).object); } static final _getStringArrayListExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__getStringArrayListExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public java.util.ArrayList getStringArrayListExtra(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. jni.JObject getStringArrayListExtra( jni.JString string, ) { return const jni.JObjectType() .fromRef(_getStringArrayListExtra(reference, string.reference).object); } static final _getCharSequenceArrayListExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Intent__getCharSequenceArrayListExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public java.util.ArrayList getCharSequenceArrayListExtra(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. jni.JObject getCharSequenceArrayListExtra( jni.JString string, ) { return const jni.JObjectType().fromRef( _getCharSequenceArrayListExtra(reference, string.reference).object); } static final _getBooleanArrayExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__getBooleanArrayExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean[] getBooleanArrayExtra(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. jni.JArray<jni.jboolean> getBooleanArrayExtra( jni.JString string, ) { return const jni.JArrayType(jni.jbooleanType()) .fromRef(_getBooleanArrayExtra(reference, string.reference).object); } static final _getByteArrayExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__getByteArrayExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public byte[] getByteArrayExtra(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. jni.JArray<jni.jbyte> getByteArrayExtra( jni.JString string, ) { return const jni.JArrayType(jni.jbyteType()) .fromRef(_getByteArrayExtra(reference, string.reference).object); } static final _getShortArrayExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__getShortArrayExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public short[] getShortArrayExtra(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. jni.JArray<jni.jshort> getShortArrayExtra( jni.JString string, ) { return const jni.JArrayType(jni.jshortType()) .fromRef(_getShortArrayExtra(reference, string.reference).object); } static final _getCharArrayExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__getCharArrayExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public char[] getCharArrayExtra(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. jni.JArray<jni.jchar> getCharArrayExtra( jni.JString string, ) { return const jni.JArrayType(jni.jcharType()) .fromRef(_getCharArrayExtra(reference, string.reference).object); } static final _getIntArrayExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__getIntArrayExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public int[] getIntArrayExtra(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. jni.JArray<jni.jint> getIntArrayExtra( jni.JString string, ) { return const jni.JArrayType(jni.jintType()) .fromRef(_getIntArrayExtra(reference, string.reference).object); } static final _getLongArrayExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__getLongArrayExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public long[] getLongArrayExtra(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. jni.JArray<jni.jlong> getLongArrayExtra( jni.JString string, ) { return const jni.JArrayType(jni.jlongType()) .fromRef(_getLongArrayExtra(reference, string.reference).object); } static final _getFloatArrayExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__getFloatArrayExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public float[] getFloatArrayExtra(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. jni.JArray<jni.jfloat> getFloatArrayExtra( jni.JString string, ) { return const jni.JArrayType(jni.jfloatType()) .fromRef(_getFloatArrayExtra(reference, string.reference).object); } static final _getDoubleArrayExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__getDoubleArrayExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public double[] getDoubleArrayExtra(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. jni.JArray<jni.jdouble> getDoubleArrayExtra( jni.JString string, ) { return const jni.JArrayType(jni.jdoubleType()) .fromRef(_getDoubleArrayExtra(reference, string.reference).object); } static final _getStringArrayExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__getStringArrayExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public java.lang.String[] getStringArrayExtra(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. jni.JArray<jni.JString> getStringArrayExtra( jni.JString string, ) { return const jni.JArrayType(jni.JStringType()) .fromRef(_getStringArrayExtra(reference, string.reference).object); } static final _getCharSequenceArrayExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__getCharSequenceArrayExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public java.lang.CharSequence[] getCharSequenceArrayExtra(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. jni.JArray<jni.JObject> getCharSequenceArrayExtra( jni.JString string, ) { return const jni.JArrayType(jni.JObjectType()).fromRef( _getCharSequenceArrayExtra(reference, string.reference).object); } static final _getBundleExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__getBundleExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.os.Bundle getBundleExtra(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. jni.JObject getBundleExtra( jni.JString string, ) { return const jni.JObjectType() .fromRef(_getBundleExtra(reference, string.reference).object); } static final _getExtras = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Intent__getExtras") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public android.os.Bundle getExtras() /// The returned object must be released after use, by calling the [release] method. jni.JObject getExtras() { return const jni.JObjectType().fromRef(_getExtras(reference).object); } static final _getFlags = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Intent__getFlags") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public int getFlags() int getFlags() { return _getFlags(reference).integer; } static final _getPackage = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Intent__getPackage") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public java.lang.String getPackage() /// The returned object must be released after use, by calling the [release] method. jni.JString getPackage() { return const jni.JStringType().fromRef(_getPackage(reference).object); } static final _getComponent = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Intent__getComponent") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public android.content.ComponentName getComponent() /// The returned object must be released after use, by calling the [release] method. jni.JObject getComponent() { return const jni.JObjectType().fromRef(_getComponent(reference).object); } static final _getSourceBounds = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Intent__getSourceBounds") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public android.graphics.Rect getSourceBounds() /// The returned object must be released after use, by calling the [release] method. jni.JObject getSourceBounds() { return const jni.JObjectType().fromRef(_getSourceBounds(reference).object); } static final _resolveActivity = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__resolveActivity") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.ComponentName resolveActivity(android.content.pm.PackageManager packageManager) /// The returned object must be released after use, by calling the [release] method. jni.JObject resolveActivity( jni.JObject packageManager, ) { return const jni.JObjectType() .fromRef(_resolveActivity(reference, packageManager.reference).object); } static final _resolveActivityInfo = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Intent__resolveActivityInfo") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public android.content.pm.ActivityInfo resolveActivityInfo(android.content.pm.PackageManager packageManager, int i) /// The returned object must be released after use, by calling the [release] method. jni.JObject resolveActivityInfo( jni.JObject packageManager, int i, ) { return const jni.JObjectType().fromRef( _resolveActivityInfo(reference, packageManager.reference, i).object); } static final _setAction = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__setAction") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent setAction(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. Intent setAction( jni.JString string, ) { return const $IntentType() .fromRef(_setAction(reference, string.reference).object); } static final _setData = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__setData") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent setData(android.net.Uri uri) /// The returned object must be released after use, by calling the [release] method. Intent setData( jni.JObject uri, ) { return const $IntentType() .fromRef(_setData(reference, uri.reference).object); } static final _setDataAndNormalize = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__setDataAndNormalize") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent setDataAndNormalize(android.net.Uri uri) /// The returned object must be released after use, by calling the [release] method. Intent setDataAndNormalize( jni.JObject uri, ) { return const $IntentType() .fromRef(_setDataAndNormalize(reference, uri.reference).object); } static final _setType = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__setType") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent setType(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. Intent setType( jni.JString string, ) { return const $IntentType() .fromRef(_setType(reference, string.reference).object); } static final _setTypeAndNormalize = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__setTypeAndNormalize") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent setTypeAndNormalize(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. Intent setTypeAndNormalize( jni.JString string, ) { return const $IntentType() .fromRef(_setTypeAndNormalize(reference, string.reference).object); } static final _setDataAndType = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__setDataAndType") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent setDataAndType(android.net.Uri uri, java.lang.String string) /// The returned object must be released after use, by calling the [release] method. Intent setDataAndType( jni.JObject uri, jni.JString string, ) { return const $IntentType().fromRef( _setDataAndType(reference, uri.reference, string.reference).object); } static final _setDataAndTypeAndNormalize = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__setDataAndTypeAndNormalize") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent setDataAndTypeAndNormalize(android.net.Uri uri, java.lang.String string) /// The returned object must be released after use, by calling the [release] method. Intent setDataAndTypeAndNormalize( jni.JObject uri, jni.JString string, ) { return const $IntentType().fromRef( _setDataAndTypeAndNormalize(reference, uri.reference, string.reference) .object); } static final _setIdentifier = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__setIdentifier") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent setIdentifier(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. Intent setIdentifier( jni.JString string, ) { return const $IntentType() .fromRef(_setIdentifier(reference, string.reference).object); } static final _addCategory = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__addCategory") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent addCategory(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. Intent addCategory( jni.JString string, ) { return const $IntentType() .fromRef(_addCategory(reference, string.reference).object); } static final _removeCategory = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__removeCategory") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void removeCategory(java.lang.String string) void removeCategory( jni.JString string, ) { return _removeCategory(reference, string.reference).check(); } static final _setSelector = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__setSelector") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void setSelector(android.content.Intent intent) void setSelector( Intent intent, ) { return _setSelector(reference, intent.reference).check(); } static final _setClipData = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__setClipData") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void setClipData(android.content.ClipData clipData) void setClipData( jni.JObject clipData, ) { return _setClipData(reference, clipData.reference).check(); } static final _putExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Uint8)>>("Intent__putExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public android.content.Intent putExtra(java.lang.String string, boolean z) /// The returned object must be released after use, by calling the [release] method. Intent putExtra( jni.JString string, bool z, ) { return const $IntentType() .fromRef(_putExtra(reference, string.reference, z ? 1 : 0).object); } static final _putExtra1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int8)>>("Intent__putExtra1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public android.content.Intent putExtra(java.lang.String string, byte b) /// The returned object must be released after use, by calling the [release] method. Intent putExtra1( jni.JString string, int b, ) { return const $IntentType() .fromRef(_putExtra1(reference, string.reference, b).object); } static final _putExtra2 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Uint16)>>("Intent__putExtra2") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public android.content.Intent putExtra(java.lang.String string, char c) /// The returned object must be released after use, by calling the [release] method. Intent putExtra2( jni.JString string, int c, ) { return const $IntentType() .fromRef(_putExtra2(reference, string.reference, c).object); } static final _putExtra3 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int16)>>("Intent__putExtra3") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public android.content.Intent putExtra(java.lang.String string, short s) /// The returned object must be released after use, by calling the [release] method. Intent putExtra3( jni.JString string, int s, ) { return const $IntentType() .fromRef(_putExtra3(reference, string.reference, s).object); } static final _putExtra4 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Intent__putExtra4") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public android.content.Intent putExtra(java.lang.String string, int i) /// The returned object must be released after use, by calling the [release] method. Intent putExtra4( jni.JString string, int i, ) { return const $IntentType() .fromRef(_putExtra4(reference, string.reference, i).object); } static final _putExtra5 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int64)>>("Intent__putExtra5") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public android.content.Intent putExtra(java.lang.String string, long j) /// The returned object must be released after use, by calling the [release] method. Intent putExtra5( jni.JString string, int j, ) { return const $IntentType() .fromRef(_putExtra5(reference, string.reference, j).object); } static final _putExtra6 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Float)>>("Intent__putExtra6") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, double)>(); /// from: public android.content.Intent putExtra(java.lang.String string, float f) /// The returned object must be released after use, by calling the [release] method. Intent putExtra6( jni.JString string, double f, ) { return const $IntentType() .fromRef(_putExtra6(reference, string.reference, f).object); } static final _putExtra7 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Double)>>("Intent__putExtra7") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, double)>(); /// from: public android.content.Intent putExtra(java.lang.String string, double d) /// The returned object must be released after use, by calling the [release] method. Intent putExtra7( jni.JString string, double d, ) { return const $IntentType() .fromRef(_putExtra7(reference, string.reference, d).object); } static final _putExtra8 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__putExtra8") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent putExtra(java.lang.String string, java.lang.String string1) /// The returned object must be released after use, by calling the [release] method. Intent putExtra8( jni.JString string, jni.JString string1, ) { return const $IntentType().fromRef( _putExtra8(reference, string.reference, string1.reference).object); } static final _putExtra9 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__putExtra9") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent putExtra(java.lang.String string, java.lang.CharSequence charSequence) /// The returned object must be released after use, by calling the [release] method. Intent putExtra9( jni.JString string, jni.JObject charSequence, ) { return const $IntentType().fromRef( _putExtra9(reference, string.reference, charSequence.reference).object); } static final _putExtra10 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__putExtra10") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent putExtra(java.lang.String string, android.os.Parcelable parcelable) /// The returned object must be released after use, by calling the [release] method. Intent putExtra10( jni.JString string, jni.JObject parcelable, ) { return const $IntentType().fromRef( _putExtra10(reference, string.reference, parcelable.reference).object); } static final _putExtra11 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__putExtra11") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent putExtra(java.lang.String string, android.os.Parcelable[] parcelables) /// The returned object must be released after use, by calling the [release] method. Intent putExtra11( jni.JString string, jni.JArray<jni.JObject> parcelables, ) { return const $IntentType().fromRef( _putExtra11(reference, string.reference, parcelables.reference).object); } static final _putParcelableArrayListExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Intent__putParcelableArrayListExtra") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent putParcelableArrayListExtra(java.lang.String string, java.util.ArrayList arrayList) /// The returned object must be released after use, by calling the [release] method. Intent putParcelableArrayListExtra( jni.JString string, jni.JObject arrayList, ) { return const $IntentType().fromRef(_putParcelableArrayListExtra( reference, string.reference, arrayList.reference) .object); } static final _putIntegerArrayListExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__putIntegerArrayListExtra") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent putIntegerArrayListExtra(java.lang.String string, java.util.ArrayList arrayList) /// The returned object must be released after use, by calling the [release] method. Intent putIntegerArrayListExtra( jni.JString string, jni.JObject arrayList, ) { return const $IntentType().fromRef(_putIntegerArrayListExtra( reference, string.reference, arrayList.reference) .object); } static final _putStringArrayListExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__putStringArrayListExtra") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent putStringArrayListExtra(java.lang.String string, java.util.ArrayList arrayList) /// The returned object must be released after use, by calling the [release] method. Intent putStringArrayListExtra( jni.JString string, jni.JObject arrayList, ) { return const $IntentType().fromRef(_putStringArrayListExtra( reference, string.reference, arrayList.reference) .object); } static final _putCharSequenceArrayListExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Intent__putCharSequenceArrayListExtra") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent putCharSequenceArrayListExtra(java.lang.String string, java.util.ArrayList arrayList) /// The returned object must be released after use, by calling the [release] method. Intent putCharSequenceArrayListExtra( jni.JString string, jni.JObject arrayList, ) { return const $IntentType().fromRef(_putCharSequenceArrayListExtra( reference, string.reference, arrayList.reference) .object); } static final _putExtra12 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__putExtra12") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent putExtra(java.lang.String string, java.io.Serializable serializable) /// The returned object must be released after use, by calling the [release] method. Intent putExtra12( jni.JString string, jni.JObject serializable, ) { return const $IntentType().fromRef( _putExtra12(reference, string.reference, serializable.reference) .object); } static final _putExtra13 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__putExtra13") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent putExtra(java.lang.String string, boolean[] zs) /// The returned object must be released after use, by calling the [release] method. Intent putExtra13( jni.JString string, jni.JArray<jni.jboolean> zs, ) { return const $IntentType() .fromRef(_putExtra13(reference, string.reference, zs.reference).object); } static final _putExtra14 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__putExtra14") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent putExtra(java.lang.String string, byte[] bs) /// The returned object must be released after use, by calling the [release] method. Intent putExtra14( jni.JString string, jni.JArray<jni.jbyte> bs, ) { return const $IntentType() .fromRef(_putExtra14(reference, string.reference, bs.reference).object); } static final _putExtra15 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__putExtra15") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent putExtra(java.lang.String string, short[] ss) /// The returned object must be released after use, by calling the [release] method. Intent putExtra15( jni.JString string, jni.JArray<jni.jshort> ss, ) { return const $IntentType() .fromRef(_putExtra15(reference, string.reference, ss.reference).object); } static final _putExtra16 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__putExtra16") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent putExtra(java.lang.String string, char[] cs) /// The returned object must be released after use, by calling the [release] method. Intent putExtra16( jni.JString string, jni.JArray<jni.jchar> cs, ) { return const $IntentType() .fromRef(_putExtra16(reference, string.reference, cs.reference).object); } static final _putExtra17 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__putExtra17") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent putExtra(java.lang.String string, int[] is) /// The returned object must be released after use, by calling the [release] method. Intent putExtra17( jni.JString string, jni.JArray<jni.jint> is0, ) { return const $IntentType().fromRef( _putExtra17(reference, string.reference, is0.reference).object); } static final _putExtra18 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__putExtra18") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent putExtra(java.lang.String string, long[] js) /// The returned object must be released after use, by calling the [release] method. Intent putExtra18( jni.JString string, jni.JArray<jni.jlong> js, ) { return const $IntentType() .fromRef(_putExtra18(reference, string.reference, js.reference).object); } static final _putExtra19 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__putExtra19") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent putExtra(java.lang.String string, float[] fs) /// The returned object must be released after use, by calling the [release] method. Intent putExtra19( jni.JString string, jni.JArray<jni.jfloat> fs, ) { return const $IntentType() .fromRef(_putExtra19(reference, string.reference, fs.reference).object); } static final _putExtra20 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__putExtra20") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent putExtra(java.lang.String string, double[] ds) /// The returned object must be released after use, by calling the [release] method. Intent putExtra20( jni.JString string, jni.JArray<jni.jdouble> ds, ) { return const $IntentType() .fromRef(_putExtra20(reference, string.reference, ds.reference).object); } static final _putExtra21 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__putExtra21") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent putExtra(java.lang.String string, java.lang.String[] strings) /// The returned object must be released after use, by calling the [release] method. Intent putExtra21( jni.JString string, jni.JArray<jni.JString> strings, ) { return const $IntentType().fromRef( _putExtra21(reference, string.reference, strings.reference).object); } static final _putExtra22 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__putExtra22") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent putExtra(java.lang.String string, java.lang.CharSequence[] charSequences) /// The returned object must be released after use, by calling the [release] method. Intent putExtra22( jni.JString string, jni.JArray<jni.JObject> charSequences, ) { return const $IntentType().fromRef( _putExtra22(reference, string.reference, charSequences.reference) .object); } static final _putExtra23 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__putExtra23") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent putExtra(java.lang.String string, android.os.Bundle bundle) /// The returned object must be released after use, by calling the [release] method. Intent putExtra23( jni.JString string, jni.JObject bundle, ) { return const $IntentType().fromRef( _putExtra23(reference, string.reference, bundle.reference).object); } static final _putExtras = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__putExtras") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent putExtras(android.content.Intent intent) /// The returned object must be released after use, by calling the [release] method. Intent putExtras( Intent intent, ) { return const $IntentType() .fromRef(_putExtras(reference, intent.reference).object); } static final _putExtras1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__putExtras1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent putExtras(android.os.Bundle bundle) /// The returned object must be released after use, by calling the [release] method. Intent putExtras1( jni.JObject bundle, ) { return const $IntentType() .fromRef(_putExtras1(reference, bundle.reference).object); } static final _replaceExtras = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__replaceExtras") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent replaceExtras(android.content.Intent intent) /// The returned object must be released after use, by calling the [release] method. Intent replaceExtras( Intent intent, ) { return const $IntentType() .fromRef(_replaceExtras(reference, intent.reference).object); } static final _replaceExtras1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__replaceExtras1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent replaceExtras(android.os.Bundle bundle) /// The returned object must be released after use, by calling the [release] method. Intent replaceExtras1( jni.JObject bundle, ) { return const $IntentType() .fromRef(_replaceExtras1(reference, bundle.reference).object); } static final _removeExtra = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__removeExtra") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void removeExtra(java.lang.String string) void removeExtra( jni.JString string, ) { return _removeExtra(reference, string.reference).check(); } static final _setFlags = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int32)>>("Intent__setFlags") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public android.content.Intent setFlags(int i) /// The returned object must be released after use, by calling the [release] method. Intent setFlags( int i, ) { return const $IntentType().fromRef(_setFlags(reference, i).object); } static final _addFlags = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int32)>>("Intent__addFlags") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public android.content.Intent addFlags(int i) /// The returned object must be released after use, by calling the [release] method. Intent addFlags( int i, ) { return const $IntentType().fromRef(_addFlags(reference, i).object); } static final _removeFlags = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int32)>>("Intent__removeFlags") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public void removeFlags(int i) void removeFlags( int i, ) { return _removeFlags(reference, i).check(); } static final _setPackage = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__setPackage") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent setPackage(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. Intent setPackage( jni.JString string, ) { return const $IntentType() .fromRef(_setPackage(reference, string.reference).object); } static final _setComponent = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__setComponent") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent setComponent(android.content.ComponentName componentName) /// The returned object must be released after use, by calling the [release] method. Intent setComponent( jni.JObject componentName, ) { return const $IntentType() .fromRef(_setComponent(reference, componentName.reference).object); } static final _setClassName = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__setClassName") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent setClassName(android.content.Context context, java.lang.String string) /// The returned object must be released after use, by calling the [release] method. Intent setClassName( Context context, jni.JString string, ) { return const $IntentType().fromRef( _setClassName(reference, context.reference, string.reference).object); } static final _setClassName1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__setClassName1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent setClassName(java.lang.String string, java.lang.String string1) /// The returned object must be released after use, by calling the [release] method. Intent setClassName1( jni.JString string, jni.JString string1, ) { return const $IntentType().fromRef( _setClassName1(reference, string.reference, string1.reference).object); } static final _setClass = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__setClass") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent setClass(android.content.Context context, java.lang.Class class) /// The returned object must be released after use, by calling the [release] method. Intent setClass( Context context, jni.JObject class0, ) { return const $IntentType().fromRef( _setClass(reference, context.reference, class0.reference).object); } static final _setSourceBounds = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__setSourceBounds") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void setSourceBounds(android.graphics.Rect rect) void setSourceBounds( jni.JObject rect, ) { return _setSourceBounds(reference, rect.reference).check(); } static final _fillIn = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Intent__fillIn") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public int fillIn(android.content.Intent intent, int i) int fillIn( Intent intent, int i, ) { return _fillIn(reference, intent.reference, i).integer; } static final _filterEquals = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__filterEquals") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean filterEquals(android.content.Intent intent) bool filterEquals( Intent intent, ) { return _filterEquals(reference, intent.reference).boolean; } static final _filterHashCode = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Intent__filterHashCode") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public int filterHashCode() int filterHashCode() { return _filterHashCode(reference).integer; } static final _toString1 = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Intent__toString1") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public java.lang.String toString() /// The returned object must be released after use, by calling the [release] method. jni.JString toString1() { return const jni.JStringType().fromRef(_toString1(reference).object); } static final _toURI = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>)>>("Intent__toURI") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public java.lang.String toURI() /// The returned object must be released after use, by calling the [release] method. jni.JString toURI() { return const jni.JStringType().fromRef(_toURI(reference).object); } static final _toUri = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int32)>>("Intent__toUri") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public java.lang.String toUri(int i) /// The returned object must be released after use, by calling the [release] method. jni.JString toUri( int i, ) { return const jni.JStringType().fromRef(_toUri(reference, i).object); } static final _describeContents = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Intent__describeContents") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public int describeContents() int describeContents() { return _describeContents(reference).integer; } static final _writeToParcel = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Intent__writeToParcel") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public void writeToParcel(android.os.Parcel parcel, int i) void writeToParcel( jni.JObject parcel, int i, ) { return _writeToParcel(reference, parcel.reference, i).check(); } static final _readFromParcel = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__readFromParcel") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void readFromParcel(android.os.Parcel parcel) void readFromParcel( jni.JObject parcel, ) { return _readFromParcel(reference, parcel.reference).check(); } static final _parseIntent = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Intent__parseIntent") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: static public android.content.Intent parseIntent(android.content.res.Resources resources, org.xmlpull.v1.XmlPullParser xmlPullParser, android.util.AttributeSet attributeSet) /// The returned object must be released after use, by calling the [release] method. static Intent parseIntent( jni.JObject resources, jni.JObject xmlPullParser, jni.JObject attributeSet, ) { return const $IntentType().fromRef(_parseIntent(resources.reference, xmlPullParser.reference, attributeSet.reference) .object); } static final _normalizeMimeType = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Intent__normalizeMimeType") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: static public java.lang.String normalizeMimeType(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. static jni.JString normalizeMimeType( jni.JString string, ) { return const jni.JStringType() .fromRef(_normalizeMimeType(string.reference).object); } } final class $IntentType extends jni.JObjType<Intent> { const $IntentType(); @override String get signature => r"Landroid/content/Intent;"; @override Intent fromRef(jni.JObjectPtr ref) => Intent.fromRef(ref); @override jni.JObjType get superType => const jni.JObjectType(); @override final superCount = 1; @override int get hashCode => ($IntentType).hashCode; @override bool operator ==(Object other) { return other.runtimeType == ($IntentType) && other is $IntentType; } } /// from: android.app.Activity class Activity extends jni.JObject { @override late final jni.JObjType<Activity> $type = type; Activity.fromRef( jni.JObjectPtr ref, ) : super.fromRef(ref); /// The type which includes information such as the signature of this class. static const type = $ActivityType(); /// from: static public final int DEFAULT_KEYS_DIALER static const DEFAULT_KEYS_DIALER = 1; /// from: static public final int DEFAULT_KEYS_DISABLE static const DEFAULT_KEYS_DISABLE = 0; /// from: static public final int DEFAULT_KEYS_SEARCH_GLOBAL static const DEFAULT_KEYS_SEARCH_GLOBAL = 4; /// from: static public final int DEFAULT_KEYS_SEARCH_LOCAL static const DEFAULT_KEYS_SEARCH_LOCAL = 3; /// from: static public final int DEFAULT_KEYS_SHORTCUT static const DEFAULT_KEYS_SHORTCUT = 2; static final _get_FOCUSED_STATE_SET = jniLookup<ffi.NativeFunction<jni.JniResult Function()>>( "get_Activity__FOCUSED_STATE_SET") .asFunction<jni.JniResult Function()>(); /// from: static protected final int[] FOCUSED_STATE_SET /// The returned object must be released after use, by calling the [release] method. static jni.JArray<jni.jint> get FOCUSED_STATE_SET => const jni.JArrayType(jni.jintType()) .fromRef(_get_FOCUSED_STATE_SET().object); /// from: static public final int RESULT_CANCELED static const RESULT_CANCELED = 0; /// from: static public final int RESULT_FIRST_USER static const RESULT_FIRST_USER = 1; /// from: static public final int RESULT_OK static const RESULT_OK = -1; static final _new0 = jniLookup<ffi.NativeFunction<jni.JniResult Function()>>("Activity__new0") .asFunction<jni.JniResult Function()>(); /// from: public void <init>() /// The returned object must be released after use, by calling the [release] method. factory Activity() { return Activity.fromRef(_new0().object); } static final _getIntent = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getIntent") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent getIntent() /// The returned object must be released after use, by calling the [release] method. Intent getIntent() { return const $IntentType().fromRef(_getIntent(reference).object); } static final _setIntent = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__setIntent") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void setIntent(android.content.Intent intent) void setIntent( Intent intent, ) { return _setIntent(reference, intent.reference).check(); } static final _setLocusContext = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__setLocusContext") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void setLocusContext(android.content.LocusId locusId, android.os.Bundle bundle) void setLocusContext( jni.JObject locusId, jni.JObject bundle, ) { return _setLocusContext(reference, locusId.reference, bundle.reference) .check(); } static final _getApplication = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getApplication") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public final android.app.Application getApplication() /// The returned object must be released after use, by calling the [release] method. jni.JObject getApplication() { return const jni.JObjectType().fromRef(_getApplication(reference).object); } static final _isChild = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__isChild") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public final boolean isChild() bool isChild() { return _isChild(reference).boolean; } static final _getParent = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getParent") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public final android.app.Activity getParent() /// The returned object must be released after use, by calling the [release] method. Activity getParent() { return const $ActivityType().fromRef(_getParent(reference).object); } static final _getWindowManager = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getWindowManager") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public android.view.WindowManager getWindowManager() /// The returned object must be released after use, by calling the [release] method. jni.JObject getWindowManager() { return const jni.JObjectType().fromRef(_getWindowManager(reference).object); } static final _getWindow = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getWindow") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public android.view.Window getWindow() /// The returned object must be released after use, by calling the [release] method. jni.JObject getWindow() { return const jni.JObjectType().fromRef(_getWindow(reference).object); } static final _getLoaderManager = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getLoaderManager") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public android.app.LoaderManager getLoaderManager() /// The returned object must be released after use, by calling the [release] method. jni.JObject getLoaderManager() { return const jni.JObjectType().fromRef(_getLoaderManager(reference).object); } static final _getCurrentFocus = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getCurrentFocus") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public android.view.View getCurrentFocus() /// The returned object must be released after use, by calling the [release] method. jni.JObject getCurrentFocus() { return const jni.JObjectType().fromRef(_getCurrentFocus(reference).object); } static final _attachBaseContext = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__attachBaseContext") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: protected void attachBaseContext(android.content.Context context) void attachBaseContext( Context context, ) { return _attachBaseContext(reference, context.reference).check(); } static final _registerActivityLifecycleCallbacks = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Activity__registerActivityLifecycleCallbacks") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void registerActivityLifecycleCallbacks(android.app.Application$ActivityLifecycleCallbacks activityLifecycleCallbacks) void registerActivityLifecycleCallbacks( jni.JObject activityLifecycleCallbacks, ) { return _registerActivityLifecycleCallbacks( reference, activityLifecycleCallbacks.reference) .check(); } static final _unregisterActivityLifecycleCallbacks = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Activity__unregisterActivityLifecycleCallbacks") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void unregisterActivityLifecycleCallbacks(android.app.Application$ActivityLifecycleCallbacks activityLifecycleCallbacks) void unregisterActivityLifecycleCallbacks( jni.JObject activityLifecycleCallbacks, ) { return _unregisterActivityLifecycleCallbacks( reference, activityLifecycleCallbacks.reference) .check(); } static final _registerComponentCallbacks = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Activity__registerComponentCallbacks") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void registerComponentCallbacks(android.content.ComponentCallbacks componentCallbacks) void registerComponentCallbacks( jni.JObject componentCallbacks, ) { return _registerComponentCallbacks(reference, componentCallbacks.reference) .check(); } static final _unregisterComponentCallbacks = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Activity__unregisterComponentCallbacks") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void unregisterComponentCallbacks(android.content.ComponentCallbacks componentCallbacks) void unregisterComponentCallbacks( jni.JObject componentCallbacks, ) { return _unregisterComponentCallbacks( reference, componentCallbacks.reference) .check(); } static final _onCreate = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onCreate") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: protected void onCreate(android.os.Bundle bundle) void onCreate( jni.JObject bundle, ) { return _onCreate(reference, bundle.reference).check(); } static final _getSplashScreen = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getSplashScreen") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public final android.window.SplashScreen getSplashScreen() /// The returned object must be released after use, by calling the [release] method. jni.JObject getSplashScreen() { return const jni.JObjectType().fromRef(_getSplashScreen(reference).object); } static final _onCreate1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onCreate1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void onCreate(android.os.Bundle bundle, android.os.PersistableBundle persistableBundle) void onCreate1( jni.JObject bundle, jni.JObject persistableBundle, ) { return _onCreate1(reference, bundle.reference, persistableBundle.reference) .check(); } static final _onRestoreInstanceState = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onRestoreInstanceState") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: protected void onRestoreInstanceState(android.os.Bundle bundle) void onRestoreInstanceState( jni.JObject bundle, ) { return _onRestoreInstanceState(reference, bundle.reference).check(); } static final _onRestoreInstanceState1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onRestoreInstanceState1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void onRestoreInstanceState(android.os.Bundle bundle, android.os.PersistableBundle persistableBundle) void onRestoreInstanceState1( jni.JObject bundle, jni.JObject persistableBundle, ) { return _onRestoreInstanceState1( reference, bundle.reference, persistableBundle.reference) .check(); } static final _onPostCreate = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onPostCreate") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: protected void onPostCreate(android.os.Bundle bundle) void onPostCreate( jni.JObject bundle, ) { return _onPostCreate(reference, bundle.reference).check(); } static final _onPostCreate1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onPostCreate1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void onPostCreate(android.os.Bundle bundle, android.os.PersistableBundle persistableBundle) void onPostCreate1( jni.JObject bundle, jni.JObject persistableBundle, ) { return _onPostCreate1( reference, bundle.reference, persistableBundle.reference) .check(); } static final _onStart = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__onStart") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: protected void onStart() void onStart() { return _onStart(reference).check(); } static final _onRestart = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__onRestart") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: protected void onRestart() void onRestart() { return _onRestart(reference).check(); } static final _onStateNotSaved = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__onStateNotSaved") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void onStateNotSaved() void onStateNotSaved() { return _onStateNotSaved(reference).check(); } static final _onResume = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__onResume") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: protected void onResume() void onResume() { return _onResume(reference).check(); } static final _onPostResume = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__onPostResume") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: protected void onPostResume() void onPostResume() { return _onPostResume(reference).check(); } static final _onTopResumedActivityChanged = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Uint8)>>("Activity__onTopResumedActivityChanged") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public void onTopResumedActivityChanged(boolean z) void onTopResumedActivityChanged( bool z, ) { return _onTopResumedActivityChanged(reference, z ? 1 : 0).check(); } static final _isVoiceInteraction = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__isVoiceInteraction") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public boolean isVoiceInteraction() bool isVoiceInteraction() { return _isVoiceInteraction(reference).boolean; } static final _isVoiceInteractionRoot = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__isVoiceInteractionRoot") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public boolean isVoiceInteractionRoot() bool isVoiceInteractionRoot() { return _isVoiceInteractionRoot(reference).boolean; } static final _getVoiceInteractor = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getVoiceInteractor") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public android.app.VoiceInteractor getVoiceInteractor() /// The returned object must be released after use, by calling the [release] method. jni.JObject getVoiceInteractor() { return const jni.JObjectType() .fromRef(_getVoiceInteractor(reference).object); } static final _isLocalVoiceInteractionSupported = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__isLocalVoiceInteractionSupported") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public boolean isLocalVoiceInteractionSupported() bool isLocalVoiceInteractionSupported() { return _isLocalVoiceInteractionSupported(reference).boolean; } static final _startLocalVoiceInteraction = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Activity__startLocalVoiceInteraction") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void startLocalVoiceInteraction(android.os.Bundle bundle) void startLocalVoiceInteraction( jni.JObject bundle, ) { return _startLocalVoiceInteraction(reference, bundle.reference).check(); } static final _onLocalVoiceInteractionStarted = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__onLocalVoiceInteractionStarted") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void onLocalVoiceInteractionStarted() void onLocalVoiceInteractionStarted() { return _onLocalVoiceInteractionStarted(reference).check(); } static final _onLocalVoiceInteractionStopped = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__onLocalVoiceInteractionStopped") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void onLocalVoiceInteractionStopped() void onLocalVoiceInteractionStopped() { return _onLocalVoiceInteractionStopped(reference).check(); } static final _stopLocalVoiceInteraction = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__stopLocalVoiceInteraction") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void stopLocalVoiceInteraction() void stopLocalVoiceInteraction() { return _stopLocalVoiceInteraction(reference).check(); } static final _onNewIntent = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onNewIntent") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: protected void onNewIntent(android.content.Intent intent) void onNewIntent( Intent intent, ) { return _onNewIntent(reference, intent.reference).check(); } static final _onSaveInstanceState = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onSaveInstanceState") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: protected void onSaveInstanceState(android.os.Bundle bundle) void onSaveInstanceState( jni.JObject bundle, ) { return _onSaveInstanceState(reference, bundle.reference).check(); } static final _onSaveInstanceState1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onSaveInstanceState1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void onSaveInstanceState(android.os.Bundle bundle, android.os.PersistableBundle persistableBundle) void onSaveInstanceState1( jni.JObject bundle, jni.JObject persistableBundle, ) { return _onSaveInstanceState1( reference, bundle.reference, persistableBundle.reference) .check(); } static final _onPause = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__onPause") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: protected void onPause() void onPause() { return _onPause(reference).check(); } static final _onUserLeaveHint = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__onUserLeaveHint") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: protected void onUserLeaveHint() void onUserLeaveHint() { return _onUserLeaveHint(reference).check(); } static final _onCreateThumbnail = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onCreateThumbnail") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean onCreateThumbnail(android.graphics.Bitmap bitmap, android.graphics.Canvas canvas) bool onCreateThumbnail( jni.JObject bitmap, jni.JObject canvas, ) { return _onCreateThumbnail(reference, bitmap.reference, canvas.reference) .boolean; } static final _onCreateDescription = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__onCreateDescription") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public java.lang.CharSequence onCreateDescription() /// The returned object must be released after use, by calling the [release] method. jni.JObject onCreateDescription() { return const jni.JObjectType() .fromRef(_onCreateDescription(reference).object); } static final _onProvideAssistData = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onProvideAssistData") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void onProvideAssistData(android.os.Bundle bundle) void onProvideAssistData( jni.JObject bundle, ) { return _onProvideAssistData(reference, bundle.reference).check(); } static final _onProvideAssistContent = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onProvideAssistContent") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void onProvideAssistContent(android.app.assist.AssistContent assistContent) void onProvideAssistContent( jni.JObject assistContent, ) { return _onProvideAssistContent(reference, assistContent.reference).check(); } static final _onGetDirectActions = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onGetDirectActions") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void onGetDirectActions(android.os.CancellationSignal cancellationSignal, java.util.function.Consumer consumer) void onGetDirectActions( jni.JObject cancellationSignal, jni.JObject consumer, ) { return _onGetDirectActions( reference, cancellationSignal.reference, consumer.reference) .check(); } static final _onPerformDirectAction = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onPerformDirectAction") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void onPerformDirectAction(java.lang.String string, android.os.Bundle bundle, android.os.CancellationSignal cancellationSignal, java.util.function.Consumer consumer) void onPerformDirectAction( jni.JString string, jni.JObject bundle, jni.JObject cancellationSignal, jni.JObject consumer, ) { return _onPerformDirectAction(reference, string.reference, bundle.reference, cancellationSignal.reference, consumer.reference) .check(); } static final _requestShowKeyboardShortcuts = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__requestShowKeyboardShortcuts") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public final void requestShowKeyboardShortcuts() void requestShowKeyboardShortcuts() { return _requestShowKeyboardShortcuts(reference).check(); } static final _dismissKeyboardShortcutsHelper = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__dismissKeyboardShortcutsHelper") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public final void dismissKeyboardShortcutsHelper() void dismissKeyboardShortcutsHelper() { return _dismissKeyboardShortcutsHelper(reference).check(); } static final _onProvideKeyboardShortcuts = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__onProvideKeyboardShortcuts") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public void onProvideKeyboardShortcuts(java.util.List list, android.view.Menu menu, int i) void onProvideKeyboardShortcuts( jni.JList<jni.JObject> list, jni.JObject menu, int i, ) { return _onProvideKeyboardShortcuts( reference, list.reference, menu.reference, i) .check(); } static final _showAssist = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__showAssist") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean showAssist(android.os.Bundle bundle) bool showAssist( jni.JObject bundle, ) { return _showAssist(reference, bundle.reference).boolean; } static final _onStop = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__onStop") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: protected void onStop() void onStop() { return _onStop(reference).check(); } static final _onDestroy = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__onDestroy") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: protected void onDestroy() void onDestroy() { return _onDestroy(reference).check(); } static final _reportFullyDrawn = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__reportFullyDrawn") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void reportFullyDrawn() void reportFullyDrawn() { return _reportFullyDrawn(reference).check(); } static final _onMultiWindowModeChanged = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Uint8, ffi.Pointer<ffi.Void>)>>("Activity__onMultiWindowModeChanged") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public void onMultiWindowModeChanged(boolean z, android.content.res.Configuration configuration) void onMultiWindowModeChanged( bool z, jni.JObject configuration, ) { return _onMultiWindowModeChanged( reference, z ? 1 : 0, configuration.reference) .check(); } static final _onMultiWindowModeChanged1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Uint8)>>("Activity__onMultiWindowModeChanged1") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public void onMultiWindowModeChanged(boolean z) void onMultiWindowModeChanged1( bool z, ) { return _onMultiWindowModeChanged1(reference, z ? 1 : 0).check(); } static final _isInMultiWindowMode = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__isInMultiWindowMode") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public boolean isInMultiWindowMode() bool isInMultiWindowMode() { return _isInMultiWindowMode(reference).boolean; } static final _onPictureInPictureModeChanged = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Uint8, ffi.Pointer<ffi.Void>)>>( "Activity__onPictureInPictureModeChanged") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public void onPictureInPictureModeChanged(boolean z, android.content.res.Configuration configuration) void onPictureInPictureModeChanged( bool z, jni.JObject configuration, ) { return _onPictureInPictureModeChanged( reference, z ? 1 : 0, configuration.reference) .check(); } static final _onPictureInPictureUiStateChanged = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Activity__onPictureInPictureUiStateChanged") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void onPictureInPictureUiStateChanged(android.app.PictureInPictureUiState pictureInPictureUiState) void onPictureInPictureUiStateChanged( jni.JObject pictureInPictureUiState, ) { return _onPictureInPictureUiStateChanged( reference, pictureInPictureUiState.reference) .check(); } static final _onPictureInPictureModeChanged1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Uint8)>>("Activity__onPictureInPictureModeChanged1") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public void onPictureInPictureModeChanged(boolean z) void onPictureInPictureModeChanged1( bool z, ) { return _onPictureInPictureModeChanged1(reference, z ? 1 : 0).check(); } static final _isInPictureInPictureMode = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__isInPictureInPictureMode") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public boolean isInPictureInPictureMode() bool isInPictureInPictureMode() { return _isInPictureInPictureMode(reference).boolean; } static final _enterPictureInPictureMode = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__enterPictureInPictureMode") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void enterPictureInPictureMode() void enterPictureInPictureMode() { return _enterPictureInPictureMode(reference).check(); } static final _enterPictureInPictureMode1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Activity__enterPictureInPictureMode1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean enterPictureInPictureMode(android.app.PictureInPictureParams pictureInPictureParams) bool enterPictureInPictureMode1( jni.JObject pictureInPictureParams, ) { return _enterPictureInPictureMode1( reference, pictureInPictureParams.reference) .boolean; } static final _setPictureInPictureParams = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Activity__setPictureInPictureParams") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void setPictureInPictureParams(android.app.PictureInPictureParams pictureInPictureParams) void setPictureInPictureParams( jni.JObject pictureInPictureParams, ) { return _setPictureInPictureParams( reference, pictureInPictureParams.reference) .check(); } static final _getMaxNumPictureInPictureActions = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getMaxNumPictureInPictureActions") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public int getMaxNumPictureInPictureActions() int getMaxNumPictureInPictureActions() { return _getMaxNumPictureInPictureActions(reference).integer; } static final _onPictureInPictureRequested = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__onPictureInPictureRequested") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public boolean onPictureInPictureRequested() bool onPictureInPictureRequested() { return _onPictureInPictureRequested(reference).boolean; } static final _setShouldDockBigOverlays = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Uint8)>>("Activity__setShouldDockBigOverlays") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public void setShouldDockBigOverlays(boolean z) void setShouldDockBigOverlays( bool z, ) { return _setShouldDockBigOverlays(reference, z ? 1 : 0).check(); } static final _shouldDockBigOverlays = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__shouldDockBigOverlays") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public boolean shouldDockBigOverlays() bool shouldDockBigOverlays() { return _shouldDockBigOverlays(reference).boolean; } static final _onConfigurationChanged = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onConfigurationChanged") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void onConfigurationChanged(android.content.res.Configuration configuration) void onConfigurationChanged( jni.JObject configuration, ) { return _onConfigurationChanged(reference, configuration.reference).check(); } static final _getChangingConfigurations = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getChangingConfigurations") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public int getChangingConfigurations() int getChangingConfigurations() { return _getChangingConfigurations(reference).integer; } static final _getLastNonConfigurationInstance = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getLastNonConfigurationInstance") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public java.lang.Object getLastNonConfigurationInstance() /// The returned object must be released after use, by calling the [release] method. jni.JObject getLastNonConfigurationInstance() { return const jni.JObjectType() .fromRef(_getLastNonConfigurationInstance(reference).object); } static final _onRetainNonConfigurationInstance = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__onRetainNonConfigurationInstance") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public java.lang.Object onRetainNonConfigurationInstance() /// The returned object must be released after use, by calling the [release] method. jni.JObject onRetainNonConfigurationInstance() { return const jni.JObjectType() .fromRef(_onRetainNonConfigurationInstance(reference).object); } static final _onLowMemory = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__onLowMemory") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void onLowMemory() void onLowMemory() { return _onLowMemory(reference).check(); } static final _onTrimMemory = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__onTrimMemory") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public void onTrimMemory(int i) void onTrimMemory( int i, ) { return _onTrimMemory(reference, i).check(); } static final _getFragmentManager = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getFragmentManager") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public android.app.FragmentManager getFragmentManager() /// The returned object must be released after use, by calling the [release] method. jni.JObject getFragmentManager() { return const jni.JObjectType() .fromRef(_getFragmentManager(reference).object); } static final _onAttachFragment = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onAttachFragment") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void onAttachFragment(android.app.Fragment fragment) void onAttachFragment( jni.JObject fragment, ) { return _onAttachFragment(reference, fragment.reference).check(); } static final _managedQuery = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__managedQuery") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public final android.database.Cursor managedQuery(android.net.Uri uri, java.lang.String[] strings, java.lang.String string, java.lang.String[] strings1, java.lang.String string1) /// The returned object must be released after use, by calling the [release] method. jni.JObject managedQuery( jni.JObject uri, jni.JArray<jni.JString> strings, jni.JString string, jni.JArray<jni.JString> strings1, jni.JString string1, ) { return const jni.JObjectType().fromRef(_managedQuery( reference, uri.reference, strings.reference, string.reference, strings1.reference, string1.reference) .object); } static final _startManagingCursor = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__startManagingCursor") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void startManagingCursor(android.database.Cursor cursor) void startManagingCursor( jni.JObject cursor, ) { return _startManagingCursor(reference, cursor.reference).check(); } static final _stopManagingCursor = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__stopManagingCursor") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void stopManagingCursor(android.database.Cursor cursor) void stopManagingCursor( jni.JObject cursor, ) { return _stopManagingCursor(reference, cursor.reference).check(); } static final _findViewById = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__findViewById") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public T findViewById(int i) /// The returned object must be released after use, by calling the [release] method. $T findViewById<$T extends jni.JObject>( int i, { required jni.JObjType<$T> T, }) { return T.fromRef(_findViewById(reference, i).object); } static final _requireViewById = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__requireViewById") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public final T requireViewById(int i) /// The returned object must be released after use, by calling the [release] method. $T requireViewById<$T extends jni.JObject>( int i, { required jni.JObjType<$T> T, }) { return T.fromRef(_requireViewById(reference, i).object); } static final _getActionBar = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getActionBar") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public android.app.ActionBar getActionBar() /// The returned object must be released after use, by calling the [release] method. jni.JObject getActionBar() { return const jni.JObjectType().fromRef(_getActionBar(reference).object); } static final _setActionBar = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__setActionBar") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void setActionBar(android.widget.Toolbar toolbar) void setActionBar( jni.JObject toolbar, ) { return _setActionBar(reference, toolbar.reference).check(); } static final _setContentView = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__setContentView") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public void setContentView(int i) void setContentView( int i, ) { return _setContentView(reference, i).check(); } static final _setContentView1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__setContentView1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void setContentView(android.view.View view) void setContentView1( jni.JObject view, ) { return _setContentView1(reference, view.reference).check(); } static final _setContentView2 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__setContentView2") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void setContentView(android.view.View view, android.view.ViewGroup$LayoutParams layoutParams) void setContentView2( jni.JObject view, jni.JObject layoutParams, ) { return _setContentView2(reference, view.reference, layoutParams.reference) .check(); } static final _addContentView = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__addContentView") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void addContentView(android.view.View view, android.view.ViewGroup$LayoutParams layoutParams) void addContentView( jni.JObject view, jni.JObject layoutParams, ) { return _addContentView(reference, view.reference, layoutParams.reference) .check(); } static final _getContentTransitionManager = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getContentTransitionManager") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public android.transition.TransitionManager getContentTransitionManager() /// The returned object must be released after use, by calling the [release] method. jni.JObject getContentTransitionManager() { return const jni.JObjectType() .fromRef(_getContentTransitionManager(reference).object); } static final _setContentTransitionManager = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Activity__setContentTransitionManager") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void setContentTransitionManager(android.transition.TransitionManager transitionManager) void setContentTransitionManager( jni.JObject transitionManager, ) { return _setContentTransitionManager(reference, transitionManager.reference) .check(); } static final _getContentScene = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getContentScene") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public android.transition.Scene getContentScene() /// The returned object must be released after use, by calling the [release] method. jni.JObject getContentScene() { return const jni.JObjectType().fromRef(_getContentScene(reference).object); } static final _setFinishOnTouchOutside = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Uint8)>>("Activity__setFinishOnTouchOutside") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public void setFinishOnTouchOutside(boolean z) void setFinishOnTouchOutside( bool z, ) { return _setFinishOnTouchOutside(reference, z ? 1 : 0).check(); } static final _setDefaultKeyMode = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__setDefaultKeyMode") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public final void setDefaultKeyMode(int i) void setDefaultKeyMode( int i, ) { return _setDefaultKeyMode(reference, i).check(); } static final _onKeyDown = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Activity__onKeyDown") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public boolean onKeyDown(int i, android.view.KeyEvent keyEvent) bool onKeyDown( int i, jni.JObject keyEvent, ) { return _onKeyDown(reference, i, keyEvent.reference).boolean; } static final _onKeyLongPress = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Activity__onKeyLongPress") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public boolean onKeyLongPress(int i, android.view.KeyEvent keyEvent) bool onKeyLongPress( int i, jni.JObject keyEvent, ) { return _onKeyLongPress(reference, i, keyEvent.reference).boolean; } static final _onKeyUp = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Activity__onKeyUp") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public boolean onKeyUp(int i, android.view.KeyEvent keyEvent) bool onKeyUp( int i, jni.JObject keyEvent, ) { return _onKeyUp(reference, i, keyEvent.reference).boolean; } static final _onKeyMultiple = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Activity__onKeyMultiple") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, int, int, ffi.Pointer<ffi.Void>)>(); /// from: public boolean onKeyMultiple(int i, int i1, android.view.KeyEvent keyEvent) bool onKeyMultiple( int i, int i1, jni.JObject keyEvent, ) { return _onKeyMultiple(reference, i, i1, keyEvent.reference).boolean; } static final _onBackPressed = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__onBackPressed") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void onBackPressed() void onBackPressed() { return _onBackPressed(reference).check(); } static final _onKeyShortcut = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Activity__onKeyShortcut") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public boolean onKeyShortcut(int i, android.view.KeyEvent keyEvent) bool onKeyShortcut( int i, jni.JObject keyEvent, ) { return _onKeyShortcut(reference, i, keyEvent.reference).boolean; } static final _onTouchEvent = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onTouchEvent") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean onTouchEvent(android.view.MotionEvent motionEvent) bool onTouchEvent( jni.JObject motionEvent, ) { return _onTouchEvent(reference, motionEvent.reference).boolean; } static final _onTrackballEvent = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onTrackballEvent") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean onTrackballEvent(android.view.MotionEvent motionEvent) bool onTrackballEvent( jni.JObject motionEvent, ) { return _onTrackballEvent(reference, motionEvent.reference).boolean; } static final _onGenericMotionEvent = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onGenericMotionEvent") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean onGenericMotionEvent(android.view.MotionEvent motionEvent) bool onGenericMotionEvent( jni.JObject motionEvent, ) { return _onGenericMotionEvent(reference, motionEvent.reference).boolean; } static final _onUserInteraction = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__onUserInteraction") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void onUserInteraction() void onUserInteraction() { return _onUserInteraction(reference).check(); } static final _onWindowAttributesChanged = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Activity__onWindowAttributesChanged") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void onWindowAttributesChanged(android.view.WindowManager$LayoutParams layoutParams) void onWindowAttributesChanged( jni.JObject layoutParams, ) { return _onWindowAttributesChanged(reference, layoutParams.reference) .check(); } static final _onContentChanged = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__onContentChanged") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void onContentChanged() void onContentChanged() { return _onContentChanged(reference).check(); } static final _onWindowFocusChanged = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Uint8)>>("Activity__onWindowFocusChanged") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public void onWindowFocusChanged(boolean z) void onWindowFocusChanged( bool z, ) { return _onWindowFocusChanged(reference, z ? 1 : 0).check(); } static final _onAttachedToWindow = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__onAttachedToWindow") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void onAttachedToWindow() void onAttachedToWindow() { return _onAttachedToWindow(reference).check(); } static final _onDetachedFromWindow = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__onDetachedFromWindow") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void onDetachedFromWindow() void onDetachedFromWindow() { return _onDetachedFromWindow(reference).check(); } static final _hasWindowFocus = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__hasWindowFocus") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public boolean hasWindowFocus() bool hasWindowFocus() { return _hasWindowFocus(reference).boolean; } static final _dispatchKeyEvent = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__dispatchKeyEvent") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean dispatchKeyEvent(android.view.KeyEvent keyEvent) bool dispatchKeyEvent( jni.JObject keyEvent, ) { return _dispatchKeyEvent(reference, keyEvent.reference).boolean; } static final _dispatchKeyShortcutEvent = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__dispatchKeyShortcutEvent") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean dispatchKeyShortcutEvent(android.view.KeyEvent keyEvent) bool dispatchKeyShortcutEvent( jni.JObject keyEvent, ) { return _dispatchKeyShortcutEvent(reference, keyEvent.reference).boolean; } static final _dispatchTouchEvent = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__dispatchTouchEvent") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean dispatchTouchEvent(android.view.MotionEvent motionEvent) bool dispatchTouchEvent( jni.JObject motionEvent, ) { return _dispatchTouchEvent(reference, motionEvent.reference).boolean; } static final _dispatchTrackballEvent = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__dispatchTrackballEvent") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean dispatchTrackballEvent(android.view.MotionEvent motionEvent) bool dispatchTrackballEvent( jni.JObject motionEvent, ) { return _dispatchTrackballEvent(reference, motionEvent.reference).boolean; } static final _dispatchGenericMotionEvent = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Activity__dispatchGenericMotionEvent") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean dispatchGenericMotionEvent(android.view.MotionEvent motionEvent) bool dispatchGenericMotionEvent( jni.JObject motionEvent, ) { return _dispatchGenericMotionEvent(reference, motionEvent.reference) .boolean; } static final _dispatchPopulateAccessibilityEvent = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Activity__dispatchPopulateAccessibilityEvent") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean dispatchPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent accessibilityEvent) bool dispatchPopulateAccessibilityEvent( jni.JObject accessibilityEvent, ) { return _dispatchPopulateAccessibilityEvent( reference, accessibilityEvent.reference) .boolean; } static final _onCreatePanelView = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__onCreatePanelView") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public android.view.View onCreatePanelView(int i) /// The returned object must be released after use, by calling the [release] method. jni.JObject onCreatePanelView( int i, ) { return const jni.JObjectType() .fromRef(_onCreatePanelView(reference, i).object); } static final _onCreatePanelMenu = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Activity__onCreatePanelMenu") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public boolean onCreatePanelMenu(int i, android.view.Menu menu) bool onCreatePanelMenu( int i, jni.JObject menu, ) { return _onCreatePanelMenu(reference, i, menu.reference).boolean; } static final _onPreparePanel = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onPreparePanel") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean onPreparePanel(int i, android.view.View view, android.view.Menu menu) bool onPreparePanel( int i, jni.JObject view, jni.JObject menu, ) { return _onPreparePanel(reference, i, view.reference, menu.reference) .boolean; } static final _onMenuOpened = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Activity__onMenuOpened") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public boolean onMenuOpened(int i, android.view.Menu menu) bool onMenuOpened( int i, jni.JObject menu, ) { return _onMenuOpened(reference, i, menu.reference).boolean; } static final _onMenuItemSelected = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Activity__onMenuItemSelected") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public boolean onMenuItemSelected(int i, android.view.MenuItem menuItem) bool onMenuItemSelected( int i, jni.JObject menuItem, ) { return _onMenuItemSelected(reference, i, menuItem.reference).boolean; } static final _onPanelClosed = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Activity__onPanelClosed") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public void onPanelClosed(int i, android.view.Menu menu) void onPanelClosed( int i, jni.JObject menu, ) { return _onPanelClosed(reference, i, menu.reference).check(); } static final _invalidateOptionsMenu = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__invalidateOptionsMenu") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void invalidateOptionsMenu() void invalidateOptionsMenu() { return _invalidateOptionsMenu(reference).check(); } static final _onCreateOptionsMenu = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onCreateOptionsMenu") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean onCreateOptionsMenu(android.view.Menu menu) bool onCreateOptionsMenu( jni.JObject menu, ) { return _onCreateOptionsMenu(reference, menu.reference).boolean; } static final _onPrepareOptionsMenu = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onPrepareOptionsMenu") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean onPrepareOptionsMenu(android.view.Menu menu) bool onPrepareOptionsMenu( jni.JObject menu, ) { return _onPrepareOptionsMenu(reference, menu.reference).boolean; } static final _onOptionsItemSelected = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onOptionsItemSelected") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean onOptionsItemSelected(android.view.MenuItem menuItem) bool onOptionsItemSelected( jni.JObject menuItem, ) { return _onOptionsItemSelected(reference, menuItem.reference).boolean; } static final _onNavigateUp = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__onNavigateUp") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public boolean onNavigateUp() bool onNavigateUp() { return _onNavigateUp(reference).boolean; } static final _onNavigateUpFromChild = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onNavigateUpFromChild") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean onNavigateUpFromChild(android.app.Activity activity) bool onNavigateUpFromChild( Activity activity, ) { return _onNavigateUpFromChild(reference, activity.reference).boolean; } static final _onCreateNavigateUpTaskStack = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Activity__onCreateNavigateUpTaskStack") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void onCreateNavigateUpTaskStack(android.app.TaskStackBuilder taskStackBuilder) void onCreateNavigateUpTaskStack( jni.JObject taskStackBuilder, ) { return _onCreateNavigateUpTaskStack(reference, taskStackBuilder.reference) .check(); } static final _onPrepareNavigateUpTaskStack = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Activity__onPrepareNavigateUpTaskStack") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void onPrepareNavigateUpTaskStack(android.app.TaskStackBuilder taskStackBuilder) void onPrepareNavigateUpTaskStack( jni.JObject taskStackBuilder, ) { return _onPrepareNavigateUpTaskStack(reference, taskStackBuilder.reference) .check(); } static final _onOptionsMenuClosed = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onOptionsMenuClosed") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void onOptionsMenuClosed(android.view.Menu menu) void onOptionsMenuClosed( jni.JObject menu, ) { return _onOptionsMenuClosed(reference, menu.reference).check(); } static final _openOptionsMenu = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__openOptionsMenu") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void openOptionsMenu() void openOptionsMenu() { return _openOptionsMenu(reference).check(); } static final _closeOptionsMenu = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__closeOptionsMenu") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void closeOptionsMenu() void closeOptionsMenu() { return _closeOptionsMenu(reference).check(); } static final _onCreateContextMenu = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onCreateContextMenu") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void onCreateContextMenu(android.view.ContextMenu contextMenu, android.view.View view, android.view.ContextMenu$ContextMenuInfo contextMenuInfo) void onCreateContextMenu( jni.JObject contextMenu, jni.JObject view, jni.JObject contextMenuInfo, ) { return _onCreateContextMenu(reference, contextMenu.reference, view.reference, contextMenuInfo.reference) .check(); } static final _registerForContextMenu = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__registerForContextMenu") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void registerForContextMenu(android.view.View view) void registerForContextMenu( jni.JObject view, ) { return _registerForContextMenu(reference, view.reference).check(); } static final _unregisterForContextMenu = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__unregisterForContextMenu") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void unregisterForContextMenu(android.view.View view) void unregisterForContextMenu( jni.JObject view, ) { return _unregisterForContextMenu(reference, view.reference).check(); } static final _openContextMenu = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__openContextMenu") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void openContextMenu(android.view.View view) void openContextMenu( jni.JObject view, ) { return _openContextMenu(reference, view.reference).check(); } static final _closeContextMenu = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__closeContextMenu") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void closeContextMenu() void closeContextMenu() { return _closeContextMenu(reference).check(); } static final _onContextItemSelected = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onContextItemSelected") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean onContextItemSelected(android.view.MenuItem menuItem) bool onContextItemSelected( jni.JObject menuItem, ) { return _onContextItemSelected(reference, menuItem.reference).boolean; } static final _onContextMenuClosed = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onContextMenuClosed") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void onContextMenuClosed(android.view.Menu menu) void onContextMenuClosed( jni.JObject menu, ) { return _onContextMenuClosed(reference, menu.reference).check(); } static final _onCreateDialog = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__onCreateDialog") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: protected android.app.Dialog onCreateDialog(int i) /// The returned object must be released after use, by calling the [release] method. jni.JObject onCreateDialog( int i, ) { return const jni.JObjectType() .fromRef(_onCreateDialog(reference, i).object); } static final _onCreateDialog1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Activity__onCreateDialog1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: protected android.app.Dialog onCreateDialog(int i, android.os.Bundle bundle) /// The returned object must be released after use, by calling the [release] method. jni.JObject onCreateDialog1( int i, jni.JObject bundle, ) { return const jni.JObjectType() .fromRef(_onCreateDialog1(reference, i, bundle.reference).object); } static final _onPrepareDialog = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Activity__onPrepareDialog") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: protected void onPrepareDialog(int i, android.app.Dialog dialog) void onPrepareDialog( int i, jni.JObject dialog, ) { return _onPrepareDialog(reference, i, dialog.reference).check(); } static final _onPrepareDialog1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onPrepareDialog1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: protected void onPrepareDialog(int i, android.app.Dialog dialog, android.os.Bundle bundle) void onPrepareDialog1( int i, jni.JObject dialog, jni.JObject bundle, ) { return _onPrepareDialog1(reference, i, dialog.reference, bundle.reference) .check(); } static final _showDialog = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__showDialog") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public final void showDialog(int i) void showDialog( int i, ) { return _showDialog(reference, i).check(); } static final _showDialog1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Activity__showDialog1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public final boolean showDialog(int i, android.os.Bundle bundle) bool showDialog1( int i, jni.JObject bundle, ) { return _showDialog1(reference, i, bundle.reference).boolean; } static final _dismissDialog = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__dismissDialog") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public final void dismissDialog(int i) void dismissDialog( int i, ) { return _dismissDialog(reference, i).check(); } static final _removeDialog = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__removeDialog") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public final void removeDialog(int i) void removeDialog( int i, ) { return _removeDialog(reference, i).check(); } static final _onSearchRequested = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onSearchRequested") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean onSearchRequested(android.view.SearchEvent searchEvent) bool onSearchRequested( jni.JObject searchEvent, ) { return _onSearchRequested(reference, searchEvent.reference).boolean; } static final _onSearchRequested1 = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__onSearchRequested1") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public boolean onSearchRequested() bool onSearchRequested1() { return _onSearchRequested1(reference).boolean; } static final _getSearchEvent = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getSearchEvent") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public final android.view.SearchEvent getSearchEvent() /// The returned object must be released after use, by calling the [release] method. jni.JObject getSearchEvent() { return const jni.JObjectType().fromRef(_getSearchEvent(reference).object); } static final _startSearch = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Uint8, ffi.Pointer<ffi.Void>, ffi.Uint8)>>("Activity__startSearch") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>, int)>(); /// from: public void startSearch(java.lang.String string, boolean z, android.os.Bundle bundle, boolean z1) void startSearch( jni.JString string, bool z, jni.JObject bundle, bool z1, ) { return _startSearch(reference, string.reference, z ? 1 : 0, bundle.reference, z1 ? 1 : 0) .check(); } static final _triggerSearch = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__triggerSearch") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void triggerSearch(java.lang.String string, android.os.Bundle bundle) void triggerSearch( jni.JString string, jni.JObject bundle, ) { return _triggerSearch(reference, string.reference, bundle.reference) .check(); } static final _takeKeyEvents = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Uint8)>>("Activity__takeKeyEvents") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public void takeKeyEvents(boolean z) void takeKeyEvents( bool z, ) { return _takeKeyEvents(reference, z ? 1 : 0).check(); } static final _requestWindowFeature = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__requestWindowFeature") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public final boolean requestWindowFeature(int i) bool requestWindowFeature( int i, ) { return _requestWindowFeature(reference, i).boolean; } static final _setFeatureDrawableResource = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Int32)>>("Activity__setFeatureDrawableResource") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int, int)>(); /// from: public final void setFeatureDrawableResource(int i, int i1) void setFeatureDrawableResource( int i, int i1, ) { return _setFeatureDrawableResource(reference, i, i1).check(); } static final _setFeatureDrawableUri = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Activity__setFeatureDrawableUri") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public final void setFeatureDrawableUri(int i, android.net.Uri uri) void setFeatureDrawableUri( int i, jni.JObject uri, ) { return _setFeatureDrawableUri(reference, i, uri.reference).check(); } static final _setFeatureDrawable = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Activity__setFeatureDrawable") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public final void setFeatureDrawable(int i, android.graphics.drawable.Drawable drawable) void setFeatureDrawable( int i, jni.JObject drawable, ) { return _setFeatureDrawable(reference, i, drawable.reference).check(); } static final _setFeatureDrawableAlpha = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Int32)>>("Activity__setFeatureDrawableAlpha") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int, int)>(); /// from: public final void setFeatureDrawableAlpha(int i, int i1) void setFeatureDrawableAlpha( int i, int i1, ) { return _setFeatureDrawableAlpha(reference, i, i1).check(); } static final _getLayoutInflater = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getLayoutInflater") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public android.view.LayoutInflater getLayoutInflater() /// The returned object must be released after use, by calling the [release] method. jni.JObject getLayoutInflater() { return const jni.JObjectType() .fromRef(_getLayoutInflater(reference).object); } static final _getMenuInflater = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getMenuInflater") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public android.view.MenuInflater getMenuInflater() /// The returned object must be released after use, by calling the [release] method. jni.JObject getMenuInflater() { return const jni.JObjectType().fromRef(_getMenuInflater(reference).object); } static final _setTheme = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__setTheme") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public void setTheme(int i) void setTheme( int i, ) { return _setTheme(reference, i).check(); } static final _onApplyThemeResource = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Uint8)>>("Activity__onApplyThemeResource") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, int)>(); /// from: protected void onApplyThemeResource(android.content.res.Resources$Theme theme, int i, boolean z) void onApplyThemeResource( jni.JObject theme, int i, bool z, ) { return _onApplyThemeResource(reference, theme.reference, i, z ? 1 : 0) .check(); } static final _requestPermissions = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__requestPermissions") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public final void requestPermissions(java.lang.String[] strings, int i) void requestPermissions( jni.JArray<jni.JString> strings, int i, ) { return _requestPermissions(reference, strings.reference, i).check(); } static final _onRequestPermissionsResult = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Activity__onRequestPermissionsResult") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void onRequestPermissionsResult(int i, java.lang.String[] strings, int[] is) void onRequestPermissionsResult( int i, jni.JArray<jni.JString> strings, jni.JArray<jni.jint> is0, ) { return _onRequestPermissionsResult( reference, i, strings.reference, is0.reference) .check(); } static final _shouldShowRequestPermissionRationale = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Activity__shouldShowRequestPermissionRationale") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean shouldShowRequestPermissionRationale(java.lang.String string) bool shouldShowRequestPermissionRationale( jni.JString string, ) { return _shouldShowRequestPermissionRationale(reference, string.reference) .boolean; } static final _startActivityForResult = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__startActivityForResult") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public void startActivityForResult(android.content.Intent intent, int i) void startActivityForResult( Intent intent, int i, ) { return _startActivityForResult(reference, intent.reference, i).check(); } static final _startActivityForResult1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Activity__startActivityForResult1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public void startActivityForResult(android.content.Intent intent, int i, android.os.Bundle bundle) void startActivityForResult1( Intent intent, int i, jni.JObject bundle, ) { return _startActivityForResult1( reference, intent.reference, i, bundle.reference) .check(); } static final _isActivityTransitionRunning = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__isActivityTransitionRunning") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public boolean isActivityTransitionRunning() bool isActivityTransitionRunning() { return _isActivityTransitionRunning(reference).boolean; } static final _startIntentSenderForResult = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Int32, ffi.Int32)>>("Activity__startIntentSenderForResult") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>, int, int, int)>(); /// from: public void startIntentSenderForResult(android.content.IntentSender intentSender, int i, android.content.Intent intent, int i1, int i2, int i3) void startIntentSenderForResult( jni.JObject intentSender, int i, Intent intent, int i1, int i2, int i3, ) { return _startIntentSenderForResult( reference, intentSender.reference, i, intent.reference, i1, i2, i3) .check(); } static final _startIntentSenderForResult1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Int32, ffi.Int32, ffi.Pointer<ffi.Void>)>>( "Activity__startIntentSenderForResult1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>, int, int, int, ffi.Pointer<ffi.Void>)>(); /// from: public void startIntentSenderForResult(android.content.IntentSender intentSender, int i, android.content.Intent intent, int i1, int i2, int i3, android.os.Bundle bundle) void startIntentSenderForResult1( jni.JObject intentSender, int i, Intent intent, int i1, int i2, int i3, jni.JObject bundle, ) { return _startIntentSenderForResult1(reference, intentSender.reference, i, intent.reference, i1, i2, i3, bundle.reference) .check(); } static final _startActivity = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__startActivity") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void startActivity(android.content.Intent intent) void startActivity( Intent intent, ) { return _startActivity(reference, intent.reference).check(); } static final _startActivity1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__startActivity1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void startActivity(android.content.Intent intent, android.os.Bundle bundle) void startActivity1( Intent intent, jni.JObject bundle, ) { return _startActivity1(reference, intent.reference, bundle.reference) .check(); } static final _startActivities = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__startActivities") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void startActivities(android.content.Intent[] intents) void startActivities( jni.JArray<Intent> intents, ) { return _startActivities(reference, intents.reference).check(); } static final _startActivities1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__startActivities1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void startActivities(android.content.Intent[] intents, android.os.Bundle bundle) void startActivities1( jni.JArray<Intent> intents, jni.JObject bundle, ) { return _startActivities1(reference, intents.reference, bundle.reference) .check(); } static final _startIntentSender = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Int32, ffi.Int32)>>("Activity__startIntentSender") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, int, int)>(); /// from: public void startIntentSender(android.content.IntentSender intentSender, android.content.Intent intent, int i, int i1, int i2) void startIntentSender( jni.JObject intentSender, Intent intent, int i, int i1, int i2, ) { return _startIntentSender( reference, intentSender.reference, intent.reference, i, i1, i2) .check(); } static final _startIntentSender1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Int32, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Activity__startIntentSender1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, int, int, ffi.Pointer<ffi.Void>)>(); /// from: public void startIntentSender(android.content.IntentSender intentSender, android.content.Intent intent, int i, int i1, int i2, android.os.Bundle bundle) void startIntentSender1( jni.JObject intentSender, Intent intent, int i, int i1, int i2, jni.JObject bundle, ) { return _startIntentSender1(reference, intentSender.reference, intent.reference, i, i1, i2, bundle.reference) .check(); } static final _startActivityIfNeeded = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__startActivityIfNeeded") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public boolean startActivityIfNeeded(android.content.Intent intent, int i) bool startActivityIfNeeded( Intent intent, int i, ) { return _startActivityIfNeeded(reference, intent.reference, i).boolean; } static final _startActivityIfNeeded1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Activity__startActivityIfNeeded1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public boolean startActivityIfNeeded(android.content.Intent intent, int i, android.os.Bundle bundle) bool startActivityIfNeeded1( Intent intent, int i, jni.JObject bundle, ) { return _startActivityIfNeeded1( reference, intent.reference, i, bundle.reference) .boolean; } static final _startNextMatchingActivity = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Activity__startNextMatchingActivity") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean startNextMatchingActivity(android.content.Intent intent) bool startNextMatchingActivity( Intent intent, ) { return _startNextMatchingActivity(reference, intent.reference).boolean; } static final _startNextMatchingActivity1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Activity__startNextMatchingActivity1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean startNextMatchingActivity(android.content.Intent intent, android.os.Bundle bundle) bool startNextMatchingActivity1( Intent intent, jni.JObject bundle, ) { return _startNextMatchingActivity1( reference, intent.reference, bundle.reference) .boolean; } static final _startActivityFromChild = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__startActivityFromChild") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public void startActivityFromChild(android.app.Activity activity, android.content.Intent intent, int i) void startActivityFromChild( Activity activity, Intent intent, int i, ) { return _startActivityFromChild( reference, activity.reference, intent.reference, i) .check(); } static final _startActivityFromChild1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Activity__startActivityFromChild1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public void startActivityFromChild(android.app.Activity activity, android.content.Intent intent, int i, android.os.Bundle bundle) void startActivityFromChild1( Activity activity, Intent intent, int i, jni.JObject bundle, ) { return _startActivityFromChild1(reference, activity.reference, intent.reference, i, bundle.reference) .check(); } static final _startActivityFromFragment = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__startActivityFromFragment") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public void startActivityFromFragment(android.app.Fragment fragment, android.content.Intent intent, int i) void startActivityFromFragment( jni.JObject fragment, Intent intent, int i, ) { return _startActivityFromFragment( reference, fragment.reference, intent.reference, i) .check(); } static final _startActivityFromFragment1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>( "Activity__startActivityFromFragment1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public void startActivityFromFragment(android.app.Fragment fragment, android.content.Intent intent, int i, android.os.Bundle bundle) void startActivityFromFragment1( jni.JObject fragment, Intent intent, int i, jni.JObject bundle, ) { return _startActivityFromFragment1(reference, fragment.reference, intent.reference, i, bundle.reference) .check(); } static final _startIntentSenderFromChild = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Int32, ffi.Int32)>>("Activity__startIntentSenderFromChild") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>, int, int, int)>(); /// from: public void startIntentSenderFromChild(android.app.Activity activity, android.content.IntentSender intentSender, int i, android.content.Intent intent, int i1, int i2, int i3) void startIntentSenderFromChild( Activity activity, jni.JObject intentSender, int i, Intent intent, int i1, int i2, int i3, ) { return _startIntentSenderFromChild(reference, activity.reference, intentSender.reference, i, intent.reference, i1, i2, i3) .check(); } static final _startIntentSenderFromChild1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Int32, ffi.Int32, ffi.Pointer<ffi.Void>)>>( "Activity__startIntentSenderFromChild1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>, int, int, int, ffi.Pointer<ffi.Void>)>(); /// from: public void startIntentSenderFromChild(android.app.Activity activity, android.content.IntentSender intentSender, int i, android.content.Intent intent, int i1, int i2, int i3, android.os.Bundle bundle) void startIntentSenderFromChild1( Activity activity, jni.JObject intentSender, int i, Intent intent, int i1, int i2, int i3, jni.JObject bundle, ) { return _startIntentSenderFromChild1( reference, activity.reference, intentSender.reference, i, intent.reference, i1, i2, i3, bundle.reference) .check(); } static final _overridePendingTransition = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Int32)>>("Activity__overridePendingTransition") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int, int)>(); /// from: public void overridePendingTransition(int i, int i1) void overridePendingTransition( int i, int i1, ) { return _overridePendingTransition(reference, i, i1).check(); } static final _overridePendingTransition1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Int32, ffi.Int32)>>("Activity__overridePendingTransition1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, int, int, int)>(); /// from: public void overridePendingTransition(int i, int i1, int i2) void overridePendingTransition1( int i, int i1, int i2, ) { return _overridePendingTransition1(reference, i, i1, i2).check(); } static final _setResult = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__setResult") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public final void setResult(int i) void setResult( int i, ) { return _setResult(reference, i).check(); } static final _setResult1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Activity__setResult1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public final void setResult(int i, android.content.Intent intent) void setResult1( int i, Intent intent, ) { return _setResult1(reference, i, intent.reference).check(); } static final _getReferrer = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getReferrer") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public android.net.Uri getReferrer() /// The returned object must be released after use, by calling the [release] method. jni.JObject getReferrer() { return const jni.JObjectType().fromRef(_getReferrer(reference).object); } static final _onProvideReferrer = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__onProvideReferrer") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public android.net.Uri onProvideReferrer() /// The returned object must be released after use, by calling the [release] method. jni.JObject onProvideReferrer() { return const jni.JObjectType() .fromRef(_onProvideReferrer(reference).object); } static final _getCallingPackage = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getCallingPackage") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public java.lang.String getCallingPackage() /// The returned object must be released after use, by calling the [release] method. jni.JString getCallingPackage() { return const jni.JStringType() .fromRef(_getCallingPackage(reference).object); } static final _getCallingActivity = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getCallingActivity") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public android.content.ComponentName getCallingActivity() /// The returned object must be released after use, by calling the [release] method. jni.JObject getCallingActivity() { return const jni.JObjectType() .fromRef(_getCallingActivity(reference).object); } static final _setVisible = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Uint8)>>("Activity__setVisible") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public void setVisible(boolean z) void setVisible( bool z, ) { return _setVisible(reference, z ? 1 : 0).check(); } static final _isFinishing = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__isFinishing") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public boolean isFinishing() bool isFinishing() { return _isFinishing(reference).boolean; } static final _isDestroyed = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__isDestroyed") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public boolean isDestroyed() bool isDestroyed() { return _isDestroyed(reference).boolean; } static final _isChangingConfigurations = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__isChangingConfigurations") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public boolean isChangingConfigurations() bool isChangingConfigurations() { return _isChangingConfigurations(reference).boolean; } static final _recreate = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__recreate") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void recreate() void recreate() { return _recreate(reference).check(); } static final _finish = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__finish") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void finish() void finish() { return _finish(reference).check(); } static final _finishAffinity = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__finishAffinity") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void finishAffinity() void finishAffinity() { return _finishAffinity(reference).check(); } static final _finishFromChild = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__finishFromChild") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void finishFromChild(android.app.Activity activity) void finishFromChild( Activity activity, ) { return _finishFromChild(reference, activity.reference).check(); } static final _finishAfterTransition = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__finishAfterTransition") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void finishAfterTransition() void finishAfterTransition() { return _finishAfterTransition(reference).check(); } static final _finishActivity = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__finishActivity") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public void finishActivity(int i) void finishActivity( int i, ) { return _finishActivity(reference, i).check(); } static final _finishActivityFromChild = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__finishActivityFromChild") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public void finishActivityFromChild(android.app.Activity activity, int i) void finishActivityFromChild( Activity activity, int i, ) { return _finishActivityFromChild(reference, activity.reference, i).check(); } static final _finishAndRemoveTask = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__finishAndRemoveTask") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void finishAndRemoveTask() void finishAndRemoveTask() { return _finishAndRemoveTask(reference).check(); } static final _releaseInstance = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__releaseInstance") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public boolean releaseInstance() bool releaseInstance() { return _releaseInstance(reference).boolean; } static final _onActivityResult = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Activity__onActivityResult") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, int, int, ffi.Pointer<ffi.Void>)>(); /// from: protected void onActivityResult(int i, int i1, android.content.Intent intent) void onActivityResult( int i, int i1, Intent intent, ) { return _onActivityResult(reference, i, i1, intent.reference).check(); } static final _onActivityReenter = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>("Activity__onActivityReenter") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public void onActivityReenter(int i, android.content.Intent intent) void onActivityReenter( int i, Intent intent, ) { return _onActivityReenter(reference, i, intent.reference).check(); } static final _createPendingResult = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__createPendingResult") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>, int)>(); /// from: public android.app.PendingIntent createPendingResult(int i, android.content.Intent intent, int i1) /// The returned object must be released after use, by calling the [release] method. jni.JObject createPendingResult( int i, Intent intent, int i1, ) { return const jni.JObjectType().fromRef( _createPendingResult(reference, i, intent.reference, i1).object); } static final _setRequestedOrientation = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__setRequestedOrientation") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public void setRequestedOrientation(int i) void setRequestedOrientation( int i, ) { return _setRequestedOrientation(reference, i).check(); } static final _getRequestedOrientation = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getRequestedOrientation") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public int getRequestedOrientation() int getRequestedOrientation() { return _getRequestedOrientation(reference).integer; } static final _getTaskId = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getTaskId") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public int getTaskId() int getTaskId() { return _getTaskId(reference).integer; } static final _isTaskRoot = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__isTaskRoot") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public boolean isTaskRoot() bool isTaskRoot() { return _isTaskRoot(reference).boolean; } static final _moveTaskToBack = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Uint8)>>("Activity__moveTaskToBack") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public boolean moveTaskToBack(boolean z) bool moveTaskToBack( bool z, ) { return _moveTaskToBack(reference, z ? 1 : 0).boolean; } static final _getLocalClassName = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getLocalClassName") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public java.lang.String getLocalClassName() /// The returned object must be released after use, by calling the [release] method. jni.JString getLocalClassName() { return const jni.JStringType() .fromRef(_getLocalClassName(reference).object); } static final _getComponentName = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getComponentName") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public android.content.ComponentName getComponentName() /// The returned object must be released after use, by calling the [release] method. jni.JObject getComponentName() { return const jni.JObjectType().fromRef(_getComponentName(reference).object); } static final _getPreferences = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__getPreferences") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public android.content.SharedPreferences getPreferences(int i) /// The returned object must be released after use, by calling the [release] method. jni.JObject getPreferences( int i, ) { return const jni.JObjectType() .fromRef(_getPreferences(reference, i).object); } static final _isLaunchedFromBubble = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__isLaunchedFromBubble") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public boolean isLaunchedFromBubble() bool isLaunchedFromBubble() { return _isLaunchedFromBubble(reference).boolean; } static final _getSystemService = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__getSystemService") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public java.lang.Object getSystemService(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. jni.JObject getSystemService( jni.JString string, ) { return const jni.JObjectType() .fromRef(_getSystemService(reference, string.reference).object); } static final _setTitle = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__setTitle") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void setTitle(java.lang.CharSequence charSequence) void setTitle( jni.JObject charSequence, ) { return _setTitle(reference, charSequence.reference).check(); } static final _setTitle1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__setTitle1") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public void setTitle(int i) void setTitle1( int i, ) { return _setTitle1(reference, i).check(); } static final _setTitleColor = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__setTitleColor") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public void setTitleColor(int i) void setTitleColor( int i, ) { return _setTitleColor(reference, i).check(); } static final _getTitle = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getTitle") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public final java.lang.CharSequence getTitle() /// The returned object must be released after use, by calling the [release] method. jni.JObject getTitle() { return const jni.JObjectType().fromRef(_getTitle(reference).object); } static final _getTitleColor = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getTitleColor") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public final int getTitleColor() int getTitleColor() { return _getTitleColor(reference).integer; } static final _onTitleChanged = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__onTitleChanged") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: protected void onTitleChanged(java.lang.CharSequence charSequence, int i) void onTitleChanged( jni.JObject charSequence, int i, ) { return _onTitleChanged(reference, charSequence.reference, i).check(); } static final _onChildTitleChanged = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onChildTitleChanged") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: protected void onChildTitleChanged(android.app.Activity activity, java.lang.CharSequence charSequence) void onChildTitleChanged( Activity activity, jni.JObject charSequence, ) { return _onChildTitleChanged( reference, activity.reference, charSequence.reference) .check(); } static final _setTaskDescription = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__setTaskDescription") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void setTaskDescription(android.app.ActivityManager$TaskDescription taskDescription) void setTaskDescription( jni.JObject taskDescription, ) { return _setTaskDescription(reference, taskDescription.reference).check(); } static final _setProgressBarVisibility = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Uint8)>>("Activity__setProgressBarVisibility") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public final void setProgressBarVisibility(boolean z) void setProgressBarVisibility( bool z, ) { return _setProgressBarVisibility(reference, z ? 1 : 0).check(); } static final _setProgressBarIndeterminateVisibility = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Uint8)>>( "Activity__setProgressBarIndeterminateVisibility") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public final void setProgressBarIndeterminateVisibility(boolean z) void setProgressBarIndeterminateVisibility( bool z, ) { return _setProgressBarIndeterminateVisibility(reference, z ? 1 : 0).check(); } static final _setProgressBarIndeterminate = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Uint8)>>("Activity__setProgressBarIndeterminate") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public final void setProgressBarIndeterminate(boolean z) void setProgressBarIndeterminate( bool z, ) { return _setProgressBarIndeterminate(reference, z ? 1 : 0).check(); } static final _setProgress = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__setProgress") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public final void setProgress(int i) void setProgress( int i, ) { return _setProgress(reference, i).check(); } static final _setSecondaryProgress = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__setSecondaryProgress") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public final void setSecondaryProgress(int i) void setSecondaryProgress( int i, ) { return _setSecondaryProgress(reference, i).check(); } static final _setVolumeControlStream = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__setVolumeControlStream") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public final void setVolumeControlStream(int i) void setVolumeControlStream( int i, ) { return _setVolumeControlStream(reference, i).check(); } static final _getVolumeControlStream = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getVolumeControlStream") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public final int getVolumeControlStream() int getVolumeControlStream() { return _getVolumeControlStream(reference).integer; } static final _setMediaController = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__setMediaController") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public final void setMediaController(android.media.session.MediaController mediaController) void setMediaController( jni.JObject mediaController, ) { return _setMediaController(reference, mediaController.reference).check(); } static final _getMediaController = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getMediaController") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public final android.media.session.MediaController getMediaController() /// The returned object must be released after use, by calling the [release] method. jni.JObject getMediaController() { return const jni.JObjectType() .fromRef(_getMediaController(reference).object); } static final _runOnUiThread = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__runOnUiThread") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public final void runOnUiThread(java.lang.Runnable runnable) void runOnUiThread( jni.JObject runnable, ) { return _runOnUiThread(reference, runnable.reference).check(); } static final _onCreateView = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onCreateView") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.view.View onCreateView(java.lang.String string, android.content.Context context, android.util.AttributeSet attributeSet) /// The returned object must be released after use, by calling the [release] method. jni.JObject onCreateView( jni.JString string, Context context, jni.JObject attributeSet, ) { return const jni.JObjectType().fromRef(_onCreateView(reference, string.reference, context.reference, attributeSet.reference) .object); } static final _onCreateView1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onCreateView1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.view.View onCreateView(android.view.View view, java.lang.String string, android.content.Context context, android.util.AttributeSet attributeSet) /// The returned object must be released after use, by calling the [release] method. jni.JObject onCreateView1( jni.JObject view, jni.JString string, Context context, jni.JObject attributeSet, ) { return const jni.JObjectType().fromRef(_onCreateView1( reference, view.reference, string.reference, context.reference, attributeSet.reference) .object); } static final _dump = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__dump") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void dump(java.lang.String string, java.io.FileDescriptor fileDescriptor, java.io.PrintWriter printWriter, java.lang.String[] strings) void dump( jni.JString string, jni.JObject fileDescriptor, jni.JObject printWriter, jni.JArray<jni.JString> strings, ) { return _dump(reference, string.reference, fileDescriptor.reference, printWriter.reference, strings.reference) .check(); } static final _isImmersive = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__isImmersive") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public boolean isImmersive() bool isImmersive() { return _isImmersive(reference).boolean; } static final _setTranslucent = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Uint8)>>("Activity__setTranslucent") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public boolean setTranslucent(boolean z) bool setTranslucent( bool z, ) { return _setTranslucent(reference, z ? 1 : 0).boolean; } static final _requestVisibleBehind = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Uint8)>>("Activity__requestVisibleBehind") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public boolean requestVisibleBehind(boolean z) bool requestVisibleBehind( bool z, ) { return _requestVisibleBehind(reference, z ? 1 : 0).boolean; } static final _onVisibleBehindCanceled = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__onVisibleBehindCanceled") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void onVisibleBehindCanceled() void onVisibleBehindCanceled() { return _onVisibleBehindCanceled(reference).check(); } static final _onEnterAnimationComplete = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__onEnterAnimationComplete") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void onEnterAnimationComplete() void onEnterAnimationComplete() { return _onEnterAnimationComplete(reference).check(); } static final _setImmersive = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Uint8)>>("Activity__setImmersive") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public void setImmersive(boolean z) void setImmersive( bool z, ) { return _setImmersive(reference, z ? 1 : 0).check(); } static final _setVrModeEnabled = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Uint8, ffi.Pointer<ffi.Void>)>>("Activity__setVrModeEnabled") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public void setVrModeEnabled(boolean z, android.content.ComponentName componentName) void setVrModeEnabled( bool z, jni.JObject componentName, ) { return _setVrModeEnabled(reference, z ? 1 : 0, componentName.reference) .check(); } static final _startActionMode = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__startActionMode") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.view.ActionMode startActionMode(android.view.ActionMode$Callback callback) /// The returned object must be released after use, by calling the [release] method. jni.JObject startActionMode( jni.JObject callback, ) { return const jni.JObjectType() .fromRef(_startActionMode(reference, callback.reference).object); } static final _startActionMode1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__startActionMode1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public android.view.ActionMode startActionMode(android.view.ActionMode$Callback callback, int i) /// The returned object must be released after use, by calling the [release] method. jni.JObject startActionMode1( jni.JObject callback, int i, ) { return const jni.JObjectType() .fromRef(_startActionMode1(reference, callback.reference, i).object); } static final _onWindowStartingActionMode = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Activity__onWindowStartingActionMode") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.view.ActionMode onWindowStartingActionMode(android.view.ActionMode$Callback callback) /// The returned object must be released after use, by calling the [release] method. jni.JObject onWindowStartingActionMode( jni.JObject callback, ) { return const jni.JObjectType().fromRef( _onWindowStartingActionMode(reference, callback.reference).object); } static final _onWindowStartingActionMode1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32)>>("Activity__onWindowStartingActionMode1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public android.view.ActionMode onWindowStartingActionMode(android.view.ActionMode$Callback callback, int i) /// The returned object must be released after use, by calling the [release] method. jni.JObject onWindowStartingActionMode1( jni.JObject callback, int i, ) { return const jni.JObjectType().fromRef( _onWindowStartingActionMode1(reference, callback.reference, i).object); } static final _onActionModeStarted = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onActionModeStarted") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void onActionModeStarted(android.view.ActionMode actionMode) void onActionModeStarted( jni.JObject actionMode, ) { return _onActionModeStarted(reference, actionMode.reference).check(); } static final _onActionModeFinished = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__onActionModeFinished") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void onActionModeFinished(android.view.ActionMode actionMode) void onActionModeFinished( jni.JObject actionMode, ) { return _onActionModeFinished(reference, actionMode.reference).check(); } static final _shouldUpRecreateTask = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__shouldUpRecreateTask") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean shouldUpRecreateTask(android.content.Intent intent) bool shouldUpRecreateTask( Intent intent, ) { return _shouldUpRecreateTask(reference, intent.reference).boolean; } static final _navigateUpTo = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__navigateUpTo") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean navigateUpTo(android.content.Intent intent) bool navigateUpTo( Intent intent, ) { return _navigateUpTo(reference, intent.reference).boolean; } static final _navigateUpToFromChild = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Activity__navigateUpToFromChild") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean navigateUpToFromChild(android.app.Activity activity, android.content.Intent intent) bool navigateUpToFromChild( Activity activity, Intent intent, ) { return _navigateUpToFromChild( reference, activity.reference, intent.reference) .boolean; } static final _getParentActivityIntent = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getParentActivityIntent") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public android.content.Intent getParentActivityIntent() /// The returned object must be released after use, by calling the [release] method. Intent getParentActivityIntent() { return const $IntentType() .fromRef(_getParentActivityIntent(reference).object); } static final _setEnterSharedElementCallback = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Activity__setEnterSharedElementCallback") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void setEnterSharedElementCallback(android.app.SharedElementCallback sharedElementCallback) void setEnterSharedElementCallback( jni.JObject sharedElementCallback, ) { return _setEnterSharedElementCallback( reference, sharedElementCallback.reference) .check(); } static final _setExitSharedElementCallback = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Activity__setExitSharedElementCallback") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void setExitSharedElementCallback(android.app.SharedElementCallback sharedElementCallback) void setExitSharedElementCallback( jni.JObject sharedElementCallback, ) { return _setExitSharedElementCallback( reference, sharedElementCallback.reference) .check(); } static final _postponeEnterTransition = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__postponeEnterTransition") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void postponeEnterTransition() void postponeEnterTransition() { return _postponeEnterTransition(reference).check(); } static final _startPostponedEnterTransition = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__startPostponedEnterTransition") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void startPostponedEnterTransition() void startPostponedEnterTransition() { return _startPostponedEnterTransition(reference).check(); } static final _requestDragAndDropPermissions = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "Activity__requestDragAndDropPermissions") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public android.view.DragAndDropPermissions requestDragAndDropPermissions(android.view.DragEvent dragEvent) /// The returned object must be released after use, by calling the [release] method. jni.JObject requestDragAndDropPermissions( jni.JObject dragEvent, ) { return const jni.JObjectType().fromRef( _requestDragAndDropPermissions(reference, dragEvent.reference).object); } static final _startLockTask = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__startLockTask") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void startLockTask() void startLockTask() { return _startLockTask(reference).check(); } static final _stopLockTask = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__stopLockTask") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void stopLockTask() void stopLockTask() { return _stopLockTask(reference).check(); } static final _showLockTaskEscapeMessage = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__showLockTaskEscapeMessage") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void showLockTaskEscapeMessage() void showLockTaskEscapeMessage() { return _showLockTaskEscapeMessage(reference).check(); } static final _setRecentsScreenshotEnabled = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Uint8)>>("Activity__setRecentsScreenshotEnabled") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public void setRecentsScreenshotEnabled(boolean z) void setRecentsScreenshotEnabled( bool z, ) { return _setRecentsScreenshotEnabled(reference, z ? 1 : 0).check(); } static final _setShowWhenLocked = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Uint8)>>("Activity__setShowWhenLocked") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public void setShowWhenLocked(boolean z) void setShowWhenLocked( bool z, ) { return _setShowWhenLocked(reference, z ? 1 : 0).check(); } static final _setInheritShowWhenLocked = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Uint8)>>("Activity__setInheritShowWhenLocked") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public void setInheritShowWhenLocked(boolean z) void setInheritShowWhenLocked( bool z, ) { return _setInheritShowWhenLocked(reference, z ? 1 : 0).check(); } static final _setTurnScreenOn = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Uint8)>>("Activity__setTurnScreenOn") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public void setTurnScreenOn(boolean z) void setTurnScreenOn( bool z, ) { return _setTurnScreenOn(reference, z ? 1 : 0).check(); } static final _getOnBackInvokedDispatcher = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Activity__getOnBackInvokedDispatcher") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public android.window.OnBackInvokedDispatcher getOnBackInvokedDispatcher() /// The returned object must be released after use, by calling the [release] method. jni.JObject getOnBackInvokedDispatcher() { return const jni.JObjectType() .fromRef(_getOnBackInvokedDispatcher(reference).object); } } final class $ActivityType extends jni.JObjType<Activity> { const $ActivityType(); @override String get signature => r"Landroid/app/Activity;"; @override Activity fromRef(jni.JObjectPtr ref) => Activity.fromRef(ref); @override jni.JObjType get superType => const jni.JObjectType(); @override final superCount = 1; @override int get hashCode => ($ActivityType).hashCode; @override bool operator ==(Object other) { return other.runtimeType == ($ActivityType) && other is $ActivityType; } } /// from: java.time.Instant class Instant extends jni.JObject { @override late final jni.JObjType<Instant> $type = type; Instant.fromRef( jni.JObjectPtr ref, ) : super.fromRef(ref); /// The type which includes information such as the signature of this class. static const type = $InstantType(); static final _get_EPOCH = jniLookup<ffi.NativeFunction<jni.JniResult Function()>>( "get_Instant__EPOCH") .asFunction<jni.JniResult Function()>(); /// from: static public final java.time.Instant EPOCH /// The returned object must be released after use, by calling the [release] method. static Instant get EPOCH => const $InstantType().fromRef(_get_EPOCH().object); static final _get_MAX = jniLookup<ffi.NativeFunction<jni.JniResult Function()>>( "get_Instant__MAX") .asFunction<jni.JniResult Function()>(); /// from: static public final java.time.Instant MAX /// The returned object must be released after use, by calling the [release] method. static Instant get MAX => const $InstantType().fromRef(_get_MAX().object); static final _get_MIN = jniLookup<ffi.NativeFunction<jni.JniResult Function()>>( "get_Instant__MIN") .asFunction<jni.JniResult Function()>(); /// from: static public final java.time.Instant MIN /// The returned object must be released after use, by calling the [release] method. static Instant get MIN => const $InstantType().fromRef(_get_MIN().object); static final _now = jniLookup<ffi.NativeFunction<jni.JniResult Function()>>("Instant__now") .asFunction<jni.JniResult Function()>(); /// from: static public java.time.Instant now() /// The returned object must be released after use, by calling the [release] method. static Instant now() { return const $InstantType().fromRef(_now().object); } static final _now1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>)>>("Instant__now1") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: static public java.time.Instant now(java.time.Clock clock) /// The returned object must be released after use, by calling the [release] method. static Instant now1( jni.JObject clock, ) { return const $InstantType().fromRef(_now1(clock.reference).object); } static final _ofEpochSecond = jniLookup<ffi.NativeFunction<jni.JniResult Function(ffi.Int64)>>( "Instant__ofEpochSecond") .asFunction<jni.JniResult Function(int)>(); /// from: static public java.time.Instant ofEpochSecond(long j) /// The returned object must be released after use, by calling the [release] method. static Instant ofEpochSecond( int j, ) { return const $InstantType().fromRef(_ofEpochSecond(j).object); } static final _ofEpochSecond1 = jniLookup< ffi.NativeFunction<jni.JniResult Function(ffi.Int64, ffi.Int64)>>( "Instant__ofEpochSecond1") .asFunction<jni.JniResult Function(int, int)>(); /// from: static public java.time.Instant ofEpochSecond(long j, long j1) /// The returned object must be released after use, by calling the [release] method. static Instant ofEpochSecond1( int j, int j1, ) { return const $InstantType().fromRef(_ofEpochSecond1(j, j1).object); } static final _ofEpochMilli = jniLookup<ffi.NativeFunction<jni.JniResult Function(ffi.Int64)>>( "Instant__ofEpochMilli") .asFunction<jni.JniResult Function(int)>(); /// from: static public java.time.Instant ofEpochMilli(long j) /// The returned object must be released after use, by calling the [release] method. static Instant ofEpochMilli( int j, ) { return const $InstantType().fromRef(_ofEpochMilli(j).object); } static final _from = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>)>>("Instant__from") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: static public java.time.Instant from(java.time.temporal.TemporalAccessor temporalAccessor) /// The returned object must be released after use, by calling the [release] method. static Instant from( jni.JObject temporalAccessor, ) { return const $InstantType() .fromRef(_from(temporalAccessor.reference).object); } static final _parse = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>)>>("Instant__parse") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: static public java.time.Instant parse(java.lang.CharSequence charSequence) /// The returned object must be released after use, by calling the [release] method. static Instant parse( jni.JObject charSequence, ) { return const $InstantType().fromRef(_parse(charSequence.reference).object); } static final _isSupported = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Instant__isSupported") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean isSupported(java.time.temporal.TemporalField temporalField) bool isSupported( jni.JObject temporalField, ) { return _isSupported(reference, temporalField.reference).boolean; } static final _isSupported1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Instant__isSupported1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean isSupported(java.time.temporal.TemporalUnit temporalUnit) bool isSupported1( jni.JObject temporalUnit, ) { return _isSupported1(reference, temporalUnit.reference).boolean; } static final _range = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Instant__range") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public java.time.temporal.ValueRange range(java.time.temporal.TemporalField temporalField) /// The returned object must be released after use, by calling the [release] method. jni.JObject range( jni.JObject temporalField, ) { return const jni.JObjectType() .fromRef(_range(reference, temporalField.reference).object); } static final _get0 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Instant__get0") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public int get(java.time.temporal.TemporalField temporalField) int get0( jni.JObject temporalField, ) { return _get0(reference, temporalField.reference).integer; } static final _getLong = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Instant__getLong") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public long getLong(java.time.temporal.TemporalField temporalField) int getLong( jni.JObject temporalField, ) { return _getLong(reference, temporalField.reference).long; } static final _getEpochSecond = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Instant__getEpochSecond") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public long getEpochSecond() int getEpochSecond() { return _getEpochSecond(reference).long; } static final _getNano = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Instant__getNano") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public int getNano() int getNano() { return _getNano(reference).integer; } static final _with0 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Instant__with0") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public java.time.Instant with(java.time.temporal.TemporalAdjuster temporalAdjuster) /// The returned object must be released after use, by calling the [release] method. Instant with0( jni.JObject temporalAdjuster, ) { return const $InstantType() .fromRef(_with0(reference, temporalAdjuster.reference).object); } static final _with1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int64)>>("Instant__with1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public java.time.Instant with(java.time.temporal.TemporalField temporalField, long j) /// The returned object must be released after use, by calling the [release] method. Instant with1( jni.JObject temporalField, int j, ) { return const $InstantType() .fromRef(_with1(reference, temporalField.reference, j).object); } static final _truncatedTo = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Instant__truncatedTo") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public java.time.Instant truncatedTo(java.time.temporal.TemporalUnit temporalUnit) /// The returned object must be released after use, by calling the [release] method. Instant truncatedTo( jni.JObject temporalUnit, ) { return const $InstantType() .fromRef(_truncatedTo(reference, temporalUnit.reference).object); } static final _plus = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Instant__plus") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public java.time.Instant plus(java.time.temporal.TemporalAmount temporalAmount) /// The returned object must be released after use, by calling the [release] method. Instant plus( jni.JObject temporalAmount, ) { return const $InstantType() .fromRef(_plus(reference, temporalAmount.reference).object); } static final _plus1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int64, ffi.Pointer<ffi.Void>)>>("Instant__plus1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public java.time.Instant plus(long j, java.time.temporal.TemporalUnit temporalUnit) /// The returned object must be released after use, by calling the [release] method. Instant plus1( int j, jni.JObject temporalUnit, ) { return const $InstantType() .fromRef(_plus1(reference, j, temporalUnit.reference).object); } static final _plusSeconds = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int64)>>("Instant__plusSeconds") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public java.time.Instant plusSeconds(long j) /// The returned object must be released after use, by calling the [release] method. Instant plusSeconds( int j, ) { return const $InstantType().fromRef(_plusSeconds(reference, j).object); } static final _plusMillis = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int64)>>("Instant__plusMillis") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public java.time.Instant plusMillis(long j) /// The returned object must be released after use, by calling the [release] method. Instant plusMillis( int j, ) { return const $InstantType().fromRef(_plusMillis(reference, j).object); } static final _plusNanos = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int64)>>("Instant__plusNanos") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public java.time.Instant plusNanos(long j) /// The returned object must be released after use, by calling the [release] method. Instant plusNanos( int j, ) { return const $InstantType().fromRef(_plusNanos(reference, j).object); } static final _minus = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Instant__minus") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public java.time.Instant minus(java.time.temporal.TemporalAmount temporalAmount) /// The returned object must be released after use, by calling the [release] method. Instant minus( jni.JObject temporalAmount, ) { return const $InstantType() .fromRef(_minus(reference, temporalAmount.reference).object); } static final _minus1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int64, ffi.Pointer<ffi.Void>)>>("Instant__minus1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public java.time.Instant minus(long j, java.time.temporal.TemporalUnit temporalUnit) /// The returned object must be released after use, by calling the [release] method. Instant minus1( int j, jni.JObject temporalUnit, ) { return const $InstantType() .fromRef(_minus1(reference, j, temporalUnit.reference).object); } static final _minusSeconds = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int64)>>("Instant__minusSeconds") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public java.time.Instant minusSeconds(long j) /// The returned object must be released after use, by calling the [release] method. Instant minusSeconds( int j, ) { return const $InstantType().fromRef(_minusSeconds(reference, j).object); } static final _minusMillis = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int64)>>("Instant__minusMillis") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public java.time.Instant minusMillis(long j) /// The returned object must be released after use, by calling the [release] method. Instant minusMillis( int j, ) { return const $InstantType().fromRef(_minusMillis(reference, j).object); } static final _minusNanos = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Int64)>>("Instant__minusNanos") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>, int)>(); /// from: public java.time.Instant minusNanos(long j) /// The returned object must be released after use, by calling the [release] method. Instant minusNanos( int j, ) { return const $InstantType().fromRef(_minusNanos(reference, j).object); } static final _query = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Instant__query") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public R query(java.time.temporal.TemporalQuery temporalQuery) /// The returned object must be released after use, by calling the [release] method. $R query<$R extends jni.JObject>( jni.JObject temporalQuery, { required jni.JObjType<$R> R, }) { return R.fromRef(_query(reference, temporalQuery.reference).object); } static final _adjustInto = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Instant__adjustInto") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public java.time.temporal.Temporal adjustInto(java.time.temporal.Temporal temporal) /// The returned object must be released after use, by calling the [release] method. jni.JObject adjustInto( jni.JObject temporal, ) { return const jni.JObjectType() .fromRef(_adjustInto(reference, temporal.reference).object); } static final _until = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Instant__until") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public long until(java.time.temporal.Temporal temporal, java.time.temporal.TemporalUnit temporalUnit) int until( jni.JObject temporal, jni.JObject temporalUnit, ) { return _until(reference, temporal.reference, temporalUnit.reference).long; } static final _atOffset = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Instant__atOffset") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public java.time.OffsetDateTime atOffset(java.time.ZoneOffset zoneOffset) /// The returned object must be released after use, by calling the [release] method. jni.JObject atOffset( jni.JObject zoneOffset, ) { return const jni.JObjectType() .fromRef(_atOffset(reference, zoneOffset.reference).object); } static final _atZone = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Instant__atZone") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public java.time.ZonedDateTime atZone(java.time.ZoneId zoneId) /// The returned object must be released after use, by calling the [release] method. jni.JObject atZone( jni.JObject zoneId, ) { return const jni.JObjectType() .fromRef(_atZone(reference, zoneId.reference).object); } static final _toEpochMilli = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Instant__toEpochMilli") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public long toEpochMilli() int toEpochMilli() { return _toEpochMilli(reference).long; } static final _compareTo = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Instant__compareTo") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public int compareTo(java.time.Instant instant) int compareTo( Instant instant, ) { return _compareTo(reference, instant.reference).integer; } static final _isAfter = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Instant__isAfter") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean isAfter(java.time.Instant instant) bool isAfter( Instant instant, ) { return _isAfter(reference, instant.reference).boolean; } static final _isBefore = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Instant__isBefore") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean isBefore(java.time.Instant instant) bool isBefore( Instant instant, ) { return _isBefore(reference, instant.reference).boolean; } static final _equals1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Instant__equals1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean equals(java.lang.Object object) bool equals1( jni.JObject object, ) { return _equals1(reference, object.reference).boolean; } static final _hashCode1 = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Instant__hashCode1") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public int hashCode() int hashCode1() { return _hashCode1(reference).integer; } static final _toString1 = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "Instant__toString1") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public java.lang.String toString() /// The returned object must be released after use, by calling the [release] method. jni.JString toString1() { return const jni.JStringType().fromRef(_toString1(reference).object); } static final _minus2 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int64, ffi.Pointer<ffi.Void>)>>("Instant__minus2") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public java.time.temporal.Temporal minus(long j, java.time.temporal.TemporalUnit temporalUnit) /// The returned object must be released after use, by calling the [release] method. jni.JObject minus2( int j, jni.JObject temporalUnit, ) { return const jni.JObjectType() .fromRef(_minus2(reference, j, temporalUnit.reference).object); } static final _minus3 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Instant__minus3") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public java.time.temporal.Temporal minus(java.time.temporal.TemporalAmount temporalAmount) /// The returned object must be released after use, by calling the [release] method. jni.JObject minus3( jni.JObject temporalAmount, ) { return const jni.JObjectType() .fromRef(_minus3(reference, temporalAmount.reference).object); } static final _plus2 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Int64, ffi.Pointer<ffi.Void>)>>("Instant__plus2") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public java.time.temporal.Temporal plus(long j, java.time.temporal.TemporalUnit temporalUnit) /// The returned object must be released after use, by calling the [release] method. jni.JObject plus2( int j, jni.JObject temporalUnit, ) { return const jni.JObjectType() .fromRef(_plus2(reference, j, temporalUnit.reference).object); } static final _plus3 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Instant__plus3") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public java.time.temporal.Temporal plus(java.time.temporal.TemporalAmount temporalAmount) /// The returned object must be released after use, by calling the [release] method. jni.JObject plus3( jni.JObject temporalAmount, ) { return const jni.JObjectType() .fromRef(_plus3(reference, temporalAmount.reference).object); } static final _with2 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int64)>>("Instant__with2") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>(); /// from: public java.time.temporal.Temporal with(java.time.temporal.TemporalField temporalField, long j) /// The returned object must be released after use, by calling the [release] method. jni.JObject with2( jni.JObject temporalField, int j, ) { return const jni.JObjectType() .fromRef(_with2(reference, temporalField.reference, j).object); } static final _with3 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Instant__with3") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public java.time.temporal.Temporal with(java.time.temporal.TemporalAdjuster temporalAdjuster) /// The returned object must be released after use, by calling the [release] method. jni.JObject with3( jni.JObject temporalAdjuster, ) { return const jni.JObjectType() .fromRef(_with3(reference, temporalAdjuster.reference).object); } static final _compareTo1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("Instant__compareTo1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public int compareTo(java.lang.Object object) int compareTo1( jni.JObject object, ) { return _compareTo1(reference, object.reference).integer; } } final class $InstantType extends jni.JObjType<Instant> { const $InstantType(); @override String get signature => r"Ljava/time/Instant;"; @override Instant fromRef(jni.JObjectPtr ref) => Instant.fromRef(ref); @override jni.JObjType get superType => const jni.JObjectType(); @override final superCount = 1; @override int get hashCode => ($InstantType).hashCode; @override bool operator ==(Object other) { return other.runtimeType == ($InstantType) && other is $InstantType; } } /// from: androidx.health.connect.client.request.AggregateGroupByDurationRequest class AggregateGroupByDurationRequest extends jni.JObject { @override late final jni.JObjType<AggregateGroupByDurationRequest> $type = type; AggregateGroupByDurationRequest.fromRef( jni.JObjectPtr ref, ) : super.fromRef(ref); /// The type which includes information such as the signature of this class. static const type = $AggregateGroupByDurationRequestType(); static final _new0 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "AggregateGroupByDurationRequest__new0") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void <init>(java.util.Set set, androidx.health.connect.client.time.TimeRangeFilter timeRangeFilter, java.time.Duration duration, java.util.Set set1) /// The returned object must be released after use, by calling the [release] method. factory AggregateGroupByDurationRequest( jni.JSet<AggregateMetric<jni.JObject>> set0, TimeRangeFilter timeRangeFilter, jni.JObject duration, jni.JSet<jni.JObject> set1, ) { return AggregateGroupByDurationRequest.fromRef(_new0(set0.reference, timeRangeFilter.reference, duration.reference, set1.reference) .object); } static final _new1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>( "AggregateGroupByDurationRequest__new1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public void <init>(java.util.Set set, androidx.health.connect.client.time.TimeRangeFilter timeRangeFilter, java.time.Duration duration, java.util.Set set1, int i, kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) /// The returned object must be released after use, by calling the [release] method. factory AggregateGroupByDurationRequest.new1( jni.JSet<jni.JObject> set0, TimeRangeFilter timeRangeFilter, jni.JObject duration, jni.JSet<jni.JObject> set1, int i, jni.JObject defaultConstructorMarker, ) { return AggregateGroupByDurationRequest.fromRef(_new1( set0.reference, timeRangeFilter.reference, duration.reference, set1.reference, i, defaultConstructorMarker.reference) .object); } } final class $AggregateGroupByDurationRequestType extends jni.JObjType<AggregateGroupByDurationRequest> { const $AggregateGroupByDurationRequestType(); @override String get signature => r"Landroidx/health/connect/client/request/AggregateGroupByDurationRequest;"; @override AggregateGroupByDurationRequest fromRef(jni.JObjectPtr ref) => AggregateGroupByDurationRequest.fromRef(ref); @override jni.JObjType get superType => const jni.JObjectType(); @override final superCount = 1; @override int get hashCode => ($AggregateGroupByDurationRequestType).hashCode; @override bool operator ==(Object other) { return other.runtimeType == ($AggregateGroupByDurationRequestType) && other is $AggregateGroupByDurationRequestType; } } /// from: androidx.health.connect.client.request.AggregateGroupByPeriodRequest class AggregateGroupByPeriodRequest extends jni.JObject { @override late final jni.JObjType<AggregateGroupByPeriodRequest> $type = type; AggregateGroupByPeriodRequest.fromRef( jni.JObjectPtr ref, ) : super.fromRef(ref); /// The type which includes information such as the signature of this class. static const type = $AggregateGroupByPeriodRequestType(); static final _new0 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>( "AggregateGroupByPeriodRequest__new0") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void <init>(java.util.Set set, androidx.health.connect.client.time.TimeRangeFilter timeRangeFilter, java.time.Period period, java.util.Set set1) /// The returned object must be released after use, by calling the [release] method. factory AggregateGroupByPeriodRequest( jni.JSet<AggregateMetric<jni.JObject>> set0, TimeRangeFilter timeRangeFilter, jni.JObject period, jni.JSet<jni.JObject> set1, ) { return AggregateGroupByPeriodRequest.fromRef(_new0(set0.reference, timeRangeFilter.reference, period.reference, set1.reference) .object); } static final _new1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>( "AggregateGroupByPeriodRequest__new1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public void <init>(java.util.Set set, androidx.health.connect.client.time.TimeRangeFilter timeRangeFilter, java.time.Period period, java.util.Set set1, int i, kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) /// The returned object must be released after use, by calling the [release] method. factory AggregateGroupByPeriodRequest.new1( jni.JSet<jni.JObject> set0, TimeRangeFilter timeRangeFilter, jni.JObject period, jni.JSet<jni.JObject> set1, int i, jni.JObject defaultConstructorMarker, ) { return AggregateGroupByPeriodRequest.fromRef(_new1( set0.reference, timeRangeFilter.reference, period.reference, set1.reference, i, defaultConstructorMarker.reference) .object); } } final class $AggregateGroupByPeriodRequestType extends jni.JObjType<AggregateGroupByPeriodRequest> { const $AggregateGroupByPeriodRequestType(); @override String get signature => r"Landroidx/health/connect/client/request/AggregateGroupByPeriodRequest;"; @override AggregateGroupByPeriodRequest fromRef(jni.JObjectPtr ref) => AggregateGroupByPeriodRequest.fromRef(ref); @override jni.JObjType get superType => const jni.JObjectType(); @override final superCount = 1; @override int get hashCode => ($AggregateGroupByPeriodRequestType).hashCode; @override bool operator ==(Object other) { return other.runtimeType == ($AggregateGroupByPeriodRequestType) && other is $AggregateGroupByPeriodRequestType; } } /// from: androidx.health.connect.client.request.AggregateRequest class AggregateRequest extends jni.JObject { @override late final jni.JObjType<AggregateRequest> $type = type; AggregateRequest.fromRef( jni.JObjectPtr ref, ) : super.fromRef(ref); /// The type which includes information such as the signature of this class. static const type = $AggregateRequestType(); static final _new0 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("AggregateRequest__new0") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void <init>(java.util.Set set, androidx.health.connect.client.time.TimeRangeFilter timeRangeFilter, java.util.Set set1) /// The returned object must be released after use, by calling the [release] method. factory AggregateRequest( jni.JSet<AggregateMetric<jni.JObject>> set0, TimeRangeFilter timeRangeFilter, jni.JSet<jni.JObject> set1, ) { return AggregateRequest.fromRef( _new0(set0.reference, timeRangeFilter.reference, set1.reference) .object); } static final _new1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>("AggregateRequest__new1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public void <init>(java.util.Set set, androidx.health.connect.client.time.TimeRangeFilter timeRangeFilter, java.util.Set set1, int i, kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) /// The returned object must be released after use, by calling the [release] method. factory AggregateRequest.new1( jni.JSet<jni.JObject> set0, TimeRangeFilter timeRangeFilter, jni.JSet<jni.JObject> set1, int i, jni.JObject defaultConstructorMarker, ) { return AggregateRequest.fromRef(_new1( set0.reference, timeRangeFilter.reference, set1.reference, i, defaultConstructorMarker.reference) .object); } } final class $AggregateRequestType extends jni.JObjType<AggregateRequest> { const $AggregateRequestType(); @override String get signature => r"Landroidx/health/connect/client/request/AggregateRequest;"; @override AggregateRequest fromRef(jni.JObjectPtr ref) => AggregateRequest.fromRef(ref); @override jni.JObjType get superType => const jni.JObjectType(); @override final superCount = 1; @override int get hashCode => ($AggregateRequestType).hashCode; @override bool operator ==(Object other) { return other.runtimeType == ($AggregateRequestType) && other is $AggregateRequestType; } } /// from: androidx.health.connect.client.request.ChangesTokenRequest class ChangesTokenRequest extends jni.JObject { @override late final jni.JObjType<ChangesTokenRequest> $type = type; ChangesTokenRequest.fromRef( jni.JObjectPtr ref, ) : super.fromRef(ref); /// The type which includes information such as the signature of this class. static const type = $ChangesTokenRequestType(); static final _new0 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("ChangesTokenRequest__new0") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void <init>(java.util.Set set, java.util.Set set1) /// The returned object must be released after use, by calling the [release] method. factory ChangesTokenRequest( jni.JSet<jni.JObject> set0, jni.JSet<jni.JObject> set1, ) { return ChangesTokenRequest.fromRef( _new0(set0.reference, set1.reference).object); } static final _new1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>("ChangesTokenRequest__new1") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public void <init>(java.util.Set set, java.util.Set set1, int i, kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) /// The returned object must be released after use, by calling the [release] method. factory ChangesTokenRequest.new1( jni.JSet<jni.JObject> set0, jni.JSet<jni.JObject> set1, int i, jni.JObject defaultConstructorMarker, ) { return ChangesTokenRequest.fromRef(_new1(set0.reference, set1.reference, i, defaultConstructorMarker.reference) .object); } } final class $ChangesTokenRequestType extends jni.JObjType<ChangesTokenRequest> { const $ChangesTokenRequestType(); @override String get signature => r"Landroidx/health/connect/client/request/ChangesTokenRequest;"; @override ChangesTokenRequest fromRef(jni.JObjectPtr ref) => ChangesTokenRequest.fromRef(ref); @override jni.JObjType get superType => const jni.JObjectType(); @override final superCount = 1; @override int get hashCode => ($ChangesTokenRequestType).hashCode; @override bool operator ==(Object other) { return other.runtimeType == ($ChangesTokenRequestType) && other is $ChangesTokenRequestType; } } /// from: androidx.health.connect.client.request.ReadRecordsRequest class ReadRecordsRequest<$T extends jni.JObject> extends jni.JObject { @override late final jni.JObjType<ReadRecordsRequest<$T>> $type = type(T); final jni.JObjType<$T> T; ReadRecordsRequest.fromRef( this.T, jni.JObjectPtr ref, ) : super.fromRef(ref); /// The type which includes information such as the signature of this class. static $ReadRecordsRequestType<$T> type<$T extends jni.JObject>( jni.JObjType<$T> T, ) { return $ReadRecordsRequestType( T, ); } static final _new0 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Uint8, ffi.Int32, ffi.Pointer<ffi.Void>)>>("ReadRecordsRequest__new0") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, int, ffi.Pointer<ffi.Void>)>(); /// from: public void <init>(kotlin.reflect.KClass kClass, androidx.health.connect.client.time.TimeRangeFilter timeRangeFilter, java.util.Set set, boolean z, int i, java.lang.String string) /// The returned object must be released after use, by calling the [release] method. factory ReadRecordsRequest( jni.JObject kClass, TimeRangeFilter timeRangeFilter, jni.JSet<jni.JObject> set0, bool z, int i, jni.JString string, { required jni.JObjType<$T> T, }) { return ReadRecordsRequest.fromRef( T, _new0(kClass.reference, timeRangeFilter.reference, set0.reference, z ? 1 : 0, i, string.reference) .object); } static final _new1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Uint8, ffi.Int32, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Pointer<ffi.Void>)>>("ReadRecordsRequest__new1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int, int, ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>)>(); /// from: public void <init>(kotlin.reflect.KClass kClass, androidx.health.connect.client.time.TimeRangeFilter timeRangeFilter, java.util.Set set, boolean z, int i, java.lang.String string, int i1, kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) /// The returned object must be released after use, by calling the [release] method. factory ReadRecordsRequest.new1( jni.JObject kClass, TimeRangeFilter timeRangeFilter, jni.JSet<jni.JObject> set0, bool z, int i, jni.JString string, int i1, jni.JObject defaultConstructorMarker, { required jni.JObjType<$T> T, }) { return ReadRecordsRequest.fromRef( T, _new1( kClass.reference, timeRangeFilter.reference, set0.reference, z ? 1 : 0, i, string.reference, i1, defaultConstructorMarker.reference) .object); } static final _equals1 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("ReadRecordsRequest__equals1") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public boolean equals(java.lang.Object object) bool equals1( jni.JObject object, ) { return _equals1(reference, object.reference).boolean; } static final _hashCode1 = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "ReadRecordsRequest__hashCode1") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public int hashCode() int hashCode1() { return _hashCode1(reference).integer; } } final class $ReadRecordsRequestType<$T extends jni.JObject> extends jni.JObjType<ReadRecordsRequest<$T>> { final jni.JObjType<$T> T; const $ReadRecordsRequestType( this.T, ); @override String get signature => r"Landroidx/health/connect/client/request/ReadRecordsRequest;"; @override ReadRecordsRequest<$T> fromRef(jni.JObjectPtr ref) => ReadRecordsRequest.fromRef(T, ref); @override jni.JObjType get superType => const jni.JObjectType(); @override final superCount = 1; @override int get hashCode => Object.hash($ReadRecordsRequestType, T); @override bool operator ==(Object other) { return other.runtimeType == ($ReadRecordsRequestType<$T>) && other is $ReadRecordsRequestType<$T> && T == other.T; } } /// from: androidx.health.connect.client.aggregate.AggregationResult class AggregationResult extends jni.JObject { @override late final jni.JObjType<AggregationResult> $type = type; AggregationResult.fromRef( jni.JObjectPtr ref, ) : super.fromRef(ref); /// The type which includes information such as the signature of this class. static const type = $AggregationResultType(); static final _new0 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("AggregationResult__new0") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void <init>(java.util.Map map, java.util.Map map1, java.util.Set set) /// The returned object must be released after use, by calling the [release] method. factory AggregationResult( jni.JMap<jni.JString, jni.JLong> map, jni.JMap<jni.JString, jni.JDouble> map1, jni.JSet<jni.JObject> set0, ) { return AggregationResult.fromRef( _new0(map.reference, map1.reference, set0.reference).object); } static final _getDataOrigins = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "AggregationResult__getDataOrigins") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public final java.util.Set getDataOrigins() /// The returned object must be released after use, by calling the [release] method. jni.JSet<jni.JObject> getDataOrigins() { return const jni.JSetType(jni.JObjectType()) .fromRef(_getDataOrigins(reference).object); } static final _hasMetric = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("AggregationResult__hasMetric") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public final boolean hasMetric(androidx.health.connect.client.aggregate.AggregateMetric aggregateMetric) bool hasMetric( AggregateMetric<jni.JObject> aggregateMetric, ) { return _hasMetric(reference, aggregateMetric.reference).boolean; } static final _contains = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("AggregationResult__contains") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public final boolean contains(androidx.health.connect.client.aggregate.AggregateMetric aggregateMetric) bool contains( AggregateMetric<jni.JObject> aggregateMetric, ) { return _contains(reference, aggregateMetric.reference).boolean; } static final _getMetric = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("AggregationResult__getMetric") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public final T getMetric(androidx.health.connect.client.aggregate.AggregateMetric aggregateMetric) /// The returned object must be released after use, by calling the [release] method. $T getMetric<$T extends jni.JObject>( AggregateMetric<$T> aggregateMetric, { jni.JObjType<$T>? T, }) { T ??= jni.lowestCommonSuperType([ (aggregateMetric.$type as $AggregateMetricType).T, ]) as jni.JObjType<$T>; return T.fromRef(_getMetric(reference, aggregateMetric.reference).object); } static final _get0 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("AggregationResult__get0") .asFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public final T get(androidx.health.connect.client.aggregate.AggregateMetric aggregateMetric) /// The returned object must be released after use, by calling the [release] method. $T get0<$T extends jni.JObject>( AggregateMetric<$T> aggregateMetric, { jni.JObjType<$T>? T, }) { T ??= jni.lowestCommonSuperType([ (aggregateMetric.$type as $AggregateMetricType).T, ]) as jni.JObjType<$T>; return T.fromRef(_get0(reference, aggregateMetric.reference).object); } } final class $AggregationResultType extends jni.JObjType<AggregationResult> { const $AggregationResultType(); @override String get signature => r"Landroidx/health/connect/client/aggregate/AggregationResult;"; @override AggregationResult fromRef(jni.JObjectPtr ref) => AggregationResult.fromRef(ref); @override jni.JObjType get superType => const jni.JObjectType(); @override final superCount = 1; @override int get hashCode => ($AggregationResultType).hashCode; @override bool operator ==(Object other) { return other.runtimeType == ($AggregationResultType) && other is $AggregationResultType; } } /// from: androidx.health.connect.client.aggregate.AggregateMetric$AggregationType class AggregateMetric_AggregationType extends jni.JObject { @override late final jni.JObjType<AggregateMetric_AggregationType> $type = type; AggregateMetric_AggregationType.fromRef( jni.JObjectPtr ref, ) : super.fromRef(ref); /// The type which includes information such as the signature of this class. static const type = $AggregateMetric_AggregationTypeType(); static final _get_DURATION = jniLookup<ffi.NativeFunction<jni.JniResult Function()>>( "get_AggregateMetric_AggregationType__DURATION") .asFunction<jni.JniResult Function()>(); /// from: static public final androidx.health.connect.client.aggregate.AggregateMetric$AggregationType DURATION /// The returned object must be released after use, by calling the [release] method. static AggregateMetric_AggregationType get DURATION => const $AggregateMetric_AggregationTypeType() .fromRef(_get_DURATION().object); static final _get_AVERAGE = jniLookup<ffi.NativeFunction<jni.JniResult Function()>>( "get_AggregateMetric_AggregationType__AVERAGE") .asFunction<jni.JniResult Function()>(); /// from: static public final androidx.health.connect.client.aggregate.AggregateMetric$AggregationType AVERAGE /// The returned object must be released after use, by calling the [release] method. static AggregateMetric_AggregationType get AVERAGE => const $AggregateMetric_AggregationTypeType() .fromRef(_get_AVERAGE().object); static final _get_MINIMUM = jniLookup<ffi.NativeFunction<jni.JniResult Function()>>( "get_AggregateMetric_AggregationType__MINIMUM") .asFunction<jni.JniResult Function()>(); /// from: static public final androidx.health.connect.client.aggregate.AggregateMetric$AggregationType MINIMUM /// The returned object must be released after use, by calling the [release] method. static AggregateMetric_AggregationType get MINIMUM => const $AggregateMetric_AggregationTypeType() .fromRef(_get_MINIMUM().object); static final _get_MAXIMUM = jniLookup<ffi.NativeFunction<jni.JniResult Function()>>( "get_AggregateMetric_AggregationType__MAXIMUM") .asFunction<jni.JniResult Function()>(); /// from: static public final androidx.health.connect.client.aggregate.AggregateMetric$AggregationType MAXIMUM /// The returned object must be released after use, by calling the [release] method. static AggregateMetric_AggregationType get MAXIMUM => const $AggregateMetric_AggregationTypeType() .fromRef(_get_MAXIMUM().object); static final _get_TOTAL = jniLookup<ffi.NativeFunction<jni.JniResult Function()>>( "get_AggregateMetric_AggregationType__TOTAL") .asFunction<jni.JniResult Function()>(); /// from: static public final androidx.health.connect.client.aggregate.AggregateMetric$AggregationType TOTAL /// The returned object must be released after use, by calling the [release] method. static AggregateMetric_AggregationType get TOTAL => const $AggregateMetric_AggregationTypeType().fromRef(_get_TOTAL().object); static final _get_COUNT = jniLookup<ffi.NativeFunction<jni.JniResult Function()>>( "get_AggregateMetric_AggregationType__COUNT") .asFunction<jni.JniResult Function()>(); /// from: static public final androidx.health.connect.client.aggregate.AggregateMetric$AggregationType COUNT /// The returned object must be released after use, by calling the [release] method. static AggregateMetric_AggregationType get COUNT => const $AggregateMetric_AggregationTypeType().fromRef(_get_COUNT().object); static final _getAggregationTypeString = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "AggregateMetric_AggregationType__getAggregationTypeString") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public final java.lang.String getAggregationTypeString() /// The returned object must be released after use, by calling the [release] method. jni.JString getAggregationTypeString() { return const jni.JStringType() .fromRef(_getAggregationTypeString(reference).object); } static final _values = jniLookup<ffi.NativeFunction<jni.JniResult Function()>>( "AggregateMetric_AggregationType__values") .asFunction<jni.JniResult Function()>(); /// from: static public androidx.health.connect.client.aggregate.AggregateMetric$AggregationType[] values() /// The returned object must be released after use, by calling the [release] method. static jni.JArray<AggregateMetric_AggregationType> values() { return const jni.JArrayType($AggregateMetric_AggregationTypeType()) .fromRef(_values().object); } static final _valueOf = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "AggregateMetric_AggregationType__valueOf") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: static public androidx.health.connect.client.aggregate.AggregateMetric$AggregationType valueOf(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. static AggregateMetric_AggregationType valueOf( jni.JString string, ) { return const $AggregateMetric_AggregationTypeType() .fromRef(_valueOf(string.reference).object); } } final class $AggregateMetric_AggregationTypeType extends jni.JObjType<AggregateMetric_AggregationType> { const $AggregateMetric_AggregationTypeType(); @override String get signature => r"Landroidx/health/connect/client/aggregate/AggregateMetric$AggregationType;"; @override AggregateMetric_AggregationType fromRef(jni.JObjectPtr ref) => AggregateMetric_AggregationType.fromRef(ref); @override jni.JObjType get superType => const jni.JObjectType(); @override final superCount = 1; @override int get hashCode => ($AggregateMetric_AggregationTypeType).hashCode; @override bool operator ==(Object other) { return other.runtimeType == ($AggregateMetric_AggregationTypeType) && other is $AggregateMetric_AggregationTypeType; } } /// from: androidx.health.connect.client.aggregate.AggregateMetric$Companion class AggregateMetric_Companion extends jni.JObject { @override late final jni.JObjType<AggregateMetric_Companion> $type = type; AggregateMetric_Companion.fromRef( jni.JObjectPtr ref, ) : super.fromRef(ref); /// The type which includes information such as the signature of this class. static const type = $AggregateMetric_CompanionType(); static final _new0 = jniLookup< ffi .NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>( "AggregateMetric_Companion__new0") .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>(); /// from: public void <init>(kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) /// The returned object must be released after use, by calling the [release] method. factory AggregateMetric_Companion( jni.JObject defaultConstructorMarker, ) { return AggregateMetric_Companion.fromRef( _new0(defaultConstructorMarker.reference).object); } } final class $AggregateMetric_CompanionType extends jni.JObjType<AggregateMetric_Companion> { const $AggregateMetric_CompanionType(); @override String get signature => r"Landroidx/health/connect/client/aggregate/AggregateMetric$Companion;"; @override AggregateMetric_Companion fromRef(jni.JObjectPtr ref) => AggregateMetric_Companion.fromRef(ref); @override jni.JObjType get superType => const jni.JObjectType(); @override final superCount = 1; @override int get hashCode => ($AggregateMetric_CompanionType).hashCode; @override bool operator ==(Object other) { return other.runtimeType == ($AggregateMetric_CompanionType) && other is $AggregateMetric_CompanionType; } } /// from: androidx.health.connect.client.aggregate.AggregateMetric$Converter$FromDouble class AggregateMetric_Converter_FromDouble<$R extends jni.JObject> extends jni.JObject { @override late final jni.JObjType<AggregateMetric_Converter_FromDouble<$R>> $type = type(R); final jni.JObjType<$R> R; AggregateMetric_Converter_FromDouble.fromRef( this.R, jni.JObjectPtr ref, ) : super.fromRef(ref); /// The type which includes information such as the signature of this class. static $AggregateMetric_Converter_FromDoubleType<$R> type<$R extends jni.JObject>( jni.JObjType<$R> R, ) { return $AggregateMetric_Converter_FromDoubleType( R, ); } } final class $AggregateMetric_Converter_FromDoubleType<$R extends jni.JObject> extends jni.JObjType<AggregateMetric_Converter_FromDouble<$R>> { final jni.JObjType<$R> R; const $AggregateMetric_Converter_FromDoubleType( this.R, ); @override String get signature => r"Landroidx/health/connect/client/aggregate/AggregateMetric$Converter$FromDouble;"; @override AggregateMetric_Converter_FromDouble<$R> fromRef(jni.JObjectPtr ref) => AggregateMetric_Converter_FromDouble.fromRef(R, ref); @override jni.JObjType get superType => const jni.JObjectType(); @override final superCount = 1; @override int get hashCode => Object.hash($AggregateMetric_Converter_FromDoubleType, R); @override bool operator ==(Object other) { return other.runtimeType == ($AggregateMetric_Converter_FromDoubleType<$R>) && other is $AggregateMetric_Converter_FromDoubleType<$R> && R == other.R; } } /// from: androidx.health.connect.client.aggregate.AggregateMetric$Converter$FromLong class AggregateMetric_Converter_FromLong<$R extends jni.JObject> extends jni.JObject { @override late final jni.JObjType<AggregateMetric_Converter_FromLong<$R>> $type = type(R); final jni.JObjType<$R> R; AggregateMetric_Converter_FromLong.fromRef( this.R, jni.JObjectPtr ref, ) : super.fromRef(ref); /// The type which includes information such as the signature of this class. static $AggregateMetric_Converter_FromLongType<$R> type<$R extends jni.JObject>( jni.JObjType<$R> R, ) { return $AggregateMetric_Converter_FromLongType( R, ); } } final class $AggregateMetric_Converter_FromLongType<$R extends jni.JObject> extends jni.JObjType<AggregateMetric_Converter_FromLong<$R>> { final jni.JObjType<$R> R; const $AggregateMetric_Converter_FromLongType( this.R, ); @override String get signature => r"Landroidx/health/connect/client/aggregate/AggregateMetric$Converter$FromLong;"; @override AggregateMetric_Converter_FromLong<$R> fromRef(jni.JObjectPtr ref) => AggregateMetric_Converter_FromLong.fromRef(R, ref); @override jni.JObjType get superType => const jni.JObjectType(); @override final superCount = 1; @override int get hashCode => Object.hash($AggregateMetric_Converter_FromLongType, R); @override bool operator ==(Object other) { return other.runtimeType == ($AggregateMetric_Converter_FromLongType<$R>) && other is $AggregateMetric_Converter_FromLongType<$R> && R == other.R; } } /// from: androidx.health.connect.client.aggregate.AggregateMetric$Converter class AggregateMetric_Converter<$T extends jni.JObject, $R extends jni.JObject> extends jni.JObject { @override late final jni.JObjType<AggregateMetric_Converter<$T, $R>> $type = type(T, R); final jni.JObjType<$T> T; final jni.JObjType<$R> R; AggregateMetric_Converter.fromRef( this.T, this.R, jni.JObjectPtr ref, ) : super.fromRef(ref); /// The type which includes information such as the signature of this class. static $AggregateMetric_ConverterType<$T, $R> type<$T extends jni.JObject, $R extends jni.JObject>( jni.JObjType<$T> T, jni.JObjType<$R> R, ) { return $AggregateMetric_ConverterType( T, R, ); } } final class $AggregateMetric_ConverterType<$T extends jni.JObject, $R extends jni.JObject> extends jni.JObjType<AggregateMetric_Converter<$T, $R>> { final jni.JObjType<$T> T; final jni.JObjType<$R> R; const $AggregateMetric_ConverterType( this.T, this.R, ); @override String get signature => r"Landroidx/health/connect/client/aggregate/AggregateMetric$Converter;"; @override AggregateMetric_Converter<$T, $R> fromRef(jni.JObjectPtr ref) => AggregateMetric_Converter.fromRef(T, R, ref); @override jni.JObjType get superType => const jni.JObjectType(); @override final superCount = 1; @override int get hashCode => Object.hash($AggregateMetric_ConverterType, T, R); @override bool operator ==(Object other) { return other.runtimeType == ($AggregateMetric_ConverterType<$T, $R>) && other is $AggregateMetric_ConverterType<$T, $R> && T == other.T && R == other.R; } } /// from: androidx.health.connect.client.aggregate.AggregateMetric class AggregateMetric<$T extends jni.JObject> extends jni.JObject { @override late final jni.JObjType<AggregateMetric<$T>> $type = type(T); final jni.JObjType<$T> T; AggregateMetric.fromRef( this.T, jni.JObjectPtr ref, ) : super.fromRef(ref); /// The type which includes information such as the signature of this class. static $AggregateMetricType<$T> type<$T extends jni.JObject>( jni.JObjType<$T> T, ) { return $AggregateMetricType( T, ); } static final _get_Companion = jniLookup<ffi.NativeFunction<jni.JniResult Function()>>( "get_AggregateMetric__Companion") .asFunction<jni.JniResult Function()>(); /// from: static public final androidx.health.connect.client.aggregate.AggregateMetric$Companion Companion /// The returned object must be released after use, by calling the [release] method. static AggregateMetric_Companion get Companion => const $AggregateMetric_CompanionType().fromRef(_get_Companion().object); static final _new0 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>("AggregateMetric__new0") .asFunction< jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>(); /// from: public void <init>(androidx.health.connect.client.aggregate.AggregateMetric$Converter converter, java.lang.String string, androidx.health.connect.client.aggregate.AggregateMetric$AggregationType aggregationType, java.lang.String string1) /// The returned object must be released after use, by calling the [release] method. factory AggregateMetric( AggregateMetric_Converter<jni.JObject, $T> converter, jni.JString string, AggregateMetric_AggregationType aggregationType, jni.JString string1, { jni.JObjType<$T>? T, }) { T ??= jni.lowestCommonSuperType([ (converter.$type as $AggregateMetric_ConverterType).R, ]) as jni.JObjType<$T>; return AggregateMetric.fromRef( T, _new0(converter.reference, string.reference, aggregationType.reference, string1.reference) .object); } } final class $AggregateMetricType<$T extends jni.JObject> extends jni.JObjType<AggregateMetric<$T>> { final jni.JObjType<$T> T; const $AggregateMetricType( this.T, ); @override String get signature => r"Landroidx/health/connect/client/aggregate/AggregateMetric;"; @override AggregateMetric<$T> fromRef(jni.JObjectPtr ref) => AggregateMetric.fromRef(T, ref); @override jni.JObjType get superType => const jni.JObjectType(); @override final superCount = 1; @override int get hashCode => Object.hash($AggregateMetricType, T); @override bool operator ==(Object other) { return other.runtimeType == ($AggregateMetricType<$T>) && other is $AggregateMetricType<$T> && T == other.T; } }
samples/experimental/pedometer/lib/health_connect.dart/0
{ "file_path": "samples/experimental/pedometer/lib/health_connect.dart", "repo_id": "samples", "token_count": 228523 }
1,149
# Run with tooling from https://github.com/flutter/codelabs/tree/main/tooling/codelab_rebuild name: Animations rebuild script steps: - name: Remove runners rmdirs: - android - ios - linux - macos - windows - name: Flutter recreate flutter: create . --platforms android,ios,linux,macos,windows - name: Build for iOS flutter: build ios --simulator - name: Build for macOS flutter: build macos
samples/experimental/varfont_shader_puzzle/codelab_rebuild.yaml/0
{ "file_path": "samples/experimental/varfont_shader_puzzle/codelab_rebuild.yaml", "repo_id": "samples", "token_count": 170 }
1,150
// Copyright 2023 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. class PuzzleModel { final int dim; // num tiles in any one dir; dim x dim board // 2d array like a board // x is the tileID and its position in the array mirrors the board List<List<int>> positions = [<int>[]]; // rotation states, where index == tileID // x is num of CCW rotations off from correct (x % 4 == 0 indicates correct) List<int> status = []; PuzzleModel({required this.dim}) { for (int i = 0; i < dim; i++) { if (positions[positions.length - 1].length == dim) { positions.add(<int>[]); } positions[positions.length - 1].add(i); status.add(0); } } bool allRotationsCorrect() { for (int i = 0; i < status.length; i++) { if (status[i] % 4 != 0) { return false; } } return true; } void setTileStatus(int tileID, int newStatus) { status[tileID] = newStatus; } int getTileStatus(int tileID) { return status[tileID]; } void rotateTile(int tileID) { status[tileID]--; } int getRotationOfTile(int tileID) { return status[tileID]; } }
samples/experimental/varfont_shader_puzzle/lib/model/puzzle_model.dart/0
{ "file_path": "samples/experimental/varfont_shader_puzzle/lib/model/puzzle_model.dart", "repo_id": "samples", "token_count": 457 }
1,151
include: package:analysis_defaults/flutter.yaml
samples/experimental/web_dashboard/analysis_options.yaml/0
{ "file_path": "samples/experimental/web_dashboard/analysis_options.yaml", "repo_id": "samples", "token_count": 15 }
1,152
// Copyright 2020, the Flutter project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. extension DayUtils on DateTime { /// The UTC date portion of a datetime, without the minutes, seconds, etc. DateTime get atMidnight { return DateTime.utc(year, month, day); } /// Checks that the two [DateTime]s share the same date. bool isSameDay(DateTime d2) { return year == d2.year && month == d2.month && day == d2.day; } }
samples/experimental/web_dashboard/lib/src/utils/day_helpers.dart/0
{ "file_path": "samples/experimental/web_dashboard/lib/src/utils/day_helpers.dart", "repo_id": "samples", "token_count": 173 }
1,153
// Copyright 2019 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:firebase_core/firebase_core.dart'; import 'package:flutter/material.dart'; import 'package:google_maps_flutter/google_maps_flutter.dart'; import 'package:google_maps_webservice/places.dart'; import 'api_key.dart'; // Center of the Google Map const initialPosition = LatLng(37.7786, -122.4375); // Hue used by the Google Map Markers to match the theme const _pinkHue = 350.0; // Places API client used for Place Photos final _placesApiClient = GoogleMapsPlaces(apiKey: googleMapsApiKey); Future<void> main() async { WidgetsFlutterBinding.ensureInitialized(); await Firebase.initializeApp(); runApp(const App()); } class App extends StatelessWidget { const App({super.key}); @override Widget build(BuildContext context) { return MaterialApp( title: 'Ice Creams FTW', home: const HomePage(title: 'Ice Cream Stores in SF'), theme: ThemeData( colorSchemeSeed: Colors.pink, scaffoldBackgroundColor: Colors.pink[50], ), ); } } class HomePage extends StatefulWidget { const HomePage({required this.title, super.key}); final String title; @override State<StatefulWidget> createState() { return _HomePageState(); } } class _HomePageState extends State<HomePage> { late Stream<QuerySnapshot> _iceCreamStores; final Completer<GoogleMapController> _mapController = Completer(); @override void initState() { super.initState(); _iceCreamStores = FirebaseFirestore.instance .collection('ice_cream_stores') .orderBy('name') .snapshots(); } @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text(widget.title), ), body: StreamBuilder<QuerySnapshot>( stream: _iceCreamStores, builder: (context, snapshot) { return switch (snapshot) { AsyncSnapshot(hasError: true) => Center(child: Text('Error: ${snapshot.error}')), AsyncSnapshot(hasData: false) => const Center(child: Text('Loading...')), _ => Stack( children: [ StoreMap( documents: snapshot.data!.docs, initialPosition: initialPosition, mapController: _mapController, ), StoreCarousel( mapController: _mapController, documents: snapshot.data!.docs, ), ], ) }; }, ), ); } } class StoreCarousel extends StatelessWidget { const StoreCarousel({ super.key, required this.documents, required this.mapController, }); final List<DocumentSnapshot> documents; final Completer<GoogleMapController> mapController; @override Widget build(BuildContext context) { return Align( alignment: Alignment.topLeft, child: Padding( padding: const EdgeInsets.only(top: 10), child: SizedBox( height: 90, child: StoreCarouselList( documents: documents, mapController: mapController, ), ), ), ); } } class StoreCarouselList extends StatelessWidget { const StoreCarouselList({ super.key, required this.documents, required this.mapController, }); final List<DocumentSnapshot> documents; final Completer<GoogleMapController> mapController; @override Widget build(BuildContext context) { return ListView.builder( scrollDirection: Axis.horizontal, itemCount: documents.length, itemBuilder: (context, index) { return SizedBox( width: 340, child: Padding( padding: const EdgeInsets.only(left: 8), child: Card( child: Center( child: StoreListTile( document: documents[index], mapController: mapController, ), ), ), ), ); }, ); } } class StoreListTile extends StatefulWidget { const StoreListTile({ super.key, required this.document, required this.mapController, }); final DocumentSnapshot document; final Completer<GoogleMapController> mapController; @override State<StatefulWidget> createState() { return _StoreListTileState(); } } class _StoreListTileState extends State<StoreListTile> { String _placePhotoUrl = ''; bool _disposed = false; @override void initState() { super.initState(); _retrievePlacesDetails(); } @override void dispose() { _disposed = true; super.dispose(); } Future<void> _retrievePlacesDetails() async { final details = await _placesApiClient .getDetailsByPlaceId(widget.document['placeId'] as String); if (!_disposed) { setState(() { _placePhotoUrl = _placesApiClient.buildPhotoUrl( photoReference: details.result.photos[0].photoReference, maxHeight: 300, ); }); } } @override Widget build(BuildContext context) { return ListTile( title: Text(widget.document['name'] as String), subtitle: Text(widget.document['address'] as String), leading: SizedBox( width: 100, height: 100, child: _placePhotoUrl.isNotEmpty ? ClipRRect( borderRadius: const BorderRadius.all(Radius.circular(2)), child: Image.network(_placePhotoUrl, fit: BoxFit.cover), ) : Container(), ), onTap: () async { final controller = await widget.mapController.future; await controller.animateCamera( CameraUpdate.newCameraPosition( CameraPosition( target: LatLng( widget.document['location'].latitude as double, widget.document['location'].longitude as double, ), zoom: 16, ), ), ); }, ); } } class StoreMap extends StatelessWidget { const StoreMap({ super.key, required this.documents, required this.initialPosition, required this.mapController, }); final List<DocumentSnapshot> documents; final LatLng initialPosition; final Completer<GoogleMapController> mapController; @override Widget build(BuildContext context) { return GoogleMap( initialCameraPosition: CameraPosition( target: initialPosition, zoom: 12, ), markers: documents .map((document) => Marker( markerId: MarkerId(document['placeId'] as String), icon: BitmapDescriptor.defaultMarkerWithHue(_pinkHue), position: LatLng( document['location'].latitude as double, document['location'].longitude as double, ), infoWindow: InfoWindow( title: document['name'] as String?, snippet: document['address'] as String?, ), )) .toSet(), onMapCreated: (mapController) { this.mapController.complete(mapController); }, ); } }
samples/flutter_maps_firestore/lib/main.dart/0
{ "file_path": "samples/flutter_maps_firestore/lib/main.dart", "repo_id": "samples", "token_count": 3190 }
1,154
name: form_app description: A sample demonstrating different types of forms and best practices publish_to: "none" version: 1.0.0+1 environment: sdk: ^3.2.0 dependencies: flutter: sdk: flutter cupertino_icons: ^1.0.0 intl: ^0.19.0 http: ^1.0.0 json_annotation: any english_words: ^4.0.0 window_size: git: url: https://github.com/google/flutter-desktop-embedding.git path: plugins/window_size go_router: ^13.0.0 dev_dependencies: analysis_defaults: path: ../analysis_defaults flutter_test: sdk: flutter json_serializable: ^6.2.0 build_runner: ^2.1.8 flutter: uses-material-design: true
samples/form_app/pubspec.yaml/0
{ "file_path": "samples/form_app/pubspec.yaml", "repo_id": "samples", "token_count": 271 }
1,155
org.gradle.jvmargs=-Xmx1536M android.useAndroidX=true android.enableJetifier=true
samples/game_template/android/gradle.properties/0
{ "file_path": "samples/game_template/android/gradle.properties", "repo_id": "samples", "token_count": 31 }
1,156
// Copyright 2022, the Flutter project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. import 'dart:async'; import 'package:flutter/foundation.dart'; import 'persistence/player_progress_persistence.dart'; /// Encapsulates the player's progress. class PlayerProgress extends ChangeNotifier { static const maxHighestScoresPerPlayer = 10; final PlayerProgressPersistence _store; int _highestLevelReached = 0; /// Creates an instance of [PlayerProgress] backed by an injected /// persistence [store]. PlayerProgress(PlayerProgressPersistence store) : _store = store; /// The highest level that the player has reached so far. int get highestLevelReached => _highestLevelReached; /// Fetches the latest data from the backing persistence store. Future<void> getLatestFromStore() async { final level = await _store.getHighestLevelReached(); if (level > _highestLevelReached) { _highestLevelReached = level; notifyListeners(); } else if (level < _highestLevelReached) { await _store.saveHighestLevelReached(_highestLevelReached); } } /// Resets the player's progress so it's like if they just started /// playing the game for the first time. void reset() { _highestLevelReached = 0; notifyListeners(); _store.saveHighestLevelReached(_highestLevelReached); } /// Registers [level] as reached. /// /// If this is higher than [highestLevelReached], it will update that /// value and save it to the injected persistence store. void setLevelReached(int level) { if (level > _highestLevelReached) { _highestLevelReached = level; notifyListeners(); unawaited(_store.saveHighestLevelReached(level)); } } }
samples/game_template/lib/src/player_progress/player_progress.dart/0
{ "file_path": "samples/game_template/lib/src/player_progress/player_progress.dart", "repo_id": "samples", "token_count": 550 }
1,157
// // Generated file. Do not edit. // // clang-format off #include "generated_plugin_registrant.h" #include <audioplayers_linux/audioplayers_linux_plugin.h> void fl_register_plugins(FlPluginRegistry* registry) { g_autoptr(FlPluginRegistrar) audioplayers_linux_registrar = fl_plugin_registry_get_registrar_for_plugin(registry, "AudioplayersLinuxPlugin"); audioplayers_linux_plugin_register_with_registrar(audioplayers_linux_registrar); }
samples/game_template/linux/flutter/generated_plugin_registrant.cc/0
{ "file_path": "samples/game_template/linux/flutter/generated_plugin_registrant.cc", "repo_id": "samples", "token_count": 169 }
1,158
# Google Maps Demo This sample Flutter app showcases the [Google Maps for Flutter plugin](https://developers.google.com/maps/flutter-plugin/overview). ## Getting Started 1. See the overview at https://developers.google.com/maps/flutter-plugin/overview. 1. Follow the setup guide at https://developers.google.com/maps/flutter-plugin/config to learn where to insert your API keys. This demo will not run without API keys added. 1. Use the sample code in this folder for the tutorial at https://developers.google.com/maps/flutter-plugin/map-with-marker.
samples/google_maps/README.md/0
{ "file_path": "samples/google_maps/README.md", "repo_id": "samples", "token_count": 153 }
1,159
name: ios_app_clip description: An example Flutter project that can build as an App Clip. publish_to: "none" # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: sdk: ^3.2.0 dependencies: flutter: sdk: flutter cupertino_icons: ^1.0.0 device_info: ^2.0.3 dev_dependencies: analysis_defaults: path: ../analysis_defaults flutter_test: sdk: flutter flutter:
samples/ios_app_clip/pubspec.yaml/0
{ "file_path": "samples/ios_app_clip/pubspec.yaml", "repo_id": "samples", "token_count": 166 }
1,160
#import "GeneratedPluginRegistrant.h"
samples/isolate_example/ios/Runner/Runner-Bridging-Header.h/0
{ "file_path": "samples/isolate_example/ios/Runner/Runner-Bridging-Header.h", "repo_id": "samples", "token_count": 13 }
1,161
## `jsonexample` sample retired The `jsonexample` sample has reached the end of it's useful life. It was great code when it has written, but the world has changed. Dart 3 introduced Patterns and records. There is also various JSON parsing tools like `json_serializable`. For further information, please see: - The [Dive into Dart's patterns and records](https://codelabs.developers.google.com/codelabs/dart-patterns-records) codelab for a deep dive into Dart 3's patterns and records with an application to parsing JSON - The Flutter.dev documentation on [JSON and serialization](https://docs.flutter.dev/data-and-backend/serialization/json)
samples/jsonexample/README.md/0
{ "file_path": "samples/jsonexample/README.md", "repo_id": "samples", "token_count": 179 }
1,162
// Copyright 2021 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // ignore_for_file: avoid_types_on_closure_parameters import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:material_3_demo/component_screen.dart'; import 'package:material_3_demo/main.dart'; void main() { testWidgets('Default main page shows all M3 components', (tester) async { widgetSetup(tester, 800, windowHeight: 7000); await tester.pumpWidget(const App()); // Elements on the app bar expect(find.text('Material 3'), findsOneWidget); expect( find.widgetWithIcon(AppBar, Icons.dark_mode_outlined), findsOneWidget); expect(find.widgetWithIcon(AppBar, Icons.filter_2), findsOneWidget); expect(find.widgetWithIcon(AppBar, Icons.palette_outlined), findsOneWidget); // Elements on the component screen // Common buttons expect(find.widgetWithText(ElevatedButton, 'Elevated'), findsNWidgets(2)); expect(find.widgetWithText(FilledButton, 'Filled'), findsNWidgets(2)); expect(find.widgetWithText(FilledButton, 'Filled tonal'), findsNWidgets(2)); expect(find.widgetWithText(OutlinedButton, 'Outlined'), findsNWidgets(2)); expect(find.widgetWithText(TextButton, 'Text'), findsNWidgets(2)); expect(find.widgetWithText(Buttons, 'Icon'), findsNWidgets(5)); // FABs expect( find.byType(FloatingActionButton), findsNWidgets( 6)); // 2 more show up in the bottom app bar. 1 more in the navigation rail expect(find.widgetWithText(FloatingActionButton, 'Create'), findsOneWidget); // Icon buttons expect(find.widgetWithIcon(IconButton, Icons.settings_outlined), findsNWidgets(8)); // Segmented buttons expect(find.byType(SegmentedButton<Calendar>), findsOneWidget); expect(find.byType(SegmentedButton<Sizes>), findsOneWidget); // Badges expect(find.byType(Badge), findsNWidgets(4)); // Progress indicators Finder circularProgressIndicator = find.byType(CircularProgressIndicator); expect(circularProgressIndicator, findsOneWidget); Finder linearProgressIndicator = find.byType(LinearProgressIndicator); expect(linearProgressIndicator, findsOneWidget); // Snackbar expect(find.widgetWithText(TextButton, 'Show snackbar'), findsOneWidget); // Bottom sheet expect(find.widgetWithText(TextButton, 'Show modal bottom sheet'), findsOneWidget); expect( find.widgetWithText(TextButton, 'Show bottom sheet'), findsOneWidget); // Cards expect(find.widgetWithText(Cards, 'Elevated'), findsOneWidget); expect(find.widgetWithText(Cards, 'Filled'), findsOneWidget); expect(find.widgetWithText(Cards, 'Outlined'), findsOneWidget); // Dialogs expect(find.widgetWithText(TextButton, 'Show dialog'), findsOneWidget); expect(find.widgetWithText(TextButton, 'Show full-screen dialog'), findsOneWidget); // Dividers expect(find.byKey(const Key('divider')), findsOneWidget); // Bottom app bar expect(find.byType(BottomAppBar), findsOneWidget); // Navigation bar // Third one is off screen in the scaffold expect(find.byType(NavigationBar), findsNWidgets(3)); // Navigation drawer expect(find.byType(Drawer), findsOneWidget); expect(find.widgetWithText(TextButton, 'Show modal navigation drawer'), findsOneWidget); // Navigation rail // Second one is off screen in the scaffold expect(find.byType(NavigationRail), findsNWidgets(2)); // Tabs expect(find.byType(TabBar), findsOneWidget); // Search expect(find.byType(SearchBar), findsOneWidget); // Top app bars expect(find.byType(AppBar), findsNWidgets(6)); // Checkboxes Finder checkboxExample = find.byType(CheckboxListTile); expect(checkboxExample, findsNWidgets(4)); // Chips expect(find.byType(ActionChip), findsNWidgets(4)); // includes Assist and Suggestion chip. expect(find.byType(FilterChip), findsNWidgets(2)); expect(find.byType(InputChip), findsNWidgets(2)); // Date and time pickers expect(find.widgetWithText(DatePicker, 'Show date picker'), findsOneWidget); expect(find.widgetWithText(TimePicker, 'Show time picker'), findsOneWidget); // Menus expect(find.byType(MenuAnchor), findsNWidgets(5)); expect(find.byType(DropdownMenu<ColorLabel>), findsOneWidget); expect(find.byType(DropdownMenu<IconLabel>), findsOneWidget); // Radios Finder radioExample = find.byType(RadioListTile<Options>); expect(radioExample, findsNWidgets(3)); // Sliders expect(find.byType(Slider), findsNWidgets(2)); // Switches expect(find.byType(Switch), findsNWidgets(4)); // TextFields expect(find.widgetWithText(TextField, 'Disabled'), findsNWidgets(2)); expect(find.widgetWithText(TextField, 'Filled'), findsNWidgets(2)); expect(find.widgetWithText(TextField, 'Outlined'), findsNWidgets(2)); }); testWidgets( 'NavigationRail doesn\'t show when width value is small than 1000 ' '(in Portrait mode or narrow screen)', (tester) async { widgetSetup(tester, 999, windowHeight: 7000); await tester.pumpWidget(const App()); await tester.pumpAndSettle(); // When screen width is less than 1000, NavigationBar will show. At the same // time, the NavigationBar example still show up in the navigation group. expect(find.byType(NavigationBars), findsNWidgets(3)); // The real navBar, badges example and navBar example expect(find.widgetWithText(NavigationBar, 'Components'), findsOneWidget); expect(find.widgetWithText(NavigationBar, 'Color'), findsOneWidget); expect(find.widgetWithText(NavigationBar, 'Typography'), findsOneWidget); expect(find.widgetWithText(NavigationBar, 'Elevation'), findsOneWidget); expect(find.widgetWithText(NavigationBar, 'Explore'), findsOneWidget); expect(find.widgetWithText(NavigationBar, 'Pets'), findsOneWidget); expect(find.widgetWithText(NavigationBar, 'Account'), findsOneWidget); }); testWidgets( 'NavigationRail shows when width value is greater than or equal ' 'to 1000 (in Landscape mode or wider screen)', (tester) async { widgetSetup(tester, 1001, windowHeight: 3000); await tester.pumpWidget(const App()); await tester.pumpAndSettle(); // When screen width is greater than or equal to 1000, NavigationRail will show. // At the same time, the NavigationBar will NOT show. expect(find.byType(NavigationRail), findsNWidgets(2)); expect(find.byType(Tooltip, skipOffstage: false), findsWidgets); expect(find.widgetWithText(NavigationRail, 'Components'), findsOneWidget); expect(find.widgetWithText(NavigationRail, 'Color'), findsOneWidget); expect(find.widgetWithText(NavigationRail, 'Typography'), findsOneWidget); expect(find.widgetWithText(NavigationRail, 'Elevation'), findsOneWidget); expect(find.widgetWithText(NavigationBar, 'Explore'), findsOneWidget); expect(find.widgetWithText(NavigationBar, 'Pets'), findsOneWidget); expect(find.widgetWithText(NavigationBar, 'Account'), findsOneWidget); // the Navigation bar should be out of screen. final RenderBox box = tester.renderObject(find.widgetWithText(NavigationBar, 'Components')); expect(box.localToGlobal(Offset.zero), const Offset(0.0, 3080.0)); }); testWidgets( 'Material version switches between Material3 and Material2 when' 'the version icon is clicked', (tester) async { widgetSetup(tester, 450, windowHeight: 7000); await tester.pumpWidget(const App()); BuildContext defaultElevatedButton = tester.firstElement(find.byType(ElevatedButton)); BuildContext defaultIconButton = tester.firstElement(find.byType(IconButton)); BuildContext defaultFAB = tester.firstElement(find.byType(FloatingActionButton)); BuildContext defaultCard = tester.firstElement(find.widgetWithText(Card, 'Elevated')); BuildContext defaultChip = tester.firstElement(find.widgetWithText(ActionChip, 'Assist')); Finder dialog = find.text('Show dialog'); await tester.tap(dialog); await tester.pumpAndSettle(const Duration(microseconds: 500)); BuildContext defaultAlertDialog = tester.element(find.byType(AlertDialog)); expect(Theme.of(defaultAlertDialog).useMaterial3, true); Finder dismiss = find.text('Okay'); await tester.tap(dismiss); await tester.pumpAndSettle(const Duration(microseconds: 500)); expect(find.widgetWithIcon(AppBar, Icons.filter_2), findsOneWidget); expect(find.widgetWithIcon(AppBar, Icons.filter_3), findsNothing); expect(find.text('Material 3'), findsOneWidget); expect(Theme.of(defaultElevatedButton).useMaterial3, true); expect(Theme.of(defaultIconButton).useMaterial3, true); expect(Theme.of(defaultFAB).useMaterial3, true); expect(Theme.of(defaultCard).useMaterial3, true); expect(Theme.of(defaultChip).useMaterial3, true); Finder appbarM3Icon = find.descendant( of: find.byType(AppBar), matching: find.widgetWithIcon(IconButton, Icons.filter_2)); await tester.tap(appbarM3Icon); await tester.pumpAndSettle(const Duration(microseconds: 500)); BuildContext updatedElevatedButton = tester.firstElement(find.byType(ElevatedButton)); BuildContext updatedIconButton = tester.firstElement(find.byType(IconButton)); BuildContext updatedFAB = tester.firstElement(find.byType(FloatingActionButton)); BuildContext updatedCard = tester.firstElement(find.byType(Card)); BuildContext updatedChip = tester.firstElement(find.widgetWithText(ActionChip, 'Assist')); Finder updatedDialog = find.text('Show dialog'); await tester.tap(updatedDialog); await tester.pumpAndSettle(const Duration(microseconds: 500)); BuildContext updatedAlertDialog = tester.firstElement(find.byType(AlertDialog)); expect(Theme.of(updatedAlertDialog).useMaterial3, false); Finder updatedDismiss = find.text('Dismiss'); await tester.tap(updatedDismiss); await tester.pumpAndSettle(const Duration(microseconds: 500)); expect(find.widgetWithIcon(AppBar, Icons.filter_3), findsOneWidget); expect(find.widgetWithIcon(AppBar, Icons.filter_2), findsNothing); expect(find.text('Material 2'), findsOneWidget); expect(Theme.of(updatedElevatedButton).useMaterial3, false); expect(Theme.of(updatedIconButton).useMaterial3, false); expect(Theme.of(updatedFAB).useMaterial3, false); expect(Theme.of(updatedCard).useMaterial3, false); expect(Theme.of(updatedChip).useMaterial3, false); }); testWidgets( 'Other screens become Material2 mode after changing mode from ' 'main screen', (tester) async { await tester.pumpWidget(const App()); Finder appbarM2Icon = find.descendant( of: find.byType(AppBar), matching: find.widgetWithIcon(IconButton, Icons.filter_2)); await tester.tap(appbarM2Icon); Finder secondScreenIcon = find.descendant( of: find.byType(NavigationBar), matching: find.widgetWithIcon( NavigationDestination, Icons.format_paint_outlined)); await tester.tap(secondScreenIcon); await tester.pumpAndSettle(const Duration(microseconds: 500)); BuildContext lightThemeText = tester.element(find.text('Light ColorScheme')); expect(Theme.of(lightThemeText).useMaterial3, false); Finder thirdScreenIcon = find.descendant( of: find.byType(NavigationBar), matching: find.widgetWithIcon( NavigationDestination, Icons.text_snippet_outlined)); await tester.tap(thirdScreenIcon); await tester.pumpAndSettle(const Duration(microseconds: 500)); BuildContext displayLargeText = tester.element(find.text('Display Large')); expect(Theme.of(displayLargeText).useMaterial3, false); Finder fourthScreenIcon = find.descendant( of: find.byType(NavigationBar), matching: find.widgetWithIcon( NavigationDestination, Icons.invert_colors_on_outlined)); await tester.tap(fourthScreenIcon); await tester.pumpAndSettle(const Duration(microseconds: 500)); BuildContext material = tester.firstElement(find.byType(Material)); expect(Theme.of(material).useMaterial3, false); }); testWidgets( 'Brightness mode switches between dark and light when' 'the brightness icon is clicked', (tester) async { await tester.pumpWidget(const App()); Finder lightIcon = find.descendant( of: find.byType(AppBar), matching: find.widgetWithIcon(IconButton, Icons.light_mode_outlined)); Finder darkIcon = find.descendant( of: find.byType(AppBar), matching: find.widgetWithIcon(IconButton, Icons.dark_mode_outlined)); BuildContext appBar = tester.element(find.byType(AppBar).first); BuildContext body = tester.firstElement(find.byType(Scaffold).first); BuildContext navigationRail = tester.element( find.widgetWithIcon(NavigationRail, Icons.format_paint_outlined)); expect(darkIcon, findsOneWidget); expect(lightIcon, findsNothing); expect(Theme.of(appBar).brightness, Brightness.light); expect(Theme.of(body).brightness, Brightness.light); expect(Theme.of(navigationRail).brightness, Brightness.light); await tester.tap(darkIcon); await tester.pumpAndSettle(const Duration(microseconds: 500)); BuildContext appBar2 = tester.element(find.byType(AppBar).first); BuildContext body2 = tester.element(find.byType(Scaffold).first); BuildContext navigationRail2 = tester.element( find.widgetWithIcon(NavigationRail, Icons.format_paint_outlined)); expect(darkIcon, findsNothing); expect(lightIcon, findsOneWidget); expect(Theme.of(appBar2).brightness, Brightness.dark); expect(Theme.of(body2).brightness, Brightness.dark); expect(Theme.of(navigationRail2).brightness, Brightness.dark); }); testWidgets('Color theme changes when a color is selected from menu', (tester) async { Color m3BaseColor = const Color(0xff6750a4); await tester.pumpWidget(Container()); await tester.pumpWidget(const App()); await tester.pump(); Finder menuIcon = find.descendant( of: find.byType(AppBar), matching: find.widgetWithIcon(IconButton, Icons.palette_outlined)); BuildContext appBar = tester .element(find.widgetWithIcon(AppBar, Icons.palette_outlined).first); BuildContext body = tester.element(find.byType(Scaffold).first); expect(Theme.of(appBar).primaryColor, m3BaseColor); expect(Theme.of(body).primaryColor, m3BaseColor); await tester.tap(menuIcon); await tester.pumpAndSettle(); await tester.tap(find.text('Blue').last); await tester.pumpAndSettle(); BuildContext appBar2 = tester.element(find.byType(AppBar).first); BuildContext body2 = tester.element(find.byType(Scaffold).first); ThemeData expectedTheme = ThemeData(colorSchemeSeed: Colors.blue); expect(Theme.of(appBar2).primaryColor, expectedTheme.primaryColor); expect(Theme.of(body2).primaryColor, expectedTheme.primaryColor); }); } void widgetSetup(WidgetTester tester, double windowWidth, {double? windowHeight}) { final height = windowHeight ?? 846; tester.view.devicePixelRatio = 2; final dpi = tester.view.devicePixelRatio; tester.view.physicalSize = Size(windowWidth * dpi, height * dpi); }
samples/material_3_demo/test/component_screen_test.dart/0
{ "file_path": "samples/material_3_demo/test/component_screen_test.dart", "repo_id": "samples", "token_count": 5422 }
1,163
org.gradle.jvmargs=-Xmx4G android.useAndroidX=true android.enableJetifier=true
samples/navigation_and_routing/android/gradle.properties/0
{ "file_path": "samples/navigation_and_routing/android/gradle.properties", "repo_id": "samples", "token_count": 30 }
1,164
// Copyright 2021, the Flutter project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. import 'book.dart'; class Author { final int id; final String name; final books = <Book>[]; Author(this.id, this.name); }
samples/navigation_and_routing/lib/src/data/author.dart/0
{ "file_path": "samples/navigation_and_routing/lib/src/data/author.dart", "repo_id": "samples", "token_count": 101 }
1,165
// // Generated file. Do not edit. // // clang-format off #include "generated_plugin_registrant.h" #include <url_launcher_linux/url_launcher_plugin.h> #include <window_size/window_size_plugin.h> void fl_register_plugins(FlPluginRegistry* registry) { g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar = fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin"); url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar); g_autoptr(FlPluginRegistrar) window_size_registrar = fl_plugin_registry_get_registrar_for_plugin(registry, "WindowSizePlugin"); window_size_plugin_register_with_registrar(window_size_registrar); }
samples/navigation_and_routing/linux/flutter/generated_plugin_registrant.cc/0
{ "file_path": "samples/navigation_and_routing/linux/flutter/generated_plugin_registrant.cc", "repo_id": "samples", "token_count": 256 }
1,166
// // Generated file. Do not edit. // // clang-format off #include "generated_plugin_registrant.h" #include <url_launcher_windows/url_launcher_windows.h> #include <window_size/window_size_plugin.h> void RegisterPlugins(flutter::PluginRegistry* registry) { UrlLauncherWindowsRegisterWithRegistrar( registry->GetRegistrarForPlugin("UrlLauncherWindows")); WindowSizePluginRegisterWithRegistrar( registry->GetRegistrarForPlugin("WindowSizePlugin")); }
samples/navigation_and_routing/windows/flutter/generated_plugin_registrant.cc/0
{ "file_path": "samples/navigation_and_routing/windows/flutter/generated_plugin_registrant.cc", "repo_id": "samples", "token_count": 159 }
1,167
#include "Generated.xcconfig"
samples/platform_channels/ios/Flutter/Debug.xcconfig/0
{ "file_path": "samples/platform_channels/ios/Flutter/Debug.xcconfig", "repo_id": "samples", "token_count": 12 }
1,168
// Copyright 2020 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:convert'; import 'package:flutter/services.dart'; /// This class includes two methods [addPetDetails] and [removePet] which are used /// to add a new pet and remove a pet from the the list respectively. class PetListMessageChannel { static const _jsonMessageCodecChannel = BasicMessageChannel<dynamic>('jsonMessageCodecDemo', JSONMessageCodec()); static const _binaryCodecChannel = BasicMessageChannel('binaryCodecDemo', BinaryCodec()); /// Method to add a new pet to the list. /// /// Demonstrates how to use [BasicMessageChannel] and [JSONMessageCodec] to /// send more structured data to platform like a [Map] in this case. static void addPetDetails(PetDetails petDetails) { _jsonMessageCodecChannel.send(petDetails.toJson()); } /// Method to remove a pet from the list. /// /// Demonstrates how to use [BasicMessageChannel] and [BinaryCodec] to /// send [ByteData] to platform. If the reply received is null, then /// we will throw a [PlatformException]. static Future<void> removePet(int index) async { final uInt8List = utf8.encoder.convert(index.toString()); final reply = await _binaryCodecChannel.send(uInt8List.buffer.asByteData()); if (reply == null) { throw PlatformException( code: 'INVALID INDEX', message: 'Failed to delete pet details', details: null, ); } } } /// A model class that provides [petList] which is received from platform. class PetListModel { PetListModel({ required this.petList, }); final List<PetDetails> petList; /// Method that maps the incoming string of json object to List of [PetDetails]. factory PetListModel.fromJson(String jsonString) { final jsonData = json.decode(jsonString) as Map<String, dynamic>; return PetListModel( petList: List.from((jsonData['petList'] as List).map<PetDetails>( (dynamic petDetailsMap) => PetDetails.fromMap( petDetailsMap as Map<String, dynamic>, ), )), ); } } /// A simple model that provides pet details like [petType] and [breed] of pet. class PetDetails { PetDetails({ required this.petType, required this.breed, }); final String petType; final String breed; factory PetDetails.fromMap(Map<String, dynamic> map) => PetDetails( petType: map['petType'] as String, breed: map['breed'] as String, ); Map<String, String> toJson() => <String, String>{ 'petType': petType, 'breed': breed, }; }
samples/platform_channels/lib/src/pet_list_message_channel.dart/0
{ "file_path": "samples/platform_channels/lib/src/pet_list_message_channel.dart", "repo_id": "samples", "token_count": 898 }
1,169
// Copyright 2020 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:math'; import 'package:english_words/english_words.dart'; // ignore: implementation_imports import 'package:flutter/material.dart'; // This file has a number of platform-agnostic non-Widget utility functions. const _myListOfRandomColors = [ Colors.red, Colors.blue, Colors.teal, Colors.yellow, Colors.amber, Colors.deepOrange, Colors.green, Colors.indigo, Colors.lime, Colors.pink, Colors.orange, ]; final _random = Random(); // Avoid customizing the word generator, which can be slow. // https://github.com/filiph/english_words/issues/9 final wordPairIterator = generateWordPairs(); String generateRandomHeadline() { final artist = capitalizePair(wordPairIterator.first); return switch (_random.nextInt(10)) { 0 => '$artist says ${nouns[_random.nextInt(nouns.length)]}', 1 => '$artist arrested due to ${wordPairIterator.first.join(' ')}', 2 => '$artist releases ${capitalizePair(wordPairIterator.first)}', 3 => '$artist talks about his ${nouns[_random.nextInt(nouns.length)]}', 4 => '$artist talks about her ${nouns[_random.nextInt(nouns.length)]}', 5 => '$artist talks about their ${nouns[_random.nextInt(nouns.length)]}', 6 => '$artist says their music is inspired by ${wordPairIterator.first.join(' ')}', 7 => '$artist says the world needs more ${nouns[_random.nextInt(nouns.length)]}', 8 => '$artist calls their band ${adjectives[_random.nextInt(adjectives.length)]}', 9 => '$artist finally ready to talk about ${nouns[_random.nextInt(nouns.length)]}', _ => 'Failed to generate news headline', }; } List<MaterialColor> getRandomColors(int amount) { return List<MaterialColor>.generate(amount, (index) { return _myListOfRandomColors[_random.nextInt(_myListOfRandomColors.length)]; }); } List<String> getRandomNames(int amount) { return wordPairIterator .take(amount) .map((pair) => capitalizePair(pair)) .toList(); } String capitalize(String word) { return '${word[0].toUpperCase()}${word.substring(1).toLowerCase()}'; } String capitalizePair(WordPair pair) { return '${capitalize(pair.first)} ${capitalize(pair.second)}'; }
samples/platform_design/lib/utils.dart/0
{ "file_path": "samples/platform_design/lib/utils.dart", "repo_id": "samples", "token_count": 818 }
1,170
package dev.flutter.provider_shopper import io.flutter.embedding.android.FlutterActivity class MainActivity: FlutterActivity() { }
samples/provider_shopper/android/app/src/main/kotlin/dev/flutter/provider_shopper/MainActivity.kt/0
{ "file_path": "samples/provider_shopper/android/app/src/main/kotlin/dev/flutter/provider_shopper/MainActivity.kt", "repo_id": "samples", "token_count": 42 }
1,171
// Copyright 2020 The Flutter team. 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/material.dart'; import 'package:go_router/go_router.dart'; class MyLogin extends StatelessWidget { const MyLogin({super.key}); @override Widget build(BuildContext context) { return Scaffold( body: Center( child: Container( padding: const EdgeInsets.all(80.0), child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ Text( 'Welcome', style: Theme.of(context).textTheme.displayLarge, ), TextFormField( decoration: const InputDecoration( hintText: 'Username', ), ), TextFormField( decoration: const InputDecoration( hintText: 'Password', ), obscureText: true, ), const SizedBox( height: 24, ), ElevatedButton( onPressed: () { context.pushReplacement('/catalog'); }, style: ElevatedButton.styleFrom( backgroundColor: Colors.yellow, ), child: const Text('ENTER'), ) ], ), ), ), ); } }
samples/provider_shopper/lib/screens/login.dart/0
{ "file_path": "samples/provider_shopper/lib/screens/login.dart", "repo_id": "samples", "token_count": 809 }
1,172
#include "../../Flutter/Flutter-Release.xcconfig" #include "Warnings.xcconfig"
samples/provider_shopper/macos/Runner/Configs/Release.xcconfig/0
{ "file_path": "samples/provider_shopper/macos/Runner/Configs/Release.xcconfig", "repo_id": "samples", "token_count": 32 }
1,173
#include "Generated.xcconfig"
samples/simplistic_editor/ios/Flutter/Debug.xcconfig/0
{ "file_path": "samples/simplistic_editor/ios/Flutter/Debug.xcconfig", "repo_id": "samples", "token_count": 12 }
1,174
include: package:analysis_defaults/flutter.yaml
samples/testing_app/analysis_options.yaml/0
{ "file_path": "samples/testing_app/analysis_options.yaml", "repo_id": "samples", "token_count": 15 }
1,175
// Copyright 2018 The Flutter team. 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/cupertino.dart'; import 'package:provider/provider.dart'; import 'package:veggieseasons/data/app_state.dart'; import 'package:veggieseasons/data/veggie.dart'; import 'package:veggieseasons/widgets/veggie_headline.dart'; class FavoritesScreen extends StatelessWidget { const FavoritesScreen({this.restorationId, super.key}); final String? restorationId; @override Widget build(BuildContext context) { return CupertinoTabView( restorationScopeId: restorationId, builder: (context) { final model = Provider.of<AppState>(context); return CupertinoPageScaffold( navigationBar: const CupertinoNavigationBar( middle: Text('My Garden'), ), child: Center( child: model.favoriteVeggies.isEmpty ? Padding( padding: const EdgeInsets.symmetric(horizontal: 24), child: Text( 'You haven\'t added any favorite veggies to your garden yet.', style: CupertinoTheme.of(context).textTheme.textStyle, ), ) : ListView( restorationId: 'list', children: [ const SizedBox(height: 24), for (Veggie veggie in model.favoriteVeggies) Padding( padding: const EdgeInsets.fromLTRB(16, 0, 16, 24), child: VeggieHeadline(veggie), ), ], ), ), ); }, ); } }
samples/veggieseasons/lib/screens/favorites.dart/0
{ "file_path": "samples/veggieseasons/lib/screens/favorites.dart", "repo_id": "samples", "token_count": 884 }
1,176
// // Generated file. Do not edit. // import FlutterMacOS import Foundation import shared_preferences_foundation import window_size func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) WindowSizePlugin.register(with: registry.registrar(forPlugin: "WindowSizePlugin")) }
samples/veggieseasons/macos/Flutter/GeneratedPluginRegistrant.swift/0
{ "file_path": "samples/veggieseasons/macos/Flutter/GeneratedPluginRegistrant.swift", "repo_id": "samples", "token_count": 112 }
1,177
// Copyright 2020 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file import 'dart:io'; import 'package:path/path.dart' as p; import 'common.dart'; void main() async { final packageDirs = listPackageDirs(Directory.current) .map((path) => p.relative(path, from: Directory.current.path)) .where((path) => !p.dirname(path).startsWith('_')) .toList(); print('Package dirs:\n${packageDirs.map((path) => ' $path').join('\n')}'); final results = <bool>[]; for (var i = 0; i < packageDirs.length; i++) { final dir = packageDirs[i]; logWrapped(ansiMagenta, '\n$dir (${i + 1} of ${packageDirs.length})'); final upgradeResult = await run(dir, 'flutter', [ 'pub', 'pub', 'upgrade', '--no-precompile', ]); results.add(upgradeResult); if (!upgradeResult) { // skipping analyze when `pub upgrade` fails. results.add(false); continue; } results.add(await run( dir, 'dart', ['analyze', '--fatal-infos', '--fatal-warnings', '.'], )); _printStatus(results); } if (results.any((v) => !v)) { exitCode = 1; } } void _printStatus(List<bool> results) { var successCount = results.where((t) => t).length; var success = (successCount == results.length); var pct = 100 * successCount / results.length; logWrapped(success ? ansiGreen : ansiRed, '$successCount of ${results.length} (${pct.toStringAsFixed(2)}%)'); }
samples/web/_tool/verify_packages.dart/0
{ "file_path": "samples/web/_tool/verify_packages.dart", "repo_id": "samples", "token_count": 609 }
1,178
// Copyright 2020 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file /// Defines the data types for this project. library; import 'package:json_annotation/json_annotation.dart'; import 'package:path/path.dart' as path; import 'package:samples_index/src/util.dart' as util; part 'data.g.dart'; /// The full list of samples @JsonSerializable( // Use anyMap and checked for more useful YAML parsing errors. See // package:checked_yaml docs for details. anyMap: true, checked: true) class Index { final List<Sample> samples; Index(this.samples); factory Index.fromJson(Map<dynamic, dynamic> json) => _$IndexFromJson(json); Map<String, dynamic> toJson() => _$IndexToJson(this); } /// A sample to be displayed in the app. @JsonSerializable(anyMap: true, checked: true) class Sample { /// The name of the sample. final String name; /// The author of the sample. Typically "Flutter" final String? author; /// Screenshots of the sample. At least 1 screenshot is required. final List<Screenshot> screenshots; /// A link to the source code. final String source; /// A link to this sample running in the browser. final String? web; /// 3-5 sentences describing the sample. final String description; /// The difficulty level. Values are either 'beginner', 'intermediate', or /// 'advanced'. final String? difficulty; /// List of widgets or Flutter APIs used by the sample. e.g. "AnimatedBuilder" /// or "ChangeNotifier". final List<String> widgets; /// List of packages or Flutter libraries used by the sample. third-party /// packages. final List<String> packages; /// Arbitrary tags to associate with this sample. final List<String> tags; /// Supported platforms. Values are either 'ios', 'android', 'desktop', and /// 'web' final List<String> platforms; /// The type of the sample. Supported values are either 'sample' or /// 'demo'. final String type; /// The date this sample was created. final DateTime? date; /// The Flutter channel this sample runs on. Either 'stable', 'dev' or /// 'master'. final String? channel; Sample({ required this.name, this.author = 'Flutter', required this.screenshots, required this.source, this.web, required this.description, this.difficulty = 'beginner', this.widgets = const [], this.packages = const [], this.tags = const [], this.platforms = const [], required this.type, this.date, this.channel, }); factory Sample.fromJson(Map<dynamic, dynamic> json) => _$SampleFromJson(json); Map<String, dynamic> toJson() => _$SampleToJson(this); String get thumbnail { var screenshotUrl = screenshots.first.url; var prefix = path.dirname(screenshotUrl); var filename = path.basenameWithoutExtension(screenshotUrl); return path.join(prefix, '${filename}_thumb.png'); } String get searchAttributes { var buf = StringBuffer(); buf.write(name.toLowerCase()); buf.write(' '); for (final tag in tags) { buf.write('tag:${tag.toLowerCase()} '); // Allow tags to be searched without the tag: prefix buf.write('${tag.toLowerCase()} '); } for (final platform in platforms) { buf.write('platform:$platform '); // Allow platforms to be searched without the tag: prefix buf.write('$platform '); } for (final widget in widgets) { buf.write('widget:$widget '); } for (final package in packages) { buf.write('package:$package '); } buf.write('type:$type '); return buf.toString().trim(); } String get filename { var nameWithoutChars = name.replaceAll(RegExp(r'[^A-Za-z0-9\-\_\ ]'), ''); var nameWithUnderscores = nameWithoutChars.replaceAll(' ', '_'); var snake = util.snakeCase(nameWithUnderscores); var s = snake.replaceAll('__', '_'); return s; } String get shortDescription { if (description.length < 64) { return description; } return '${description.substring(0, 64)}...'; } } /// A screenshot of a sample @JsonSerializable(anyMap: true, checked: true) class Screenshot { final String url; final String alt; Screenshot(this.url, this.alt); factory Screenshot.fromJson(Map<dynamic, dynamic> json) => _$ScreenshotFromJson(json); Map<String, dynamic> toJson() => _$ScreenshotToJson(this); }
samples/web/samples_index/lib/src/data.dart/0
{ "file_path": "samples/web/samples_index/lib/src/data.dart", "repo_id": "samples", "token_count": 1490 }
1,179
import 'dart:html'; import 'package:mdc_web/mdc_web.dart'; import 'package:samples_index/browser.dart'; /// The Material text input for searching late final MDCTextField searchBar; late final MDCChipSet chipSet; /// The current set of query parameters that determine how the cards are /// filtered. e.g. {'search': 'kittens', 'platform': 'ios'} final queryParams = <String, String>{}; const searchKey = 'search'; const typeKey = 'type'; const platformKey = 'platform'; void main() { // Initialize Material components MDCFloatingLabel(querySelector('.mdc-floating-label')!); searchBar = MDCTextField(querySelector('#search-bar')!); MDCRipple(querySelector('#clear-button')!); // Listen for hash changes window.onHashChange.listen((_) { queryParams.clear(); queryParams.addAll(parseHash(window.location.hash)); setSearchBarText(); setSelectedChips(); filterCards(); }); // Use a ripple effect on all cards querySelectorAll('.mdc-card__primary-action').forEach((el) => MDCRipple(el) // Navigate to the description page when tapped ..listen('click', (e) { window.location.href = el.attributes['href']!; })); // Filter cards on each keypress searchBar.listen('keydown', (e) async { await Future(() {}); handleSearch(); }); // Update the URL only when the user is done typing in the search bar searchBar.listen('change', (e) { queryParams[searchKey] = searchBar.value!; updateHash(); }); // Update the hash, cards, and text input when the clear button is pressed querySelector('#clear-button')!.onClick.listen((e) { queryParams.remove('search'); updateHash(); setSearchBarText(); filterCards(); }); // Initialize chips chipSet = MDCChipSet(querySelector('.mdc-chip-set')!); chipSet.listen('MDCChip:selection', (e) { // Get the query parameters for this chip var selectedChipIndex = chipSet.chips.indexWhere((chip) => chip.selected!); var chipParams = paramsForChip(selectedChipIndex); // Overwrite query parameters with new ones queryParams.remove(typeKey); queryParams.remove(platformKey); queryParams.addAll(chipParams); updateHash(); filterCards(); }); // Apply the search from the hash in the URL queryParams.addAll(parseHash(window.location.hash)); setSearchBarText(); setSelectedChips(); // Filter cards if a filter is being applied if (queryParams.isNotEmpty) { filterCards(); } } void setSearchBarText() { var search = queryParams[searchKey] ?? ''; searchBar.value = search; } void setSelectedChips() { var type = queryParams.containsKey(typeKey) ? queryParams[typeKey] : ''; if (type!.isNotEmpty) { if (type == 'sample') { chipSet.chips[1].selected = true; } } // Apply the platform from the hash in the URL var platform = queryParams.containsKey(platformKey) ? queryParams[platformKey] : ''; if (platform!.isNotEmpty) { if (platform == 'web') { chipSet.chips[2].selected = true; } } if (platform.isEmpty && type.isEmpty) { chipSet.chips[0].selected = true; } } void handleSearch() { var search = searchBar.value; queryParams[searchKey] = search!; filterCards(); } void updateHash() { if (queryParams.isEmpty) { _replaceHash(''); return; } _replaceHash(formatHash(queryParams)); } void _replaceHash(String hash) { var currentUri = Uri.parse(window.location.href); window.history .replaceState(null, '', currentUri.replace(fragment: hash).toString()); } void filterCards() { // The search query, e.g. 'kittens platform:web' var searchQuery = searchQueryFromParams(queryParams); // Filter out all elements with non-matching search-attrs var elements = querySelectorAll('[search-attrs]'); for (final element in elements) { var searchAttributes = element.attributes['search-attrs']; if (matchesQuery(searchQuery, searchAttributes!)) { element.hidden = false; } else { element.hidden = true; } } } Map<String, String> paramsForChip(int index) => switch (index) { 1 => {typeKey: 'sample'}, 2 => {platformKey: 'web'}, _ => {} };
samples/web/samples_index/web/main.dart/0
{ "file_path": "samples/web/samples_index/web/main.dart", "repo_id": "samples", "token_count": 1468 }
1,180
<!DOCTYPE html> <html> <head> <!-- If you are serving your web app in a path other than the root, change the href value below to reflect the base path you are serving from. The path provided below has to start and end with a slash "/" in order for it to work correctly. For more details: * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base This is a placeholder for base href that will be replaced by the value of the `--base-href` argument provided to `flutter build`. --> <base href="$FLUTTER_BASE_HREF"> <meta charset="UTF-8"> <meta content="IE=Edge" http-equiv="X-UA-Compatible"> <meta name="description" content="A new Flutter project."> <!-- iOS meta tags & icons --> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="apple-mobile-web-app-title" content="ng_companion"> <link rel="apple-touch-icon" href="icons/Icon-192.png"> <!-- Favicon --> <link rel="icon" type="image/png" href="favicon.png"/> <title>ng_companion</title> <link rel="manifest" href="manifest.json"> <script> // The value below is injected by flutter build, do not touch. var serviceWorkerVersion = null; </script> <!-- This script adds the flutter initialization JS code --> <script src="flutter.js" defer></script> </head> <body> <script> // Listen until Flutter tells us it's ready to rumble window.addEventListener('flutter-initialized', function (event) { const state = event.detail; window['_debugCounter'] = state; state.onClicksChanged(() => { console.log('New clicks value: ', state.getClicks()); }); }); window.addEventListener('load', function(ev) { // Download main.dart.js _flutter.loader.loadEntrypoint({ serviceWorker: { serviceWorkerVersion: serviceWorkerVersion, }, onEntrypointLoaded: async function(engineInitializer) { await engineInitializer.autoStart(); } }); }); </script> </body> </html>
samples/web_embedding/ng-flutter/flutter/web/index.html/0
{ "file_path": "samples/web_embedding/ng-flutter/flutter/web/index.html", "repo_id": "samples", "token_count": 748 }
1,181
{ "projects": { "default": "flutter-docs-prod", "devtools-staging": "flutter-website-dt-staging", "flutter-dev": "flutter-dev-230821", "staging-1": "flutter-io-staging-1", "staging-2": "flutter-io-staging-2", "sz": "sz-flutter", "sz2": "sz-flutter-2", "ft": "flutter-web-staging", "bt": "flt-test", "ats": "tony-flutter-site", "filiph": "flutter-website-filiph-staging" } }
website/.firebaserc/0
{ "file_path": "website/.firebaserc", "repo_id": "website", "token_count": 213 }
1,182
#!/usr/bin/make -f -include .env all: build clean .DEFAULT_GOAL := up .PHONY: all BUILD_COMMIT := $(shell git rev-parse --short HEAD) BUILD_CONFIGS ?= _config.yml BUILD_NAME = tmpbuild BUILD_TAG = "fltbuild:${BUILD_COMMIT}" # Build the production image and copy site build to local. # This will reset and also clean up after finished. # Usage: `make build` build: make clean DOCKER_BUILDKIT=1 docker build --rm --no-cache --target build \ --build-arg BUILD_CONFIGS=${BUILD_CONFIGS} -t ${BUILD_TAG} . docker run --rm -d --name ${BUILD_NAME} -t ${BUILD_TAG} docker cp ${BUILD_NAME}:/app/_site _site docker stop ${BUILD_NAME} docker rmi -f ${BUILD_TAG} # Clean all caches, and test/build files clean: rm -rf _site .jekyll* src/.jekyll* *.log tmp .dart_tool
website/Makefile/0
{ "file_path": "website/Makefile", "repo_id": "website", "token_count": 298 }
1,183
// ignore_for_file: unused_local_variable // #docregion ShakeCurve import 'dart:math'; // #enddocregion ShakeCurve import 'package:flutter/material.dart'; void main() => runApp(const LogoApp()); // #docregion diff class AnimatedLogo extends AnimatedWidget { const AnimatedLogo({super.key, required Animation<double> animation}) : super(listenable: animation); // Make the Tweens static because they don't change. static final _opacityTween = Tween<double>(begin: 0.1, end: 1); static final _sizeTween = Tween<double>(begin: 0, end: 300); @override Widget build(BuildContext context) { final animation = listenable as Animation<double>; return Center( child: Opacity( opacity: _opacityTween.evaluate(animation), child: Container( margin: const EdgeInsets.symmetric(vertical: 10), height: _sizeTween.evaluate(animation), width: _sizeTween.evaluate(animation), child: const FlutterLogo(), ), ), ); } } class LogoApp extends StatefulWidget { const LogoApp({super.key}); @override State<LogoApp> createState() => _LogoAppState(); } class _LogoAppState extends State<LogoApp> with SingleTickerProviderStateMixin { late Animation<double> animation; late AnimationController controller; @override void initState() { super.initState(); // #docregion AnimationController, tweens controller = AnimationController(duration: const Duration(seconds: 2), vsync: this); // #enddocregion AnimationController, tweens animation = CurvedAnimation(parent: controller, curve: Curves.easeIn) ..addStatusListener((status) { if (status == AnimationStatus.completed) { controller.reverse(); } else if (status == AnimationStatus.dismissed) { controller.forward(); } }); controller.forward(); } @override Widget build(BuildContext context) => AnimatedLogo(animation: animation); @override void dispose() { controller.dispose(); super.dispose(); } } // #enddocregion diff // Extra code used only in the tutorial explanations. It is not used by the app. class UsedInTutorialTextOnly extends _LogoAppState { UsedInTutorialTextOnly() { // ignore: prefer_typing_uninitialized_variables var animation, sizeAnimation, opacityAnimation, tween, colorTween; // #docregion CurvedAnimation animation = CurvedAnimation(parent: controller, curve: Curves.easeIn); // #enddocregion CurvedAnimation // #docregion tweens sizeAnimation = Tween<double>(begin: 0, end: 300).animate(controller); opacityAnimation = Tween<double>(begin: 0.1, end: 1).animate(controller); // #enddocregion tweens // #docregion tween tween = Tween<double>(begin: -200, end: 0); // #enddocregion tween // #docregion colorTween colorTween = ColorTween(begin: Colors.transparent, end: Colors.black54); // #enddocregion colorTween } void usedInTutorialOnly1() { // #docregion IntTween AnimationController controller = AnimationController( duration: const Duration(milliseconds: 500), vsync: this); Animation<int> alpha = IntTween(begin: 0, end: 255).animate(controller); // #enddocregion IntTween } void usedInTutorialOnly2() { // #docregion IntTween-curve AnimationController controller = AnimationController( duration: const Duration(milliseconds: 500), vsync: this); final Animation<double> curve = CurvedAnimation(parent: controller, curve: Curves.easeOut); Animation<int> alpha = IntTween(begin: 0, end: 255).animate(curve); // #enddocregion IntTween-curve } } // #docregion ShakeCurve class ShakeCurve extends Curve { @override double transform(double t) => sin(t * pi * 2); } // #enddocregion ShakeCurve
website/examples/animation/animate5/lib/main.dart/0
{ "file_path": "website/examples/animation/animate5/lib/main.dart", "repo_id": "website", "token_count": 1319 }
1,184
name: implicit description: A new Flutter project. publish_to: none version: 1.0.0+1 environment: sdk: ^3.3.0 dependencies: flutter: sdk: flutter dev_dependencies: example_utils: path: ../../example_utils flutter: uses-material-design: true
website/examples/animation/implicit/pubspec.yaml/0
{ "file_path": "website/examples/animation/implicit/pubspec.yaml", "repo_id": "website", "token_count": 104 }
1,185
import 'package:flutter/material.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { const appTitle = 'Orientation Demo'; return const MaterialApp( title: appTitle, home: OrientationList( title: appTitle, ), ); } } class OrientationList extends StatelessWidget { final String title; const OrientationList({super.key, required this.title}); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: Text(title)), body: OrientationBuilder( builder: (context, orientation) { return GridView.count( // Create a grid with 2 columns in portrait mode, or 3 columns in // landscape mode. crossAxisCount: orientation == Orientation.portrait ? 2 : 3, // Generate 100 widgets that display their index in the List. children: List.generate(100, (index) { return Center( child: Text( 'Item $index', style: Theme.of(context).textTheme.displayLarge, ), ); }), ); }, ), ); } }
website/examples/cookbook/design/orientation/lib/main.dart/0
{ "file_path": "website/examples/cookbook/design/orientation/lib/main.dart", "repo_id": "website", "token_count": 559 }
1,186
import 'package:flutter/material.dart'; @immutable class FilterSelector extends StatefulWidget { const FilterSelector({ super.key, required this.filters, required this.onFilterChanged, this.padding = const EdgeInsets.symmetric(vertical: 24), }); final List<Color> filters; final void Function(Color selectedColor) onFilterChanged; final EdgeInsets padding; @override State<FilterSelector> createState() => _FilterSelectorState(); } // #docregion FilterSelectorState2 class _FilterSelectorState extends State<FilterSelector> { static const _filtersPerScreen = 5; static const _viewportFractionPerItem = 1.0 / _filtersPerScreen; @override Widget build(BuildContext context) { return LayoutBuilder( builder: (context, constraints) { final itemSize = constraints.maxWidth * _viewportFractionPerItem; return Stack( alignment: Alignment.bottomCenter, children: [ _buildShadowGradient(itemSize), _buildSelectionRing(itemSize), ], ); }, ); } Widget _buildShadowGradient(double itemSize) { return SizedBox( height: itemSize * 2 + widget.padding.vertical, child: const DecoratedBox( decoration: BoxDecoration( gradient: LinearGradient( begin: Alignment.topCenter, end: Alignment.bottomCenter, colors: [ Colors.transparent, Colors.black, ], ), ), child: SizedBox.expand(), ), ); } Widget _buildSelectionRing(double itemSize) { return IgnorePointer( child: Padding( padding: widget.padding, child: SizedBox( width: itemSize, height: itemSize, child: const DecoratedBox( decoration: BoxDecoration( shape: BoxShape.circle, border: Border.fromBorderSide( BorderSide(width: 6, color: Colors.white), ), ), ), ), ), ); } } // #enddocregion FilterSelectorState2
website/examples/cookbook/effects/photo_filter_carousel/lib/excerpt2.dart/0
{ "file_path": "website/examples/cookbook/effects/photo_filter_carousel/lib/excerpt2.dart", "repo_id": "website", "token_count": 909 }
1,187
// ignore_for_file: unused_field import 'package:flutter/material.dart'; class Menu extends StatefulWidget { const Menu({super.key}); @override State<Menu> createState() => _MenuState(); } // #docregion delays class _MenuState extends State<Menu> with SingleTickerProviderStateMixin { static const _initialDelayTime = Duration(milliseconds: 50); static const _itemSlideTime = Duration(milliseconds: 250); static const _staggerTime = Duration(milliseconds: 50); static const _buttonDelayTime = Duration(milliseconds: 150); static const _buttonTime = Duration(milliseconds: 500); final _animationDuration = _initialDelayTime + (_staggerTime * _menuTitles.length) + _buttonDelayTime + _buttonTime; // #enddocregion delays static const _menuTitles = [ 'Declarative Style', 'Premade Widgets', 'Stateful Hot Reload', 'Native Performance', 'Great Community', ]; @override Widget build(BuildContext context) { return Container(); } }
website/examples/cookbook/effects/staggered_menu_animation/lib/animation_delays.dart/0
{ "file_path": "website/examples/cookbook/effects/staggered_menu_animation/lib/animation_delays.dart", "repo_id": "website", "token_count": 327 }
1,188
import 'dart:async'; import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:flutter/foundation.dart'; import 'package:logging/logging.dart'; import '../game_internals/board_state.dart'; import '../game_internals/playing_area.dart'; import '../game_internals/playing_card.dart'; class FirestoreController { static final _log = Logger('FirestoreController'); final FirebaseFirestore instance; final BoardState boardState; /// For now, there is only one match. But in order to be ready /// for match-making, put it in a Firestore collection called matches. late final _matchRef = instance.collection('matches').doc('match_1'); late final _areaOneRef = _matchRef .collection('areas') .doc('area_one') .withConverter<List<PlayingCard>>( fromFirestore: _cardsFromFirestore, toFirestore: _cardsToFirestore); late final _areaTwoRef = _matchRef .collection('areas') .doc('area_two') .withConverter<List<PlayingCard>>( fromFirestore: _cardsFromFirestore, toFirestore: _cardsToFirestore); StreamSubscription? _areaOneFirestoreSubscription; StreamSubscription? _areaTwoFirestoreSubscription; StreamSubscription? _areaOneLocalSubscription; StreamSubscription? _areaTwoLocalSubscription; FirestoreController({required this.instance, required this.boardState}) { // Subscribe to the remote changes (from Firestore). _areaOneFirestoreSubscription = _areaOneRef.snapshots().listen((snapshot) { _updateLocalFromFirestore(boardState.areaOne, snapshot); }); _areaTwoFirestoreSubscription = _areaTwoRef.snapshots().listen((snapshot) { _updateLocalFromFirestore(boardState.areaTwo, snapshot); }); // Subscribe to the local changes in game state. _areaOneLocalSubscription = boardState.areaOne.playerChanges.listen((_) { _updateFirestoreFromLocalAreaOne(); }); _areaTwoLocalSubscription = boardState.areaTwo.playerChanges.listen((_) { _updateFirestoreFromLocalAreaTwo(); }); _log.fine('Initialized'); } void dispose() { _areaOneFirestoreSubscription?.cancel(); _areaTwoFirestoreSubscription?.cancel(); _areaOneLocalSubscription?.cancel(); _areaTwoLocalSubscription?.cancel(); _log.fine('Disposed'); } /// Takes the raw JSON snapshot coming from Firestore and attempts to /// convert it into a list of [PlayingCard]s. List<PlayingCard> _cardsFromFirestore( DocumentSnapshot<Map<String, dynamic>> snapshot, SnapshotOptions? options, ) { final data = snapshot.data()?['cards'] as List?; if (data == null) { _log.info('No data found on Firestore, returning empty list'); return []; } final list = List.castFrom<Object?, Map<String, Object?>>(data); try { return list.map((raw) => PlayingCard.fromJson(raw)).toList(); } catch (e) { throw FirebaseControllerException( 'Failed to parse data from Firestore: $e'); } } /// Takes a list of [PlayingCard]s and converts it into a JSON object /// that can be saved into Firestore. Map<String, Object?> _cardsToFirestore( List<PlayingCard> cards, SetOptions? options, ) { return {'cards': cards.map((c) => c.toJson()).toList()}; } /// Updates Firestore with the local state of [area]. Future<void> _updateFirestoreFromLocal( PlayingArea area, DocumentReference<List<PlayingCard>> ref) async { try { _log.fine('Updating Firestore with local data (${area.cards}) ...'); await ref.set(area.cards); _log.fine('... done updating.'); } catch (e) { throw FirebaseControllerException( 'Failed to update Firestore with local data (${area.cards}): $e'); } } /// Sends the local state of `boardState.areaOne` to Firestore. void _updateFirestoreFromLocalAreaOne() { _updateFirestoreFromLocal(boardState.areaOne, _areaOneRef); } /// Sends the local state of `boardState.areaTwo` to Firestore. void _updateFirestoreFromLocalAreaTwo() { _updateFirestoreFromLocal(boardState.areaTwo, _areaTwoRef); } /// Updates the local state of [area] with the data from Firestore. void _updateLocalFromFirestore( PlayingArea area, DocumentSnapshot<List<PlayingCard>> snapshot) { _log.fine('Received new data from Firestore (${snapshot.data()})'); final cards = snapshot.data() ?? []; if (listEquals(cards, area.cards)) { _log.fine('No change'); } else { _log.fine('Updating local data with Firestore data ($cards)'); area.replaceWith(cards); } } } class FirebaseControllerException implements Exception { final String message; FirebaseControllerException(this.message); @override String toString() => 'FirebaseControllerException: $message'; }
website/examples/cookbook/games/firestore_multiplayer/lib/multiplayer/firestore_controller.dart/0
{ "file_path": "website/examples/cookbook/games/firestore_multiplayer/lib/multiplayer/firestore_controller.dart", "repo_id": "website", "token_count": 1621 }
1,189
import 'package:cached_network_image/cached_network_image.dart'; import 'package:flutter/material.dart'; class SimpleImage extends StatelessWidget { const SimpleImage({super.key}); @override Widget build(BuildContext context) { // #docregion SimpleCachedImage return CachedNetworkImage( imageUrl: 'https://picsum.photos/250?image=9', ); // #enddocregion SimpleCachedImage } }
website/examples/cookbook/images/cached_images/lib/simple.dart/0
{ "file_path": "website/examples/cookbook/images/cached_images/lib/simple.dart", "repo_id": "website", "token_count": 140 }
1,190
import 'package:flutter/material.dart'; void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { const title = 'Floating App Bar'; return MaterialApp( title: title, home: Scaffold( // No appbar provided to the Scaffold, only a body with a // CustomScrollView. // #docregion SliverAppBar body: CustomScrollView( slivers: [ // Add the app bar to the CustomScrollView. const SliverAppBar( // Provide a standard title. title: Text(title), // Allows the user to reveal the app bar if they begin scrolling // back up the list of items. floating: true, // Display a placeholder widget to visualize the shrinking size. flexibleSpace: Placeholder(), // Make the initial height of the SliverAppBar larger than normal. expandedHeight: 200, ), ], ), // #enddocregion SliverAppBar ), ); } }
website/examples/cookbook/lists/floating_app_bar/lib/step2.dart/0
{ "file_path": "website/examples/cookbook/lists/floating_app_bar/lib/step2.dart", "repo_id": "website", "token_count": 494 }
1,191
// ignore_for_file: prefer_const_constructors, prefer_const_literals_to_create_immutables import 'package:flutter/material.dart'; import 'main.dart'; void layoutBuilder() { // #docregion builder LayoutBuilder(builder: (context, constraints) { return SingleChildScrollView( child: Placeholder(), ); }); // #enddocregion builder } void constrainedBox() { // #docregion constrainedBox LayoutBuilder(builder: (context, constraints) { return SingleChildScrollView( child: ConstrainedBox( constraints: BoxConstraints(minHeight: constraints.maxHeight), child: Placeholder(), ), ); }); // #enddocregion constrainedBox } void column() { // #docregion column LayoutBuilder(builder: (context, constraints) { return SingleChildScrollView( child: ConstrainedBox( constraints: BoxConstraints(minHeight: constraints.maxHeight), child: Column( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ ItemWidget(text: 'Item 1'), ItemWidget(text: 'Item 2'), ItemWidget(text: 'Item 3'), ], ), ), ); }); // #enddocregion column } void intrinsic() { // #docregion intrinsic LayoutBuilder(builder: (context, constraints) { return SingleChildScrollView( child: ConstrainedBox( constraints: BoxConstraints(minHeight: constraints.maxHeight), child: IntrinsicHeight( child: Column( children: [ ItemWidget(text: 'Item 1'), Spacer(), ItemWidget(text: 'Item 2'), Expanded( child: ItemWidget(text: 'Item 3'), ), ], ), ), ), ); }); // #enddocregion intrinsic }
website/examples/cookbook/lists/spaced_items/lib/spaced_list.dart/0
{ "file_path": "website/examples/cookbook/lists/spaced_items/lib/spaced_list.dart", "repo_id": "website", "token_count": 758 }
1,192
import 'dart:async'; import 'dart:convert'; import 'dart:io'; import 'package:http/http.dart' as http; Future<Album> fetchAlbum() async { // #docregion get final response = await http.get( Uri.parse('https://jsonplaceholder.typicode.com/albums/1'), // Send authorization headers to the backend. headers: { HttpHeaders.authorizationHeader: 'Basic your_api_token_here', }, ); // #enddocregion get final responseJson = jsonDecode(response.body) as Map<String, dynamic>; return Album.fromJson(responseJson); } class Album { final int userId; final int id; final String title; const Album({ required this.userId, required this.id, required this.title, }); factory Album.fromJson(Map<String, dynamic> json) { return switch (json) { { 'userId': int userId, 'id': int id, 'title': String title, } => Album( userId: userId, id: id, title: title, ), _ => throw const FormatException('Failed to load album.'), }; } }
website/examples/cookbook/networking/authenticated_requests/lib/main.dart/0
{ "file_path": "website/examples/cookbook/networking/authenticated_requests/lib/main.dart", "repo_id": "website", "token_count": 435 }
1,193
// #docregion convert-import import 'dart:convert'; // #enddocregion convert-import import 'package:http/http.dart' as http; // #docregion CreateAlbum Future<http.Response> createAlbum(String title) { return http.post( Uri.parse('https://jsonplaceholder.typicode.com/albums'), headers: <String, String>{ 'Content-Type': 'application/json; charset=UTF-8', }, body: jsonEncode(<String, String>{ 'title': title, }), ); } // #enddocregion CreateAlbum
website/examples/cookbook/networking/send_data/lib/create_album.dart/0
{ "file_path": "website/examples/cookbook/networking/send_data/lib/create_album.dart", "repo_id": "website", "token_count": 183 }
1,194
import 'dart:async'; import 'package:camera/camera.dart'; import 'package:flutter/material.dart'; Future<void> main() async { // Ensure that plugin services are initialized so that `availableCameras()` // can be called before `runApp()` WidgetsFlutterBinding.ensureInitialized(); // Obtain a list of the available cameras on the device. final cameras = await availableCameras(); // Get a specific camera from the list of available cameras. final firstCamera = cameras.first; runApp( MaterialApp( theme: ThemeData.dark(), home: TakePictureScreen( // Pass the appropriate camera to the TakePictureScreen widget. camera: firstCamera, ), ), ); } // #docregion controller // A screen that allows users to take a picture using a given camera. class TakePictureScreen extends StatefulWidget { const TakePictureScreen({ super.key, required this.camera, }); final CameraDescription camera; @override TakePictureScreenState createState() => TakePictureScreenState(); } class TakePictureScreenState extends State<TakePictureScreen> { late CameraController _controller; // ignore_for_file: unused_field late Future<void> _initializeControllerFuture; @override void initState() { super.initState(); // To display the current output from the Camera, // create a CameraController. _controller = CameraController( // Get a specific camera from the list of available cameras. widget.camera, // Define the resolution to use. ResolutionPreset.medium, ); // Next, initialize the controller. This returns a Future. _initializeControllerFuture = _controller.initialize(); } @override void dispose() { // Dispose of the controller when the widget is disposed. _controller.dispose(); super.dispose(); } @override Widget build(BuildContext context) { // Fill this out in the next steps. return Container(); } } // #enddocregion controller
website/examples/cookbook/plugins/picture_using_camera/lib/main_step3.dart/0
{ "file_path": "website/examples/cookbook/plugins/picture_using_camera/lib/main_step3.dart", "repo_id": "website", "token_count": 608 }
1,195
name: scrolling description: A new Flutter project. environment: sdk: ^3.3.0 dependencies: flutter: sdk: flutter path_provider: ^2.1.2 path: ^1.9.0 flutter_test: sdk: flutter dev_dependencies: example_utils: path: ../../../../example_utils integration_test: sdk: flutter flutter_driver: sdk: flutter flutter: uses-material-design: true
website/examples/cookbook/testing/integration/profiling/pubspec.yaml/0
{ "file_path": "website/examples/cookbook/testing/integration/profiling/pubspec.yaml", "repo_id": "website", "token_count": 158 }
1,196
name: obfuscate description: A new Flutter project. publish_to: none version: 1.0.0+1 environment: sdk: ^3.3.0 dependencies: flutter: sdk: flutter cupertino_icons: ^1.0.6 flutter_test: sdk: flutter dev_dependencies: example_utils: path: ../../example_utils integration_test: sdk: flutter flutter: uses-material-design: true
website/examples/deployment/obfuscate/pubspec.yaml/0
{ "file_path": "website/examples/deployment/obfuscate/pubspec.yaml", "repo_id": "website", "token_count": 150 }
1,197
import 'package:json_annotation/json_annotation.dart'; /// This allows the `User` class to access private members in /// the generated file. The value for this is *.g.dart, where /// the star denotes the source file name. part 'user.g.dart'; /// An annotation for the code generator to know that this class needs the /// JSON serialization logic to be generated. @JsonSerializable() class User { User(this.name, this.email); String name; String email; /// A necessary factory constructor for creating a new User instance /// from a map. Pass the map to the generated `_$UserFromJson()` constructor. /// The constructor is named after the source class, in this case, User. factory User.fromJson(Map<String, dynamic> json) => _$UserFromJson(json); /// `toJson` is the convention for a class to declare support for serialization /// to JSON. The implementation simply calls the private, generated /// helper method `_$UserToJson`. Map<String, dynamic> toJson() => _$UserToJson(this); }
website/examples/development/data-and-backend/json/lib/serializable/user.dart/0
{ "file_path": "website/examples/development/data-and-backend/json/lib/serializable/user.dart", "repo_id": "website", "token_count": 283 }
1,198
// ignore_for_file: import_of_legacy_library_into_null_safe // #docregion UrlLauncher import 'package:flutter/material.dart'; import 'package:path/path.dart' as p; import 'package:url_launcher/url_launcher.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return const MaterialApp( home: DemoPage(), ); } } class DemoPage extends StatelessWidget { const DemoPage({super.key}); void launchURL() { launchUrl(p.toUri('https://flutter.dev')); } @override Widget build(BuildContext context) { return Scaffold( body: Center( child: ElevatedButton( onPressed: launchURL, child: const Text('Show Flutter homepage'), ), ), ); } } // #enddocregion UrlLauncher
website/examples/development/plugin_api_migration/lib/url_launcher.dart/0
{ "file_path": "website/examples/development/plugin_api_migration/lib/url_launcher.dart", "repo_id": "website", "token_count": 334 }
1,199
// #docregion StatefulWidget import 'package:flutter/material.dart'; void main() { runApp(const SampleApp()); } class SampleApp extends StatelessWidget { const SampleApp({super.key}); // This widget is the root of your application. @override Widget build(BuildContext context) { return MaterialApp( title: 'Sample App', theme: ThemeData( colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), ), home: const SampleAppPage(), ); } } class SampleAppPage extends StatefulWidget { const SampleAppPage({super.key}); @override State<SampleAppPage> createState() => _SampleAppPageState(); } class _SampleAppPageState extends State<SampleAppPage> { // Default placeholder text. String textToShow = 'I Like Flutter'; void _updateText() { setState(() { // Update the text. textToShow = 'Flutter is Awesome!'; }); } @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: const Text('Sample App'), ), body: Center(child: Text(textToShow)), floatingActionButton: FloatingActionButton( onPressed: _updateText, tooltip: 'Update Text', child: const Icon(Icons.update), ), ); } } // #enddocregion StatefulWidget class MyWidget extends StatelessWidget { const MyWidget({super.key}); @override Widget build(BuildContext context) { // #docregion TextWidget return const Text( 'I like Flutter!', style: TextStyle(fontWeight: FontWeight.bold), ); // #enddocregion TextWidget } }
website/examples/get-started/flutter-for/android_devs/lib/text_widget.dart/0
{ "file_path": "website/examples/get-started/flutter-for/android_devs/lib/text_widget.dart", "repo_id": "website", "token_count": 585 }
1,200
import 'package:flutter/material.dart'; class MyWidget extends StatelessWidget { const MyWidget({super.key}); @override Widget build(BuildContext context) { // #docregion InputHint return const Center( child: TextField( decoration: InputDecoration(hintText: 'This is a hint'), ), ); // #enddocregion InputHint } } class MyForm extends StatefulWidget { const MyForm({super.key}); @override State<MyForm> createState() => _MyFormState(); } // #docregion MyFormState class _MyFormState extends State<MyForm> { // Create a text controller and use it to retrieve the current value. // of the TextField! final myController = TextEditingController(); @override void dispose() { // Clean up the controller when disposing of the Widget. myController.dispose(); super.dispose(); } @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: const Text('Retrieve Text Input')), body: Padding( padding: const EdgeInsets.all(16), child: TextField(controller: myController), ), floatingActionButton: FloatingActionButton( // When the user presses the button, show an alert dialog with the // text the user has typed into our text field. onPressed: () { showDialog( context: context, builder: (context) { return AlertDialog( // Retrieve the text the user has typed in using our // TextEditingController. content: Text(myController.text), ); }, ); }, tooltip: 'Show me the value!', child: const Icon(Icons.text_fields), ), ); } } // #enddocregion MyFormState
website/examples/get-started/flutter-for/ios_devs/lib/form.dart/0
{ "file_path": "website/examples/get-started/flutter-for/ios_devs/lib/form.dart", "repo_id": "website", "token_count": 705 }
1,201
import 'package:flutter/cupertino.dart'; import 'package:url_launcher/url_launcher.dart'; void main() { runApp( const App(), ); } class App extends StatelessWidget { const App({ super.key, }); @override Widget build(BuildContext context) { return const CupertinoApp( theme: CupertinoThemeData(brightness: Brightness.dark), debugShowCheckedModeBanner: false, home: HomePage(), ); } } class HomePage extends StatelessWidget { const HomePage({super.key}); @override Widget build(BuildContext context) { return CupertinoPageScaffold( child: SafeArea( child: Center( child: // #docregion OpenAppExample CupertinoButton( onPressed: () async { await launchUrl( Uri.parse('https://google.com'), ); }, child: const Text( 'Open website', ), ), // #enddocregion OpenAppExample ), ), ); } }
website/examples/get-started/flutter-for/ios_devs/lib/openapp.dart/0
{ "file_path": "website/examples/get-started/flutter-for/ios_devs/lib/openapp.dart", "repo_id": "website", "token_count": 485 }
1,202
name: ios_devs description: A new Flutter project. publish_to: none version: 1.0.0+1 environment: sdk: ^3.3.0 dependencies: flutter: sdk: flutter flutter_localizations: sdk: flutter cupertino_icons: ^1.0.6 http: ^1.2.0 shared_preferences: ^2.2.2 url_launcher: ^6.2.4 dev_dependencies: example_utils: path: ../../../example_utils flutter_test: sdk: flutter flutter: uses-material-design: true
website/examples/get-started/flutter-for/ios_devs/pubspec.yaml/0
{ "file_path": "website/examples/get-started/flutter-for/ios_devs/pubspec.yaml", "repo_id": "website", "token_count": 193 }
1,203
import 'package:flutter/material.dart'; class MyForm extends StatelessWidget { const MyForm({super.key}); @override Widget build(BuildContext context) { return const Center( // #docregion HintText child: TextField( decoration: InputDecoration(hintText: 'This is a hint'), ), // #enddocregion HintText ); } }
website/examples/get-started/flutter-for/xamarin_devs/lib/input_decoration.dart/0
{ "file_path": "website/examples/get-started/flutter-for/xamarin_devs/lib/input_decoration.dart", "repo_id": "website", "token_count": 136 }
1,204
name: xamarin_devs description: A new Flutter project. publish_to: none version: 1.0.0+1 environment: sdk: ^3.3.0 dependencies: flutter: sdk: flutter flutter_localizations: sdk: flutter cupertino_icons: ^1.0.6 http: ^1.2.0 dev_dependencies: example_utils: path: ../../../example_utils flutter_test: sdk: flutter flutter: uses-material-design: true
website/examples/get-started/flutter-for/xamarin_devs/pubspec.yaml/0
{ "file_path": "website/examples/get-started/flutter-for/xamarin_devs/pubspec.yaml", "repo_id": "website", "token_count": 167 }
1,205
name: integration_test_migration description: A new Flutter project. publish_to: none version: 1.0.0+1 environment: sdk: ^3.3.0 dependencies: flutter: sdk: flutter dev_dependencies: example_utils: path: ../example_utils integration_test: sdk: flutter flutter_test: sdk: flutter flutter_driver: sdk: flutter test: ^1.24.9 flutter: uses-material-design: true assets: - assets/plants.json
website/examples/integration_test_migration/pubspec.yaml/0
{ "file_path": "website/examples/integration_test_migration/pubspec.yaml", "repo_id": "website", "token_count": 180 }
1,206
import 'package:flutter/material.dart'; import 'box.dart' deferred as box; class SomeWidget extends StatefulWidget { const SomeWidget({super.key}); @override State<SomeWidget> createState() => _SomeWidgetState(); } class _SomeWidgetState extends State<SomeWidget> { late Future<void> _libraryFuture; @override void initState() { super.initState(); _libraryFuture = box.loadLibrary(); } @override Widget build(BuildContext context) { return FutureBuilder<void>( future: _libraryFuture, builder: (context, snapshot) { if (snapshot.connectionState == ConnectionState.done) { if (snapshot.hasError) { return Text('Error: ${snapshot.error}'); } return box.DeferredBox(); } return const CircularProgressIndicator(); }, ); } }
website/examples/perf/deferred_components/lib/use_deferred_box.dart/0
{ "file_path": "website/examples/perf/deferred_components/lib/use_deferred_box.dart", "repo_id": "website", "token_count": 317 }
1,207
import 'dart:collection'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; import 'common.dart'; CartModel somehowGetMyCartModel(BuildContext context) { return Provider.of<CartModel>(context); } // #docregion model class CartModel extends ChangeNotifier { /// Internal, private state of the cart. final List<Item> _items = []; /// An unmodifiable view of the items in the cart. UnmodifiableListView<Item> get items => UnmodifiableListView(_items); /// The current total price of all items (assuming all items cost $42). int get totalPrice => _items.length * 42; /// Adds [item] to cart. This and [removeAll] are the only ways to modify the /// cart from the outside. void add(Item item) { _items.add(item); // This call tells the widgets that are listening to this model to rebuild. notifyListeners(); } /// Removes all items from the cart. void removeAll() { _items.clear(); // This call tells the widgets that are listening to this model to rebuild. notifyListeners(); } } // #enddocregion model class Item { final String name; Item(this.name); @override String toString() => name; } class MyCartTotalWidget extends StatelessWidget { const MyCartTotalWidget({super.key}); @override Widget build(BuildContext context) { // #docregion descendant return Consumer<CartModel>( builder: (context, cart, child) { return Text('Total price: ${cart.totalPrice}'); }, ); // #enddocregion descendant } } class MyCartUsingWidget extends StatelessWidget { const MyCartUsingWidget({super.key}); @override // #docregion build // GOOD Widget build(BuildContext context) { var cartModel = somehowGetMyCartModel(context); return SomeWidget( // Just construct the UI once, using the current state of the cart. // #enddocregion build Text('Cart: ${cartModel.items}'), // #docregion build ); } // #enddocregion build } class MyCatalog extends StatelessWidget { const MyCatalog({super.key}); @override Widget build(BuildContext context) { return Column( children: [ MyCatalogItem(Item('A')), MyCatalogItem(Item('B')), MyCatalogItem(Item('C')), ], ); } } class MyCatalogItem extends StatelessWidget { const MyCatalogItem(this.item, {super.key}); final Item item; @override Widget build(BuildContext context) { return Row( children: [ Text(item.name), TextButton( onPressed: () => myTapHandler(context), child: Text('Add ${item.name}'), ), ], ); } // #docregion myTapHandler // GOOD void myTapHandler(BuildContext context) { var cartModel = somehowGetMyCartModel(context); cartModel.add(item); } // #enddocregion myTapHandler } class MyHomepage extends StatelessWidget { const MyHomepage({super.key}); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(), body: const Column( children: [ MyCatalog(), MyCartUsingWidget(), MyCartTotalWidget(), ], ), ); } }
website/examples/state_mgmt/simple/lib/src/provider.dart/0
{ "file_path": "website/examples/state_mgmt/simple/lib/src/provider.dart", "repo_id": "website", "token_count": 1132 }
1,208
import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; void main() { runApp( const MaterialApp( home: AppHome(), ), ); } class AppHome extends StatelessWidget { const AppHome({super.key}); @override Widget build(BuildContext context) { return Material( child: Center( child: Semantics( button: true, enabled: true, label: 'Clickable text here!', child: GestureDetector( onTap: () { debugDumpSemanticsTree(); if (kDebugMode) { print('Clicked!'); } }, child: const Text('Click Me!', style: TextStyle(fontSize: 56))), ), ), ); } }
website/examples/testing/code_debugging/lib/dump_semantic_tree.dart/0
{ "file_path": "website/examples/testing/code_debugging/lib/dump_semantic_tree.dart", "repo_id": "website", "token_count": 391 }
1,209
import 'package:flutter/material.dart'; class ErrorHandler { Future<void> initialize() async { // initialize error handler } void onError(Object error, Object stack) { // do something when there's an error } void onErrorDetails(FlutterErrorDetails details) { // do something with FlutterErrorDetails } } ErrorHandler myErrorsHandler = ErrorHandler();
website/examples/testing/errors/lib/error_handler.dart/0
{ "file_path": "website/examples/testing/errors/lib/error_handler.dart", "repo_id": "website", "token_count": 111 }
1,210
import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; /// A text field that also has buttons to select all the text and copy the /// selected text to the clipboard. class CopyableTextField extends StatefulWidget { const CopyableTextField({super.key, required this.title}); final String title; @override State<CopyableTextField> createState() => _CopyableTextFieldState(); } class _CopyableTextFieldState extends State<CopyableTextField> { late final TextEditingController controller = TextEditingController(); @override void dispose() { controller.dispose(); super.dispose(); } @override Widget build(BuildContext context) { return Actions( dispatcher: LoggingActionDispatcher(), actions: <Type, Action<Intent>>{ ClearIntent: ClearAction(controller), CopyIntent: CopyAction(controller), SelectAllIntent: SelectAllAction(controller), }, child: Builder(builder: (context) { return Scaffold( body: Center( child: Row( children: <Widget>[ const Spacer(), Expanded( child: TextField(controller: controller), ), IconButton( icon: const Icon(Icons.copy), onPressed: Actions.handler<CopyIntent>(context, const CopyIntent()), ), IconButton( icon: const Icon(Icons.select_all), onPressed: Actions.handler<SelectAllIntent>( context, const SelectAllIntent()), ), const Spacer(), ], ), ), ); }), ); } } /// A ShortcutManager that logs all keys that it handles. class LoggingShortcutManager extends ShortcutManager { @override KeyEventResult handleKeypress(BuildContext context, KeyEvent event) { final KeyEventResult result = super.handleKeypress(context, event); if (result == KeyEventResult.handled) { print('Handled shortcut $event in $context'); } return result; } } /// An ActionDispatcher that logs all the actions that it invokes. class LoggingActionDispatcher extends ActionDispatcher { @override Object? invokeAction( covariant Action<Intent> action, covariant Intent intent, [ BuildContext? context, ]) { print('Action invoked: $action($intent) from $context'); super.invokeAction(action, intent, context); return null; } } /// An intent that is bound to ClearAction in order to clear its /// TextEditingController. class ClearIntent extends Intent { const ClearIntent(); } /// An action that is bound to ClearIntent that clears its /// TextEditingController. class ClearAction extends Action<ClearIntent> { ClearAction(this.controller); final TextEditingController controller; @override Object? invoke(covariant ClearIntent intent) { controller.clear(); return null; } } /// An intent that is bound to CopyAction to copy from its /// TextEditingController. class CopyIntent extends Intent { const CopyIntent(); } /// An action that is bound to CopyIntent that copies the text in its /// TextEditingController to the clipboard. class CopyAction extends Action<CopyIntent> { CopyAction(this.controller); final TextEditingController controller; @override Object? invoke(covariant CopyIntent intent) { final String selectedString = controller.text.substring( controller.selection.baseOffset, controller.selection.extentOffset, ); Clipboard.setData(ClipboardData(text: selectedString)); return null; } } /// An intent that is bound to SelectAllAction to select all the text in its /// controller. class SelectAllIntent extends Intent { const SelectAllIntent(); } /// An action that is bound to SelectAllAction that selects all text in its /// TextEditingController. class SelectAllAction extends Action<SelectAllIntent> { SelectAllAction(this.controller); final TextEditingController controller; @override Object? invoke(covariant SelectAllIntent intent) { controller.selection = controller.selection.copyWith( baseOffset: 0, extentOffset: controller.text.length, affinity: controller.selection.affinity, ); return null; } } /// The top level application class. /// /// Shortcuts defined here are in effect for the whole app, /// although different widgets may fulfill them differently. class MyApp extends StatelessWidget { const MyApp({super.key}); static const String title = 'Shortcuts and Actions Demo'; @override Widget build(BuildContext context) { return MaterialApp( title: title, theme: ThemeData( colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), ), home: Shortcuts( shortcuts: <LogicalKeySet, Intent>{ LogicalKeySet(LogicalKeyboardKey.escape): const ClearIntent(), LogicalKeySet(LogicalKeyboardKey.control, LogicalKeyboardKey.keyC): const CopyIntent(), LogicalKeySet(LogicalKeyboardKey.control, LogicalKeyboardKey.keyA): const SelectAllIntent(), }, child: const CopyableTextField(title: title), ), ); } } void main() => runApp(const MyApp());
website/examples/ui/advanced/actions_and_shortcuts/lib/copyable_text.dart/0
{ "file_path": "website/examples/ui/advanced/actions_and_shortcuts/lib/copyable_text.dart", "repo_id": "website", "token_count": 1931 }
1,211