From cbf28d317ca90d114dd48ab69045be4fa12de9f0 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Mon, 3 Jun 2024 04:18:52 +0200
Subject: [PATCH] Changes by GitHub action (#30)
* Update generated classes after commit e6cd70b
* Update configuration.json
---------
Co-authored-by: masesdevelopers <94312179+masesdevelopers@users.noreply.github.com>
---
src/configuration.json | 4 +
.../hardware/SensorEventListener2.java | 43 ++
...nnection_MediaScannerConnectionClient.java | 39 ++
.../Generated/Android/App/Activity.cs | 4 +-
.../Netdroid/Generated/Android/App/Dialog.cs | 4 +-
.../Android/App/FragmentContainer.cs | 2 +-
.../Generated/Android/Content/Intent.cs | 46 +-
.../Android/Hardware/AllPackageClasses.cs | 43 +-
.../Android/Hardware/SensorEventCallback.cs | 4 +
.../Android/Hardware/SensorEventListener2.cs | 128 ++++-
.../Health/Connect/HealthConnectManager.cs | 22 +-
.../Android/Icu/Number/FormattedNumber.cs | 2 +-
.../Icu/Number/FormattedNumberRange.cs | 2 +-
.../Android/Icu/Text/DateIntervalFormat.cs | 2 +-
.../Android/Icu/Text/FormattedValue.cs | 2 +-
.../Android/Icu/Text/ListFormatter.cs | 2 +-
.../Icu/Text/RelativeDateTimeFormatter.cs | 2 +-
.../Generated/Android/Icu/Text/UnicodeSet.cs | 14 +-
.../Android/Media/AllPackageClasses.cs | 41 +-
.../Android/Media/MediaScannerConnection.cs | 93 +++-
.../Generated/Android/Net/Wifi/WifiInfo.cs | 9 +
.../Netdroid/Generated/Android/Os/Bundle.cs | 70 +--
.../Netdroid/Generated/Android/Os/Parcel.cs | 392 ++++++++--------
.../Android/Service/Dreams/DreamService.cs | 4 +-
.../Android/Telephony/SignalStrength.cs | 2 +-
.../Netdroid/Generated/Android/View/View.cs | 6 +-
.../Netdroid/Generated/Android/View/Window.cs | 4 +-
.../Generated/Android/Widget/AdapterView.cs | 8 +
.../Android/Widget/AutoCompleteTextView.cs | 4 +-
.../Generated/Java/Io/AllPackageClasses.cs | 46 ++
src/net/Netdroid/Generated/Java/Io/Console.cs | 8 +
.../Generated/Java/Io/FileDescriptor.cs | 2 +-
.../Netdroid/Generated/Java/Io/InputStream.cs | 13 +-
.../Netdroid/Generated/Java/Io/PrintStream.cs | 8 +
.../Generated/Java/Io/RandomAccessFile.cs | 4 +-
.../Acl/Permission.cs => Io/Serial.cs} | 10 +-
.../Generated/Java/Lang/AllPackageClasses.cs | 47 ++
.../Java/Lang/Annotation/ElementType.cs | 6 +
src/net/Netdroid/Generated/Java/Lang/Byte.cs | 2 +-
.../Generated/Java/Lang/CharSequence.cs | 8 +
.../Netdroid/Generated/Java/Lang/Character.cs | 258 ++++++++++
src/net/Netdroid/Generated/Java/Lang/Class.cs | 144 +++++-
.../Netdroid/Generated/Java/Lang/Double.cs | 20 +-
src/net/Netdroid/Generated/Java/Lang/Float.cs | 20 +-
.../Netdroid/Generated/Java/Lang/Integer.cs | 20 +-
.../Java/Lang/Invoke/AllPackageClasses.cs | 281 ++++++++++-
.../Java/Lang/Invoke/MethodHandle.cs | 2 +-
.../Java/Lang/Invoke/MethodHandles.cs | 166 ++++++-
.../Generated/Java/Lang/Invoke/MethodType.cs | 113 +++--
.../Java/Lang/Invoke/TypeDescriptor.cs | 440 ++++++++++++++++++
.../Generated/Java/Lang/Invoke/VarHandle.cs | 74 ++-
src/net/Netdroid/Generated/Java/Lang/Long.cs | 20 +-
src/net/Netdroid/Generated/Java/Lang/Math.cs | 18 +
.../Netdroid/Generated/Java/Lang/Package.cs | 8 +-
.../Netdroid/Generated/Java/Lang/Process.cs | 51 ++
.../NotOwnerException.cs => Lang/Record.cs} | 6 +-
.../Generated/Java/Lang/Ref/Reference.cs | 20 +
.../Java/Lang/Reflect/AccessibleObject.cs | 8 +-
.../Java/Lang/Reflect/AllPackageClasses.cs | 44 ++
.../Java/Lang/Reflect/AnnotatedElement.cs | 8 +-
.../Generated/Java/Lang/Reflect/Executable.cs | 2 +-
.../Java/Lang/Reflect/InvocationHandler.cs | 12 +
.../Generated/Java/Lang/Reflect/Parameter.cs | 8 +-
.../Java/Lang/Reflect/RecordComponent.cs | 132 ++++++
.../Netdroid/Generated/Java/Lang/Runtime.cs | 18 -
.../Java/Lang/Runtime/AllPackageClasses.cs | 75 +++
.../Java/Lang/Runtime/ObjectMethods.cs | 73 +++
src/net/Netdroid/Generated/Java/Lang/Short.cs | 2 +-
.../Generated/Java/Lang/StrictMath.cs | 136 ++++--
.../Netdroid/Generated/Java/Lang/String.cs | 64 +++
.../Netdroid/Generated/Java/Lang/System.cs | 2 +
.../Netdroid/Generated/Java/Lang/Thread.cs | 43 +-
.../Generated/Java/Lang/ThreadGroup.cs | 9 +-
.../Generated/Java/Net/DatagramSocket.cs | 181 +++----
.../Generated/Java/Net/MulticastSocket.cs | 26 +-
.../Generated/Java/Net/SecureCacheResponse.cs | 8 +
.../Generated/Java/Net/ServerSocket.cs | 9 +-
src/net/Netdroid/Generated/Java/Net/Socket.cs | 15 +-
.../Java/Net/StandardProtocolFamily.cs | 6 +
src/net/Netdroid/Generated/Java/Nio/Buffer.cs | 10 +
.../Netdroid/Generated/Java/Nio/ByteBuffer.cs | 56 +++
.../Java/Nio/Channels/ServerSocketChannel.cs | 10 +
.../Java/Nio/Channels/SocketChannel.cs | 10 +
.../Java/Nio/Channels/Spi/SelectorProvider.cs | 20 +
.../Netdroid/Generated/Java/Nio/CharBuffer.cs | 64 +++
.../Generated/Java/Nio/DoubleBuffer.cs | 56 +++
.../Generated/Java/Nio/File/FileStore.cs | 2 +-
.../Generated/Java/Nio/File/FileSystems.cs | 33 ++
.../Netdroid/Generated/Java/Nio/File/Files.cs | 11 +
.../Java/Nio/File/SecureDirectoryStream.cs | 4 +-
.../Generated/Java/Nio/FloatBuffer.cs | 56 +++
.../Netdroid/Generated/Java/Nio/IntBuffer.cs | 56 +++
.../Netdroid/Generated/Java/Nio/LongBuffer.cs | 56 +++
.../Generated/Java/Nio/MappedByteBuffer.cs | 10 +
.../Generated/Java/Nio/ShortBuffer.cs | 56 +++
.../Java/Security/AccessController.cs | 84 ++--
.../Generated/Java/Security/Acl/Acl.cs | 143 ------
.../Generated/Java/Security/Acl/AclEntry.cs | 143 ------
.../Java/Security/Acl/AclNotFoundException.cs | 58 ---
.../Java/Security/Acl/AllPackageClasses.cs | 320 -------------
.../Generated/Java/Security/Acl/Group.cs | 112 -----
.../Generated/Java/Security/Acl/Owner.cs | 108 -----
.../Java/Security/AlgorithmParameters.cs | 2 +-
.../Java/Security/AllPackageClasses.cs | 7 +
.../Generated/Java/Security/Cert/X509CRL.cs | 1 +
.../Java/Security/Cert/X509CRLSelector.cs | 1 +
.../Java/Security/Cert/X509CertSelector.cs | 4 +
.../Java/Security/Cert/X509Certificate.cs | 2 +
.../Security/Interfaces/AllPackageClasses.cs | 138 ++++++
.../Java/Security/Interfaces/DSAPrivateKey.cs | 1 +
.../Java/Security/Interfaces/DSAPublicKey.cs | 1 +
.../Java/Security/Interfaces/ECPrivateKey.cs | 1 +
.../Java/Security/Interfaces/ECPublicKey.cs | 1 +
.../EdECKey.cs} | 32 +-
.../Security/Interfaces/EdECPrivateKey.cs | 92 ++++
.../Java/Security/Interfaces/EdECPublicKey.cs | 92 ++++
.../Interfaces/RSAMultiPrimePrivateCrtKey.cs | 1 +
.../Security/Interfaces/RSAPrivateCrtKey.cs | 1 +
.../Java/Security/Interfaces/RSAPrivateKey.cs | 1 +
.../Java/Security/Interfaces/RSAPublicKey.cs | 1 +
.../Netdroid/Generated/Java/Security/Key.cs | 1 +
.../Generated/Java/Security/PrivateKey.cs | 1 +
.../Generated/Java/Security/Provider.cs | 2 +-
.../Generated/Java/Security/PublicKey.cs | 1 +
.../Java/Security/Spec/AllPackageClasses.cs | 132 ++++++
.../Generated/Java/Security/Spec/EdECPoint.cs | 83 ++++
.../Java/Security/Spec/EdECPrivateKeySpec.cs | 83 ++++
.../Java/Security/Spec/EdECPublicKeySpec.cs | 83 ++++
.../Java/Security/Spec/MGF1ParameterSpec.cs | 24 +
.../Java/Security/Spec/NamedParameterSpec.cs | 12 +
src/net/Netdroid/Generated/Java/Sql/SQLXML.cs | 16 +-
.../Java/Text/DecimalFormatSymbols.cs | 16 +
.../Generated/Java/Text/NumberFormat.cs | 30 ++
.../Generated/Java/Time/AllPackageClasses.cs | 48 +-
.../Generated/Java/Time/Chrono/Chronology.cs | 6 +-
.../Generated/Java/Time/Chrono/JapaneseEra.cs | 6 +
.../Time/Format/DateTimeFormatterBuilder.cs | 9 +
.../Generated/Java/Time/InstantSource.cs | 138 ++++++
.../Generated/Java/Util/AllPackageClasses.cs | 46 +-
.../Netdroid/Generated/Java/Util/Arrays.cs | 92 ++--
.../Generated/Java/Util/Collections.cs | 62 +--
.../Java/Util/Concurrent/CompletableFuture.cs | 94 ++++
.../Java/Util/Concurrent/CompletionStage.cs | 99 ++++
.../Java/Util/Concurrent/Executors.cs | 3 +
.../Java/Util/Concurrent/ForkJoinTask.cs | 4 +-
.../Java/Util/Concurrent/Locks/LockSupport.cs | 8 +
.../Java/Util/Concurrent/ThreadLocalRandom.cs | 48 --
.../Netdroid/Generated/Java/Util/EnumSet.cs | 24 +-
.../Netdroid/Generated/Java/Util/HexFormat.cs | 367 +++++++++++++++
.../Java/Util/Jar/AllPackageClasses.cs | 141 ------
.../Generated/Java/Util/Jar/Pack200.cs | 336 -------------
.../Generated/Java/Util/Logging/Handler.cs | 10 +-
.../Generated/Java/Util/Logging/LogManager.cs | 1 +
.../Generated/Java/Util/Logging/LogRecord.cs | 19 +
.../Java/Util/Logging/MemoryHandler.cs | 4 +-
src/net/Netdroid/Generated/Java/Util/Map.cs | 20 +
.../Netdroid/Generated/Java/Util/Objects.cs | 32 ++
.../Netdroid/Generated/Java/Util/Optional.cs | 4 +-
.../Generated/Java/Util/OptionalDouble.cs | 2 +-
.../Generated/Java/Util/OptionalInt.cs | 2 +-
.../Generated/Java/Util/OptionalLong.cs | 2 +-
.../Netdroid/Generated/Java/Util/Random.cs | 6 +-
.../Generated/Java/Util/SplittableRandom.cs | 81 ----
.../Generated/Java/Util/Stream/Collectors.cs | 19 +
.../Java/Util/Stream/DoubleStream.cs | 9 +
.../Generated/Java/Util/Stream/IntStream.cs | 9 +
.../Generated/Java/Util/Stream/Stream.cs | 97 ++++
.../Javax/Crypto/Interfaces/DHPrivateKey.cs | 1 +
.../Javax/Crypto/Interfaces/DHPublicKey.cs | 1 +
.../Javax/Crypto/Interfaces/PBEKey.cs | 1 +
.../Generated/Javax/Crypto/SecretKey.cs | 1 +
.../Generated/Javax/Crypto/Spec/PBEKeySpec.cs | 4 +-
.../Javax/Net/Ssl/HttpsURLConnection.cs | 8 +
.../Generated/Javax/Net/Ssl/SSLContext.cs | 20 +-
.../Generated/Javax/Net/Ssl/SSLSession.cs | 20 +-
.../Javax/Security/Auth/AllPackageClasses.cs | 1 +
.../Generated/Javax/Security/Auth/Subject.cs | 5 +-
.../Xml/Parsers/DocumentBuilderFactory.cs | 26 ++
.../Javax/Xml/Parsers/SAXParserFactory.cs | 26 ++
.../Generated/Org/Xml/Sax/ContentHandler.cs | 11 +
180 files changed, 5719 insertions(+), 2289 deletions(-)
create mode 100644 src/jvm/netdroid/src/main/java/org/mases/netdroid/generated/android/hardware/SensorEventListener2.java
create mode 100644 src/jvm/netdroid/src/main/java/org/mases/netdroid/generated/android/media/MediaScannerConnection_MediaScannerConnectionClient.java
rename src/net/Netdroid/Generated/Java/{Security/Acl/Permission.cs => Io/Serial.cs} (88%)
create mode 100644 src/net/Netdroid/Generated/Java/Lang/Invoke/TypeDescriptor.cs
rename src/net/Netdroid/Generated/Java/{Security/Acl/NotOwnerException.cs => Lang/Record.cs} (92%)
create mode 100644 src/net/Netdroid/Generated/Java/Lang/Reflect/RecordComponent.cs
create mode 100644 src/net/Netdroid/Generated/Java/Lang/Runtime/AllPackageClasses.cs
create mode 100644 src/net/Netdroid/Generated/Java/Lang/Runtime/ObjectMethods.cs
delete mode 100644 src/net/Netdroid/Generated/Java/Security/Acl/Acl.cs
delete mode 100644 src/net/Netdroid/Generated/Java/Security/Acl/AclEntry.cs
delete mode 100644 src/net/Netdroid/Generated/Java/Security/Acl/AclNotFoundException.cs
delete mode 100644 src/net/Netdroid/Generated/Java/Security/Acl/AllPackageClasses.cs
delete mode 100644 src/net/Netdroid/Generated/Java/Security/Acl/Group.cs
delete mode 100644 src/net/Netdroid/Generated/Java/Security/Acl/Owner.cs
rename src/net/Netdroid/Generated/Java/Security/{Acl/LastOwnerException.cs => Interfaces/EdECKey.cs} (56%)
create mode 100644 src/net/Netdroid/Generated/Java/Security/Interfaces/EdECPrivateKey.cs
create mode 100644 src/net/Netdroid/Generated/Java/Security/Interfaces/EdECPublicKey.cs
create mode 100644 src/net/Netdroid/Generated/Java/Security/Spec/EdECPoint.cs
create mode 100644 src/net/Netdroid/Generated/Java/Security/Spec/EdECPrivateKeySpec.cs
create mode 100644 src/net/Netdroid/Generated/Java/Security/Spec/EdECPublicKeySpec.cs
create mode 100644 src/net/Netdroid/Generated/Java/Time/InstantSource.cs
create mode 100644 src/net/Netdroid/Generated/Java/Util/HexFormat.cs
delete mode 100644 src/net/Netdroid/Generated/Java/Util/Jar/Pack200.cs
diff --git a/src/configuration.json b/src/configuration.json
index ad2841295..ccf9424da 100644
--- a/src/configuration.json
+++ b/src/configuration.json
@@ -86,6 +86,7 @@
"java.lang.Runtime$Version",
"java.lang.System$Logger",
"java.lang.Thread$UncaughtExceptionHandler",
+ "java.lang.invoke.VarHandle$VarHandleDesc",
"java.lang.reflect.AnnotatedType",
"java.security.SecureRandomParameters",
"java.sql.ConnectionBuilder",
@@ -93,12 +94,15 @@
"java.sql.ShardingKey",
"java.sql.ShardingKeyBuilder",
"java.sql.SQLType",
+ "java.text.NumberFormat$Style",
"java.util.Comparator",
"java.util.EventListener",
"java.util.random.RandomGenerator",
"java.util.random.RandomGenerator$SplittableGenerator",
"java.util.stream.DoubleStream$Builder",
+ "java.util.stream.DoubleStream$DoubleMapMultiConsumer",
"java.util.stream.IntStream$Builder",
+ "java.util.stream.IntStream$IntMapMultiConsumer",
"java.util.stream.LongStream$Builder",
"java.util.stream.LongStream$LongMapMultiConsumer",
"java.util.stream.Stream$Builder",
diff --git a/src/jvm/netdroid/src/main/java/org/mases/netdroid/generated/android/hardware/SensorEventListener2.java b/src/jvm/netdroid/src/main/java/org/mases/netdroid/generated/android/hardware/SensorEventListener2.java
new file mode 100644
index 000000000..2d31d6272
--- /dev/null
+++ b/src/jvm/netdroid/src/main/java/org/mases/netdroid/generated/android/hardware/SensorEventListener2.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2024 MASES s.r.l.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Refer to LICENSE for more information.
+ */
+
+/*
+* This file is generated by MASES.JNetReflector (ver. 2.5.1.0)
+*/
+
+package org.mases.netdroid.generated.android.hardware;
+
+public final class SensorEventListener2 extends org.mases.jcobridge.JCListener implements android.hardware.SensorEventListener2 {
+ public SensorEventListener2(String key) throws org.mases.jcobridge.JCNativeException {
+ super(key);
+ }
+
+ //@Override
+ public void onAccuracyChanged(android.hardware.Sensor arg0, int arg1) {
+ raiseEvent("onAccuracyChanged", arg0, arg1);
+ }
+ //@Override
+ public void onSensorChanged(android.hardware.SensorEvent arg0) {
+ raiseEvent("onSensorChanged", arg0);
+ }
+ //@Override
+ public void onFlushCompleted(android.hardware.Sensor arg0) {
+ raiseEvent("onFlushCompleted", arg0);
+ }
+
+}
\ No newline at end of file
diff --git a/src/jvm/netdroid/src/main/java/org/mases/netdroid/generated/android/media/MediaScannerConnection_MediaScannerConnectionClient.java b/src/jvm/netdroid/src/main/java/org/mases/netdroid/generated/android/media/MediaScannerConnection_MediaScannerConnectionClient.java
new file mode 100644
index 000000000..d748a8075
--- /dev/null
+++ b/src/jvm/netdroid/src/main/java/org/mases/netdroid/generated/android/media/MediaScannerConnection_MediaScannerConnectionClient.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2024 MASES s.r.l.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Refer to LICENSE for more information.
+ */
+
+/*
+* This file is generated by MASES.JNetReflector (ver. 2.5.1.0)
+*/
+
+package org.mases.netdroid.generated.android.media;
+
+public final class MediaScannerConnection_MediaScannerConnectionClient extends org.mases.jcobridge.JCListener implements android.media.MediaScannerConnection.MediaScannerConnectionClient {
+ public MediaScannerConnection_MediaScannerConnectionClient(String key) throws org.mases.jcobridge.JCNativeException {
+ super(key);
+ }
+
+ //@Override
+ public void onMediaScannerConnected() {
+ raiseEvent("onMediaScannerConnected");
+ }
+ //@Override
+ public void onScanCompleted(java.lang.String arg0, android.net.Uri arg1) {
+ raiseEvent("onScanCompleted", arg0, arg1);
+ }
+
+}
\ No newline at end of file
diff --git a/src/net/Netdroid/Generated/Android/App/Activity.cs b/src/net/Netdroid/Generated/Android/App/Activity.cs
index 410fff94b..8aae0eb2b 100644
--- a/src/net/Netdroid/Generated/Android/App/Activity.cs
+++ b/src/net/Netdroid/Generated/Android/App/Activity.cs
@@ -129,7 +129,7 @@ public partial class Activity : Android.Content.IComponentCallbacks2
///
public T FindViewById(int arg0) where T : Android.View.View
{
- return IExecute("findViewById", arg0);
+ return IExecuteWithSignature("findViewById", "(I)Landroid/view/View;", arg0);
}
///
///
@@ -891,7 +891,7 @@ public bool StartNextMatchingActivity(Android.Content.Intent arg0)
///
public T RequireViewById(int arg0) where T : Android.View.View
{
- return IExecute("requireViewById", arg0);
+ return IExecuteWithSignature("requireViewById", "(I)Landroid/view/View;", arg0);
}
///
///
diff --git a/src/net/Netdroid/Generated/Android/App/Dialog.cs b/src/net/Netdroid/Generated/Android/App/Dialog.cs
index 878ad914e..d276c06a3 100644
--- a/src/net/Netdroid/Generated/Android/App/Dialog.cs
+++ b/src/net/Netdroid/Generated/Android/App/Dialog.cs
@@ -74,7 +74,7 @@ public Dialog(Android.Content.Context arg0)
///
public T FindViewById(int arg0) where T : Android.View.View
{
- return IExecute("findViewById", arg0);
+ return IExecuteWithSignature("findViewById", "(I)Landroid/view/View;", arg0);
}
///
///
@@ -394,7 +394,7 @@ public bool OnTrackballEvent(Android.View.MotionEvent arg0)
///
public T RequireViewById(int arg0) where T : Android.View.View
{
- return IExecute("requireViewById", arg0);
+ return IExecuteWithSignature("requireViewById", "(I)Landroid/view/View;", arg0);
}
///
///
diff --git a/src/net/Netdroid/Generated/Android/App/FragmentContainer.cs b/src/net/Netdroid/Generated/Android/App/FragmentContainer.cs
index 464a3cd0a..c3b57c9f4 100644
--- a/src/net/Netdroid/Generated/Android/App/FragmentContainer.cs
+++ b/src/net/Netdroid/Generated/Android/App/FragmentContainer.cs
@@ -54,7 +54,7 @@ public partial class FragmentContainer
[global::System.Obsolete()]
public T OnFindViewById(int arg0) where T : Android.View.View
{
- return IExecute("onFindViewById", arg0);
+ return IExecuteWithSignature("onFindViewById", "(I)Landroid/view/View;", arg0);
}
///
///
diff --git a/src/net/Netdroid/Generated/Android/Content/Intent.cs b/src/net/Netdroid/Generated/Android/Content/Intent.cs
index 6a2a4ca74..757495739 100644
--- a/src/net/Netdroid/Generated/Android/Content/Intent.cs
+++ b/src/net/Netdroid/Generated/Android/Content/Intent.cs
@@ -2212,59 +2212,59 @@ public static Java.Lang.String NormalizeMimeType(Java.Lang.String arg0)
#region Instance methods
///
- ///
+ ///
///
///
- ///
- ///
+ ///
///
- public Java.Util.ArrayList GetParcelableArrayListExtra(Java.Lang.String arg0, Java.Lang.Class arg1)
+ [global::System.Obsolete()]
+ public Java.Util.ArrayList GetParcelableArrayListExtra(Java.Lang.String arg0) where T : Android.Os.IParcelable, new()
{
- return IExecute>("getParcelableArrayListExtra", arg0, arg1);
+ return IExecuteWithSignature>("getParcelableArrayListExtra", "(Ljava/lang/String;)Ljava/util/ArrayList;", arg0);
}
///
- ///
+ ///
///
///
///
- ///
+ ///
[global::System.Obsolete()]
- public Java.Util.ArrayList GetParcelableArrayListExtra(Java.Lang.String arg0) where T : Android.Os.IParcelable, new()
+ public T GetParcelableExtra(Java.Lang.String arg0) where T : Android.Os.IParcelable, new()
{
- return IExecute>("getParcelableArrayListExtra", arg0);
+ return IExecuteWithSignature("getParcelableExtra", "(Ljava/lang/String;)Landroid/os/Parcelable;", arg0);
}
///
- ///
+ ///
///
///
///
- ///
+ ///
///
- public T GetParcelableExtra(Java.Lang.String arg0, Java.Lang.Class arg1)
+ public T GetSerializableExtra(Java.Lang.String arg0, Java.Lang.Class arg1) where T : Java.Io.ISerializable, new()
{
- return IExecute("getParcelableExtra", arg0, arg1);
+ return IExecute("getSerializableExtra", arg0, arg1);
}
///
- ///
+ ///
///
///
- ///
- ///
- [global::System.Obsolete()]
- public T GetParcelableExtra(Java.Lang.String arg0) where T : Android.Os.IParcelable, new()
+ ///
+ ///
+ ///
+ public Java.Util.ArrayList GetParcelableArrayListExtra(Java.Lang.String arg0, Java.Lang.Class arg1)
{
- return IExecute("getParcelableExtra", arg0);
+ return IExecute>("getParcelableArrayListExtra", arg0, arg1);
}
///
- ///
+ ///
///
///
///
- ///
+ ///
///
- public T GetSerializableExtra(Java.Lang.String arg0, Java.Lang.Class arg1) where T : Java.Io.ISerializable, new()
+ public T GetParcelableExtra(Java.Lang.String arg0, Java.Lang.Class arg1)
{
- return IExecute("getSerializableExtra", arg0, arg1);
+ return IExecute("getParcelableExtra", arg0, arg1);
}
///
///
diff --git a/src/net/Netdroid/Generated/Android/Hardware/AllPackageClasses.cs b/src/net/Netdroid/Generated/Android/Hardware/AllPackageClasses.cs
index 104f00114..e9e0223c8 100644
--- a/src/net/Netdroid/Generated/Android/Hardware/AllPackageClasses.cs
+++ b/src/net/Netdroid/Generated/Android/Hardware/AllPackageClasses.cs
@@ -1156,7 +1156,7 @@ public SensorEvent(params object[] args) : base(args) { }
///
///
///
- public partial class SensorEventCallback : Android.Hardware.SensorEventListener2
+ public partial class SensorEventCallback : MASES.JCOBridge.C2JBridge.JVMBridgeBase
{
const string _bridgeClassName = "android.hardware.SensorEventCallback";
///
@@ -1267,24 +1267,46 @@ protected override void InitializeHandlers() { }
///
///
///
- public partial class SensorEventListener2 : Android.Hardware.SensorEventListener
+ public partial class SensorEventListener2 : MASES.JCOBridge.C2JBridge.JVMBridgeListener
{
- const string _bridgeClassName = "android.hardware.SensorEventListener2";
///
/// Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
///
- [global::System.Obsolete("SensorEventListener2 class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
- public SensorEventListener2() { }
+ public SensorEventListener2() { InitializeHandlers(); }
+
+ const string _bridgeClassName = "org.mases.netdroid.generated.android.hardware.SensorEventListener2";
+ private static readonly IJavaType LocalBridgeClazz = ClazzOf(_bridgeClassName);
+
///
- /// Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
+ ///
+ ///
+ public override string BridgeClassName => _bridgeClassName;
+
+
+ // TODO: complete the class
+
+ }
+ #endregion
+
+ #region SensorEventListener2Direct
+ ///
+ /// Direct override of or its generic type if there is one
+ ///
+ public partial class SensorEventListener2Direct : SensorEventListener2
+ {
+ ///
+ ///
///
- [global::System.Obsolete("SensorEventListener2 class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
- public SensorEventListener2(params object[] args) : base(args) { }
+ public override bool AutoInit => false;
+ ///
+ protected override void InitializeHandlers() { }
+
+ const string _bridgeClassName = "android.hardware.SensorEventListener2";
private static readonly IJavaType LocalBridgeClazz = ClazzOf(_bridgeClassName);
///
- ///
+ ///
///
public override string BridgeClassName => _bridgeClassName;
///
@@ -1303,9 +1325,6 @@ public SensorEventListener2(params object[] args) : base(args) { }
///
///
public override bool IsBridgeStatic => false;
-
- // TODO: complete the class
-
}
#endregion
diff --git a/src/net/Netdroid/Generated/Android/Hardware/SensorEventCallback.cs b/src/net/Netdroid/Generated/Android/Hardware/SensorEventCallback.cs
index 115b4ea75..2e563cc4d 100644
--- a/src/net/Netdroid/Generated/Android/Hardware/SensorEventCallback.cs
+++ b/src/net/Netdroid/Generated/Android/Hardware/SensorEventCallback.cs
@@ -33,6 +33,10 @@ public partial class SensorEventCallback
#endregion
#region Class/Interface conversion operators
+ ///
+ /// Converter from to
+ ///
+ public static implicit operator Android.Hardware.SensorEventListener2(Android.Hardware.SensorEventCallback t) => t.Cast();
#endregion
diff --git a/src/net/Netdroid/Generated/Android/Hardware/SensorEventListener2.cs b/src/net/Netdroid/Generated/Android/Hardware/SensorEventListener2.cs
index fd3ca9440..5ec2ef0ab 100644
--- a/src/net/Netdroid/Generated/Android/Hardware/SensorEventListener2.cs
+++ b/src/net/Netdroid/Generated/Android/Hardware/SensorEventListener2.cs
@@ -27,9 +27,9 @@ namespace Android.Hardware
{
#region ISensorEventListener2
///
- /// .NET interface for TO BE DEFINED FROM USER
+ /// .NET interface for org.mases.netdroid.generated.android.hardware.SensorEventListener2 implementing
///
- public partial interface ISensorEventListener2 : Android.Hardware.ISensorEventListener
+ public partial interface ISensorEventListener2
{
#region Instance methods
@@ -64,10 +64,132 @@ public partial class SensorEventListener2 : Android.Hardware.ISensorEventListene
#region Instance methods
///
+ /// Handlers initializer for
+ ///
+ protected virtual void InitializeHandlers()
+ {
+ AddEventHandler("onAccuracyChanged", new global::System.EventHandler>>(OnAccuracyChangedEventHandler));
+ AddEventHandler("onSensorChanged", new global::System.EventHandler>>(OnSensorChangedEventHandler));
+ AddEventHandler("onFlushCompleted", new global::System.EventHandler>>(OnFlushCompletedEventHandler));
+
+ }
+
+ ///
+ /// Handler for
+ ///
+ /// If has a value it takes precedence over corresponding class method
+ public global::System.Action OnOnAccuracyChanged { get; set; } = null;
+
+ void OnAccuracyChangedEventHandler(object sender, CLRListenerEventArgs> data)
+ {
+ var methodToExecute = (OnOnAccuracyChanged != null) ? OnOnAccuracyChanged : OnAccuracyChanged;
+ methodToExecute.Invoke(data.EventData.TypedEventData, data.EventData.GetAt(0));
+ }
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ public virtual void OnAccuracyChanged(Android.Hardware.Sensor arg0, int arg1)
+ {
+
+ }
+
+ ///
+ /// Handler for
+ ///
+ /// If has a value it takes precedence over corresponding class method
+ public global::System.Action OnOnSensorChanged { get; set; } = null;
+
+ void OnSensorChangedEventHandler(object sender, CLRListenerEventArgs> data)
+ {
+ var methodToExecute = (OnOnSensorChanged != null) ? OnOnSensorChanged : OnSensorChanged;
+ methodToExecute.Invoke(data.EventData.TypedEventData);
+ }
+
+ ///
+ ///
+ ///
+ ///
+ public virtual void OnSensorChanged(Android.Hardware.SensorEvent arg0)
+ {
+
+ }
+
+ ///
+ /// Handler for
+ ///
+ /// If has a value it takes precedence over corresponding class method
+ public global::System.Action OnOnFlushCompleted { get; set; } = null;
+
+ void OnFlushCompletedEventHandler(object sender, CLRListenerEventArgs> data)
+ {
+ var methodToExecute = (OnOnFlushCompleted != null) ? OnOnFlushCompleted : OnFlushCompleted;
+ methodToExecute.Invoke(data.EventData.TypedEventData);
+ }
+
+ ///
+ ///
+ ///
+ ///
+ public virtual void OnFlushCompleted(Android.Hardware.Sensor arg0)
+ {
+
+ }
+
+ #endregion
+
+ #region Nested classes
+
+ #endregion
+
+ // TODO: complete the class
+ }
+ #endregion
+
+ #region SensorEventListener2Direct
+ public partial class SensorEventListener2Direct : Android.Hardware.ISensorEventListener2
+ {
+ #region Constructors
+
+ #endregion
+
+ #region Class/Interface conversion operators
+
+ #endregion
+
+ #region Fields
+
+ #endregion
+
+ #region Static methods
+
+ #endregion
+
+ #region Instance methods
+ ///
+ ///
+ ///
+ ///
+ ///
+ public override void OnAccuracyChanged(Android.Hardware.Sensor arg0, int arg1)
+ {
+ IExecute("onAccuracyChanged", arg0, arg1);
+ }
+ ///
+ ///
+ ///
+ ///
+ public override void OnSensorChanged(Android.Hardware.SensorEvent arg0)
+ {
+ IExecute("onSensorChanged", arg0);
+ }
+ ///
///
///
///
- public void OnFlushCompleted(Android.Hardware.Sensor arg0)
+ public override void OnFlushCompleted(Android.Hardware.Sensor arg0)
{
IExecuteWithSignature("onFlushCompleted", "(Landroid/hardware/Sensor;)V", arg0);
}
diff --git a/src/net/Netdroid/Generated/Android/Health/Connect/HealthConnectManager.cs b/src/net/Netdroid/Generated/Android/Health/Connect/HealthConnectManager.cs
index cb748c6fb..fcc0fecd1 100644
--- a/src/net/Netdroid/Generated/Android/Health/Connect/HealthConnectManager.cs
+++ b/src/net/Netdroid/Generated/Android/Health/Connect/HealthConnectManager.cs
@@ -76,6 +76,17 @@ public partial class HealthConnectManager
#region Instance methods
///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public void ReadRecords(Android.Health.Connect.ReadRecordsRequest arg0, Java.Util.Concurrent.Executor arg1, Android.Os.OutcomeReceiver, Android.Health.Connect.HealthConnectException> arg2) where T : Android.Health.Connect.Datatypes.Record
+ {
+ IExecute("readRecords", arg0, arg1, arg2);
+ }
+ ///
///
///
///
@@ -111,17 +122,6 @@ public void AggregateGroupByPeriod(Android.Health.Connect.AggregateRecordsReq
IExecute("aggregateGroupByPeriod", arg0, arg1, arg2, arg3);
}
///
- ///
- ///
- ///
- ///
- ///
- ///
- public void ReadRecords(Android.Health.Connect.ReadRecordsRequest arg0, Java.Util.Concurrent.Executor arg1, Android.Os.OutcomeReceiver, Android.Health.Connect.HealthConnectException> arg2) where T : Android.Health.Connect.Datatypes.Record
- {
- IExecute("readRecords", arg0, arg1, arg2);
- }
- ///
///
///
///
diff --git a/src/net/Netdroid/Generated/Android/Icu/Number/FormattedNumber.cs b/src/net/Netdroid/Generated/Android/Icu/Number/FormattedNumber.cs
index 39604e744..531630291 100644
--- a/src/net/Netdroid/Generated/Android/Icu/Number/FormattedNumber.cs
+++ b/src/net/Netdroid/Generated/Android/Icu/Number/FormattedNumber.cs
@@ -53,7 +53,7 @@ public partial class FormattedNumber
///
public A AppendTo(A arg0) where A : Java.Lang.IAppendable, new()
{
- return IExecute("appendTo", arg0);
+ return IExecuteWithSignature("appendTo", "(Ljava/lang/Appendable;)Ljava/lang/Appendable;", arg0);
}
///
///
diff --git a/src/net/Netdroid/Generated/Android/Icu/Number/FormattedNumberRange.cs b/src/net/Netdroid/Generated/Android/Icu/Number/FormattedNumberRange.cs
index bd6e0f1ac..7d1bd5cb5 100644
--- a/src/net/Netdroid/Generated/Android/Icu/Number/FormattedNumberRange.cs
+++ b/src/net/Netdroid/Generated/Android/Icu/Number/FormattedNumberRange.cs
@@ -53,7 +53,7 @@ public partial class FormattedNumberRange
///
public A AppendTo(A arg0) where A : Java.Lang.IAppendable, new()
{
- return IExecute("appendTo", arg0);
+ return IExecuteWithSignature("appendTo", "(Ljava/lang/Appendable;)Ljava/lang/Appendable;", arg0);
}
///
///
diff --git a/src/net/Netdroid/Generated/Android/Icu/Text/DateIntervalFormat.cs b/src/net/Netdroid/Generated/Android/Icu/Text/DateIntervalFormat.cs
index c6759e773..b524ea0c9 100644
--- a/src/net/Netdroid/Generated/Android/Icu/Text/DateIntervalFormat.cs
+++ b/src/net/Netdroid/Generated/Android/Icu/Text/DateIntervalFormat.cs
@@ -237,7 +237,7 @@ public partial class FormattedDateInterval
///
public A AppendTo(A arg0) where A : Java.Lang.IAppendable, new()
{
- return IExecute("appendTo", arg0);
+ return IExecuteWithSignature("appendTo", "(Ljava/lang/Appendable;)Ljava/lang/Appendable;", arg0);
}
///
///
diff --git a/src/net/Netdroid/Generated/Android/Icu/Text/FormattedValue.cs b/src/net/Netdroid/Generated/Android/Icu/Text/FormattedValue.cs
index e0427d874..8b72b401d 100644
--- a/src/net/Netdroid/Generated/Android/Icu/Text/FormattedValue.cs
+++ b/src/net/Netdroid/Generated/Android/Icu/Text/FormattedValue.cs
@@ -71,7 +71,7 @@ public partial class FormattedValue : Android.Icu.Text.IFormattedValue
///
public A AppendTo(A arg0) where A : Java.Lang.IAppendable, new()
{
- return IExecute("appendTo", arg0);
+ return IExecuteWithSignature("appendTo", "(Ljava/lang/Appendable;)Ljava/lang/Appendable;", arg0);
}
///
///
diff --git a/src/net/Netdroid/Generated/Android/Icu/Text/ListFormatter.cs b/src/net/Netdroid/Generated/Android/Icu/Text/ListFormatter.cs
index 9a5a6f1f1..c74b4a030 100644
--- a/src/net/Netdroid/Generated/Android/Icu/Text/ListFormatter.cs
+++ b/src/net/Netdroid/Generated/Android/Icu/Text/ListFormatter.cs
@@ -170,7 +170,7 @@ public partial class FormattedList
///
public A AppendTo(A arg0) where A : Java.Lang.IAppendable, new()
{
- return IExecute("appendTo", arg0);
+ return IExecuteWithSignature("appendTo", "(Ljava/lang/Appendable;)Ljava/lang/Appendable;", arg0);
}
///
///
diff --git a/src/net/Netdroid/Generated/Android/Icu/Text/RelativeDateTimeFormatter.cs b/src/net/Netdroid/Generated/Android/Icu/Text/RelativeDateTimeFormatter.cs
index b2a87b844..93cc43275 100644
--- a/src/net/Netdroid/Generated/Android/Icu/Text/RelativeDateTimeFormatter.cs
+++ b/src/net/Netdroid/Generated/Android/Icu/Text/RelativeDateTimeFormatter.cs
@@ -473,7 +473,7 @@ public partial class FormattedRelativeDateTime
///
public A AppendTo(A arg0) where A : Java.Lang.IAppendable, new()
{
- return IExecute("appendTo", arg0);
+ return IExecuteWithSignature("appendTo", "(Ljava/lang/Appendable;)Ljava/lang/Appendable;", arg0);
}
///
///
diff --git a/src/net/Netdroid/Generated/Android/Icu/Text/UnicodeSet.cs b/src/net/Netdroid/Generated/Android/Icu/Text/UnicodeSet.cs
index 7f38817b3..28538b603 100644
--- a/src/net/Netdroid/Generated/Android/Icu/Text/UnicodeSet.cs
+++ b/src/net/Netdroid/Generated/Android/Icu/Text/UnicodeSet.cs
@@ -199,7 +199,7 @@ public static Android.Icu.Text.UnicodeSet FromAll(Java.Lang.CharSequence arg0)
///
public Android.Icu.Text.UnicodeSet AddAll(params T[] arg0) where T : Java.Lang.ICharSequence, new()
{
- if (arg0.Length == 0) return IExecute("addAll"); else return IExecute("addAll", arg0);
+ if (arg0.Length == 0) return IExecuteWithSignature("addAll", "([Ljava/lang/CharSequence;)Landroid/icu/text/UnicodeSet;"); else return IExecuteWithSignature("addAll", "([Ljava/lang/CharSequence;)Landroid/icu/text/UnicodeSet;", arg0);
}
///
///
@@ -209,7 +209,7 @@ public static Android.Icu.Text.UnicodeSet FromAll(Java.Lang.CharSequence arg0)
///
public Android.Icu.Text.UnicodeSet RemoveAll(Java.Lang.Iterable arg0) where T : Java.Lang.ICharSequence, new()
{
- return IExecute("removeAll", arg0);
+ return IExecuteWithSignature("removeAll", "(Ljava/lang/Iterable;)Landroid/icu/text/UnicodeSet;", arg0);
}
///
///
@@ -219,7 +219,7 @@ public static Android.Icu.Text.UnicodeSet FromAll(Java.Lang.CharSequence arg0)
///
public Android.Icu.Text.UnicodeSet RetainAll(Java.Lang.Iterable arg0) where T : Java.Lang.ICharSequence, new()
{
- return IExecute("retainAll", arg0);
+ return IExecuteWithSignature("retainAll", "(Ljava/lang/Iterable;)Landroid/icu/text/UnicodeSet;", arg0);
}
///
///
@@ -229,7 +229,7 @@ public static Android.Icu.Text.UnicodeSet FromAll(Java.Lang.CharSequence arg0)
///
public bool ContainsAll(Java.Lang.Iterable arg0) where T : Java.Lang.ICharSequence, new()
{
- return IExecute("containsAll", arg0);
+ return IExecuteWithSignature("containsAll", "(Ljava/lang/Iterable;)Z", arg0);
}
///
///
@@ -239,7 +239,7 @@ public static Android.Icu.Text.UnicodeSet FromAll(Java.Lang.CharSequence arg0)
///
public bool ContainsNone(Java.Lang.Iterable arg0) where T : Java.Lang.ICharSequence, new()
{
- return IExecute("containsNone", arg0);
+ return IExecuteWithSignature("containsNone", "(Ljava/lang/Iterable;)Z", arg0);
}
///
///
@@ -249,7 +249,7 @@ public static Android.Icu.Text.UnicodeSet FromAll(Java.Lang.CharSequence arg0)
///
public T AddAllTo(T arg0) where T : Java.Util.Collection
{
- return IExecute("addAllTo", arg0);
+ return IExecuteWithSignature("addAllTo", "(Ljava/util/Collection;)Ljava/util/Collection;", arg0);
}
///
///
@@ -546,7 +546,7 @@ public bool IsFrozen()
///
public bool ContainsSome(Java.Lang.Iterable arg0) where T : Java.Lang.ICharSequence, new()
{
- return IExecute("containsSome", arg0);
+ return IExecuteWithSignature("containsSome", "(Ljava/lang/Iterable;)Z", arg0);
}
///
///
diff --git a/src/net/Netdroid/Generated/Android/Media/AllPackageClasses.cs b/src/net/Netdroid/Generated/Android/Media/AllPackageClasses.cs
index b8c2e3352..b82af1fe6 100644
--- a/src/net/Netdroid/Generated/Android/Media/AllPackageClasses.cs
+++ b/src/net/Netdroid/Generated/Android/Media/AllPackageClasses.cs
@@ -9362,24 +9362,46 @@ public MediaScannerConnection(params object[] args) : base(args) { }
///
///
///
- public partial class MediaScannerConnectionClient : Android.Media.MediaScannerConnection.OnScanCompletedListener
+ public partial class MediaScannerConnectionClient : MASES.JCOBridge.C2JBridge.JVMBridgeListener
{
- const string _bridgeClassName = "android.media.MediaScannerConnection$MediaScannerConnectionClient";
///
/// Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
///
- [global::System.Obsolete("MediaScannerConnectionClient class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
- public MediaScannerConnectionClient() { }
+ public MediaScannerConnectionClient() { InitializeHandlers(); }
+
+ const string _bridgeClassName = "org.mases.netdroid.generated.android.media.MediaScannerConnection_MediaScannerConnectionClient";
+ private static readonly IJavaType LocalBridgeClazz = ClazzOf(_bridgeClassName);
+
///
- /// Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
+ ///
+ ///
+ public override string BridgeClassName => _bridgeClassName;
+
+
+ // TODO: complete the class
+
+ }
+ #endregion
+
+ #region MediaScannerConnectionClientDirect
+ ///
+ /// Direct override of or its generic type if there is one
+ ///
+ public partial class MediaScannerConnectionClientDirect : MediaScannerConnectionClient
+ {
+ ///
+ ///
///
- [global::System.Obsolete("MediaScannerConnectionClient class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
- public MediaScannerConnectionClient(params object[] args) : base(args) { }
+ public override bool AutoInit => false;
+ ///
+ protected override void InitializeHandlers() { }
+
+ const string _bridgeClassName = "android.media.MediaScannerConnection$MediaScannerConnectionClient";
private static readonly IJavaType LocalBridgeClazz = ClazzOf(_bridgeClassName);
///
- ///
+ ///
///
public override string BridgeClassName => _bridgeClassName;
///
@@ -9398,9 +9420,6 @@ public MediaScannerConnectionClient(params object[] args) : base(args) { }
///
///
public override bool IsBridgeStatic => true;
-
- // TODO: complete the class
-
}
#endregion
diff --git a/src/net/Netdroid/Generated/Android/Media/MediaScannerConnection.cs b/src/net/Netdroid/Generated/Android/Media/MediaScannerConnection.cs
index 98a701e42..895cf9b34 100644
--- a/src/net/Netdroid/Generated/Android/Media/MediaScannerConnection.cs
+++ b/src/net/Netdroid/Generated/Android/Media/MediaScannerConnection.cs
@@ -136,14 +136,105 @@ public partial class MediaScannerConnectionClient
#endregion
+ #region Instance methods
+ ///
+ /// Handlers initializer for
+ ///
+ protected virtual void InitializeHandlers()
+ {
+ AddEventHandler("onMediaScannerConnected", new global::System.EventHandler>(OnMediaScannerConnectedEventHandler));
+ AddEventHandler("onScanCompleted", new global::System.EventHandler>>(OnScanCompletedEventHandler));
+
+ }
+
+ ///
+ /// Handler for
+ ///
+ /// If has a value it takes precedence over corresponding class method
+ public global::System.Action OnOnMediaScannerConnected { get; set; } = null;
+
+ void OnMediaScannerConnectedEventHandler(object sender, CLRListenerEventArgs data)
+ {
+ var methodToExecute = (OnOnMediaScannerConnected != null) ? OnOnMediaScannerConnected : OnMediaScannerConnected;
+ methodToExecute.Invoke();
+ }
+
+ ///
+ ///
+ ///
+ public virtual void OnMediaScannerConnected()
+ {
+
+ }
+
+ ///
+ /// Handler for
+ ///
+ /// If has a value it takes precedence over corresponding class method
+ public global::System.Action OnOnScanCompleted { get; set; } = null;
+
+ void OnScanCompletedEventHandler(object sender, CLRListenerEventArgs> data)
+ {
+ var methodToExecute = (OnOnScanCompleted != null) ? OnOnScanCompleted : OnScanCompleted;
+ methodToExecute.Invoke(data.EventData.TypedEventData, data.EventData.GetAt(0));
+ }
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ public virtual void OnScanCompleted(Java.Lang.String arg0, Android.Net.Uri arg1)
+ {
+
+ }
+
+ #endregion
+
+ #region Nested classes
+
+ #endregion
+
+ // TODO: complete the class
+ }
+ #endregion
+
+ #region MediaScannerConnectionClientDirect
+ public partial class MediaScannerConnectionClientDirect
+ {
+ #region Constructors
+
+ #endregion
+
+ #region Class/Interface conversion operators
+
+ #endregion
+
+ #region Fields
+
+ #endregion
+
+ #region Static methods
+
+ #endregion
+
#region Instance methods
///
///
///
- public void OnMediaScannerConnected()
+ public override void OnMediaScannerConnected()
{
IExecuteWithSignature("onMediaScannerConnected", "()V");
}
+ ///
+ ///
+ ///
+ ///
+ ///
+ public override void OnScanCompleted(Java.Lang.String arg0, Android.Net.Uri arg1)
+ {
+ IExecute("onScanCompleted", arg0, arg1);
+ }
#endregion
diff --git a/src/net/Netdroid/Generated/Android/Net/Wifi/WifiInfo.cs b/src/net/Netdroid/Generated/Android/Net/Wifi/WifiInfo.cs
index 6b9871561..0d0c3641e 100644
--- a/src/net/Netdroid/Generated/Android/Net/Wifi/WifiInfo.cs
+++ b/src/net/Netdroid/Generated/Android/Net/Wifi/WifiInfo.cs
@@ -179,6 +179,15 @@ public Android.Net.MacAddress GetApMldMacAddress()
return IExecuteWithSignature("getApMldMacAddress", "()Landroid/net/MacAddress;");
}
///
+ ///
+ ///
+ ///
+ ///
+ public Android.Net.TransportInfo MakeCopy(long arg0)
+ {
+ return IExecuteWithSignature("makeCopy", "(J)Landroid/net/TransportInfo;", arg0);
+ }
+ ///
///
///
///
diff --git a/src/net/Netdroid/Generated/Android/Os/Bundle.cs b/src/net/Netdroid/Generated/Android/Os/Bundle.cs
index 2fb38424b..0c1503ce6 100644
--- a/src/net/Netdroid/Generated/Android/Os/Bundle.cs
+++ b/src/net/Netdroid/Generated/Android/Os/Bundle.cs
@@ -98,17 +98,6 @@ public Bundle(Java.Lang.ClassLoader arg0)
#region Instance methods
///
- ///
- ///
- ///
- ///
- ///
- ///
- public Android.Util.SparseArray GetSparseParcelableArray(Java.Lang.String arg0, Java.Lang.Class arg1)
- {
- return IExecute>("getSparseParcelableArray", arg0, arg1);
- }
- ///
///
///
///
@@ -117,62 +106,73 @@ public Android.Util.SparseArray GetSparseParcelableArray(Java.Lang.String
[global::System.Obsolete()]
public Android.Util.SparseArray GetSparseParcelableArray(Java.Lang.String arg0) where T : Android.Os.IParcelable, new()
{
- return IExecute>("getSparseParcelableArray", arg0);
+ return IExecuteWithSignature>("getSparseParcelableArray", "(Ljava/lang/String;)Landroid/util/SparseArray;", arg0);
}
///
- ///
+ ///
///
///
- ///
- ///
+ ///
///
- public Java.Util.ArrayList GetParcelableArrayList(Java.Lang.String arg0, Java.Lang.Class arg1)
+ [global::System.Obsolete()]
+ public Java.Util.ArrayList GetParcelableArrayList(Java.Lang.String arg0) where T : Android.Os.IParcelable, new()
{
- return IExecute>("getParcelableArrayList", arg0, arg1);
+ return IExecuteWithSignature>("getParcelableArrayList", "(Ljava/lang/String;)Ljava/util/ArrayList;", arg0);
}
///
- ///
+ ///
///
///
///
- ///
+ ///
[global::System.Obsolete()]
- public Java.Util.ArrayList GetParcelableArrayList(Java.Lang.String arg0) where T : Android.Os.IParcelable, new()
+ public T GetParcelable(Java.Lang.String arg0) where T : Android.Os.IParcelable, new()
{
- return IExecute>("getParcelableArrayList", arg0);
+ return IExecuteWithSignature("getParcelable", "(Ljava/lang/String;)Landroid/os/Parcelable;", arg0);
}
///
- ///
+ ///
///
///
///
- ///
+ ///
///
- public T GetParcelable(Java.Lang.String arg0, Java.Lang.Class arg1)
+ public T GetSerializable(Java.Lang.String arg0, Java.Lang.Class arg1) where T : Java.Io.ISerializable, new()
{
- return IExecute("getParcelable", arg0, arg1);
+ return IExecute("getSerializable", arg0, arg1);
}
///
- ///
+ ///
///
///
- ///
- ///
- [global::System.Obsolete()]
- public T GetParcelable(Java.Lang.String arg0) where T : Android.Os.IParcelable, new()
+ ///
+ ///
+ ///
+ public Android.Util.SparseArray GetSparseParcelableArray(Java.Lang.String arg0, Java.Lang.Class arg1)
{
- return IExecute("getParcelable", arg0);
+ return IExecute>("getSparseParcelableArray", arg0, arg1);
}
///
- ///
+ ///
///
///
///
- ///
+ ///
+ ///
+ public Java.Util.ArrayList GetParcelableArrayList(Java.Lang.String arg0, Java.Lang.Class arg1)
+ {
+ return IExecute>("getParcelableArrayList", arg0, arg1);
+ }
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
///
- public T GetSerializable(Java.Lang.String arg0, Java.Lang.Class arg1) where T : Java.Io.ISerializable, new()
+ public T GetParcelable(Java.Lang.String arg0, Java.Lang.Class arg1)
{
- return IExecute("getSerializable", arg0, arg1);
+ return IExecute("getParcelable", arg0, arg1);
}
///
///
diff --git a/src/net/Netdroid/Generated/Android/Os/Parcel.cs b/src/net/Netdroid/Generated/Android/Os/Parcel.cs
index 2b9475316..d25ea7864 100644
--- a/src/net/Netdroid/Generated/Android/Os/Parcel.cs
+++ b/src/net/Netdroid/Generated/Android/Os/Parcel.cs
@@ -97,17 +97,185 @@ public void ReadMap(Java.Util.Map
- ///
+ ///
///
- ///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ public Java.Util.ArrayList CreateInterfaceArrayList(Java.Util.Function.Function arg0) where T : Android.Os.IIInterface, new()
+ {
+ return IExecuteWithSignature>("createInterfaceArrayList", "(Ljava/util/function/Function;)Ljava/util/ArrayList;", arg0);
+ }
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
///
- public T CreateFixedArray(Java.Lang.Class arg0, Android.Os.Parcelable.Creator arg1, params int[] arg2) where S : Android.Os.IParcelable, new()
+ public T[] CreateInterfaceArray(Java.Util.Function.IntFunction arg0, Java.Util.Function.Function arg1) where T : Android.Os.IIInterface, new()
{
- if (arg2.Length == 0) return IExecute("createFixedArray", arg0, arg1); else return IExecute("createFixedArray", arg0, arg1, arg2);
+ return IExecuteArray("createInterfaceArray", arg0, arg1);
+ }
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public void ReadInterfaceArray(T[] arg0, Java.Util.Function.Function arg1) where T : Android.Os.IIInterface, new()
+ {
+ IExecute("readInterfaceArray", arg0, arg1);
+ }
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public void ReadInterfaceList(Java.Util.List arg0, Java.Util.Function.Function arg1) where T : Android.Os.IIInterface, new()
+ {
+ IExecute("readInterfaceList", arg0, arg1);
+ }
+ ///
+ ///
+ ///
+ ///
+ ///
+ public void WriteInterfaceArray(T[] arg0) where T : Android.Os.IIInterface, new()
+ {
+ IExecuteWithSignature("writeInterfaceArray", "([Landroid/os/IInterface;)V", new object[] { arg0 });
+ }
+ ///
+ ///
+ ///
+ ///
+ ///
+ public void WriteInterfaceList(Java.Util.List arg0) where T : Android.Os.IIInterface, new()
+ {
+ IExecuteWithSignature("writeInterfaceList", "(Ljava/util/List;)V", arg0);
+ }
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public Android.Util.ArrayMap CreateTypedArrayMap(Android.Os.Parcelable.Creator arg0) where T : Android.Os.IParcelable, new()
+ {
+ return IExecuteWithSignature>("createTypedArrayMap", "(Landroid/os/Parcelable$Creator;)Landroid/util/ArrayMap;", arg0);
+ }
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public Android.Util.SparseArray CreateTypedSparseArray(Android.Os.Parcelable.Creator arg0) where T : Android.Os.IParcelable, new()
+ {
+ return IExecuteWithSignature>("createTypedSparseArray", "(Landroid/os/Parcelable$Creator;)Landroid/util/SparseArray;", arg0);
+ }
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ [global::System.Obsolete()]
+ public Java.Util.List ReadParcelableList(Java.Util.List arg0, Java.Lang.ClassLoader arg1) where T : Android.Os.IParcelable, new()
+ {
+ return IExecute>("readParcelableList", arg0, arg1);
+ }
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ [global::System.Obsolete()]
+ public T ReadParcelable(Java.Lang.ClassLoader arg0) where T : Android.Os.IParcelable, new()
+ {
+ return IExecuteWithSignature("readParcelable", "(Ljava/lang/ClassLoader;)Landroid/os/Parcelable;", arg0);
+ }
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public void WriteParcelableArray(T[] arg0, int arg1) where T : Android.Os.IParcelable, new()
+ {
+ IExecute("writeParcelableArray", arg0, arg1);
+ }
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public void WriteParcelableList(Java.Util.List arg0, int arg1) where T : Android.Os.IParcelable, new()
+ {
+ IExecute("writeParcelableList", arg0, arg1);
+ }
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public void WriteTypedArray(T[] arg0, int arg1) where T : Android.Os.IParcelable, new()
+ {
+ IExecute("writeTypedArray", arg0, arg1);
+ }
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public void WriteTypedArrayMap(Android.Util.ArrayMap arg0, int arg1) where T : Android.Os.IParcelable, new()
+ {
+ IExecute("writeTypedArrayMap", arg0, arg1);
+ }
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public void WriteTypedList(Java.Util.List arg0, int arg1) where T : Android.Os.IParcelable, new()
+ {
+ IExecute("writeTypedList", arg0, arg1);
+ }
+ ///
+ ///
+ ///
+ ///
+ ///
+ public void WriteTypedList(Java.Util.List arg0) where T : Android.Os.IParcelable, new()
+ {
+ IExecuteWithSignature("writeTypedList", "(Ljava/util/List;)V", arg0);
+ }
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public void WriteTypedObject(T arg0, int arg1) where T : Android.Os.IParcelable, new()
+ {
+ IExecute("writeTypedObject", arg0, arg1);
+ }
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public void WriteTypedSparseArray(Android.Util.SparseArray arg0, int arg1) where T : Android.Os.IParcelable, new()
+ {
+ IExecute("writeTypedSparseArray", arg0, arg1);
}
///
///
@@ -123,24 +291,37 @@ public void ReadMap(Java.Util.Map("createFixedArray", arg0, arg1); else return IExecute("createFixedArray", arg0, arg1, arg2);
}
///
- ///
+ ///
///
///
+ ///
+ ///
+ ///
+ public void ReadFixedArray(T arg0, Java.Util.Function.Function arg1) where S : Android.Os.IIInterface, new()
+ {
+ IExecute("readFixedArray", arg0, arg1);
+ }
+ ///
+ ///
+ ///
+ ///
///
+ ///
///
///
- public void ReadFixedArray(T arg0, Android.Os.Parcelable.Creator arg1) where S : Android.Os.IParcelable, new()
+ ///
+ public T CreateFixedArray(Java.Lang.Class arg0, Android.Os.Parcelable.Creator arg1, params int[] arg2) where S : Android.Os.IParcelable, new()
{
- IExecute("readFixedArray", arg0, arg1);
+ if (arg2.Length == 0) return IExecute("createFixedArray", arg0, arg1); else return IExecute("createFixedArray", arg0, arg1, arg2);
}
///
- ///
+ ///
///
///
- ///
+ ///
///
- ///
- public void ReadFixedArray(T arg0, Java.Util.Function.Function arg1) where S : Android.Os.IIInterface, new()
+ ///
+ public void ReadFixedArray(T arg0, Android.Os.Parcelable.Creator arg1) where S : Android.Os.IParcelable, new()
{
IExecute("readFixedArray", arg0, arg1);
}
@@ -156,26 +337,6 @@ public Android.Os.Parcelable.Creator ReadParcelableCreator(Java.Lang.Class
return IExecute>("readParcelableCreator", arg0, arg1);
}
///
- ///
- ///
- ///
- ///
- ///
- public Android.Util.ArrayMap CreateTypedArrayMap(Android.Os.Parcelable.Creator arg0) where T : Android.Os.IParcelable, new()
- {
- return IExecute>("createTypedArrayMap", arg0);
- }
- ///
- ///
- ///
- ///
- ///
- ///
- public Android.Util.SparseArray CreateTypedSparseArray(Android.Os.Parcelable.Creator arg0) where T : Android.Os.IParcelable, new()
- {
- return IExecute>("createTypedSparseArray", arg0);
- }
- ///
///
///
///
@@ -198,16 +359,6 @@ public Android.Util.SparseArray ReadSparseArray(Java.Lang.ClassLoader arg0
return IExecuteWithSignature>("readSparseArray", "(Ljava/lang/ClassLoader;)Landroid/util/SparseArray;", arg0);
}
///
- ///
- ///
- ///
- ///
- ///
- public Java.Util.ArrayList CreateInterfaceArrayList(Java.Util.Function.Function arg0) where T : Android.Os.IIInterface, new()
- {
- return IExecute>("createInterfaceArrayList", arg0);
- }
- ///
///
///
///
@@ -241,18 +392,6 @@ public Java.Util.List ReadParcelableList(Java.Util.List arg0, Java.Lang
return IExecute>("readParcelableList", arg0, arg1, arg2);
}
///
- ///
- ///
- ///
- ///
- ///
- ///
- [global::System.Obsolete()]
- public Java.Util.List ReadParcelableList(Java.Util.List arg0, Java.Lang.ClassLoader arg1) where T : Android.Os.IParcelable, new()
- {
- return IExecute>("readParcelableList", arg0, arg1);
- }
- ///
///
///
///
@@ -275,17 +414,6 @@ public T ReadParcelable(Java.Lang.ClassLoader arg0, Java.Lang.Class arg1)
return IExecute("readParcelable", arg0, arg1);
}
///
- ///
- ///
- ///
- ///
- ///
- [global::System.Obsolete()]
- public T ReadParcelable(Java.Lang.ClassLoader arg0) where T : Android.Os.IParcelable, new()
- {
- return IExecute("readParcelable", arg0);
- }
- ///
///
///
///
@@ -307,17 +435,6 @@ public T ReadTypedObject(Android.Os.Parcelable.Creator arg0)
return IExecuteWithSignature("readTypedObject", "(Landroid/os/Parcelable$Creator;)Ljava/lang/Object;", arg0);
}
///
- ///