Skip to content

Commit

Permalink
Changes by GitHub action (#30)
Browse files Browse the repository at this point in the history
* Update generated classes after commit e6cd70b

* Update configuration.json

---------

Co-authored-by: masesdevelopers <[email protected]>
  • Loading branch information
github-actions[bot] and masesdevelopers authored Jun 3, 2024
1 parent 44a79aa commit cbf28d3
Show file tree
Hide file tree
Showing 180 changed files with 5,719 additions and 2,289 deletions.
4 changes: 4 additions & 0 deletions src/configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,23 @@
"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",
"java.sql.DriverAction",
"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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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);
}

}
Original file line number Diff line number Diff line change
@@ -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);
}

}
4 changes: 2 additions & 2 deletions src/net/Netdroid/Generated/Android/App/Activity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public partial class Activity : Android.Content.IComponentCallbacks2
/// <returns><typeparamref name="T"/></returns>
public T FindViewById<T>(int arg0) where T : Android.View.View
{
return IExecute<T>("findViewById", arg0);
return IExecuteWithSignature<T>("findViewById", "(I)Landroid/view/View;", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/app/Activity.html#getActionBar()"/>
Expand Down Expand Up @@ -891,7 +891,7 @@ public bool StartNextMatchingActivity(Android.Content.Intent arg0)
/// <returns><typeparamref name="T"/></returns>
public T RequireViewById<T>(int arg0) where T : Android.View.View
{
return IExecute<T>("requireViewById", arg0);
return IExecuteWithSignature<T>("requireViewById", "(I)Landroid/view/View;", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/app/Activity.html#getParent()"/>
Expand Down
4 changes: 2 additions & 2 deletions src/net/Netdroid/Generated/Android/App/Dialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public Dialog(Android.Content.Context arg0)
/// <returns><typeparamref name="T"/></returns>
public T FindViewById<T>(int arg0) where T : Android.View.View
{
return IExecute<T>("findViewById", arg0);
return IExecuteWithSignature<T>("findViewById", "(I)Landroid/view/View;", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/app/Dialog.html#getActionBar()"/>
Expand Down Expand Up @@ -394,7 +394,7 @@ public bool OnTrackballEvent(Android.View.MotionEvent arg0)
/// <returns><typeparamref name="T"/></returns>
public T RequireViewById<T>(int arg0) where T : Android.View.View
{
return IExecute<T>("requireViewById", arg0);
return IExecuteWithSignature<T>("requireViewById", "(I)Landroid/view/View;", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/app/Dialog.html#getOwnerActivity()"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public partial class FragmentContainer
[global::System.Obsolete()]
public T OnFindViewById<T>(int arg0) where T : Android.View.View
{
return IExecute<T>("onFindViewById", arg0);
return IExecuteWithSignature<T>("onFindViewById", "(I)Landroid/view/View;", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/app/FragmentContainer.html#onHasView()"/>
Expand Down
46 changes: 23 additions & 23 deletions src/net/Netdroid/Generated/Android/Content/Intent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2212,59 +2212,59 @@ public static Java.Lang.String NormalizeMimeType(Java.Lang.String arg0)

#region Instance methods
/// <summary>
/// <see href="https://developer.android.com/reference/android/content/Intent.html#getParcelableArrayListExtra(java.lang.String,java.lang.Class)"/>
/// <see href="https://developer.android.com/reference/android/content/Intent.html#getParcelableArrayListExtra(java.lang.String)"/>
/// </summary>
/// <param name="arg0"><see cref="Java.Lang.String"/></param>
/// <param name="arg1"><see cref="Java.Lang.Class"/></param>
/// <typeparam name="T"></typeparam>
/// <typeparam name="T"><see cref="Android.Os.IParcelable"/></typeparam>
/// <returns><see cref="Java.Util.ArrayList"/></returns>
public Java.Util.ArrayList<T> GetParcelableArrayListExtra<T>(Java.Lang.String arg0, Java.Lang.Class arg1)
[global::System.Obsolete()]
public Java.Util.ArrayList<T> GetParcelableArrayListExtra<T>(Java.Lang.String arg0) where T : Android.Os.IParcelable, new()
{
return IExecute<Java.Util.ArrayList<T>>("getParcelableArrayListExtra", arg0, arg1);
return IExecuteWithSignature<Java.Util.ArrayList<T>>("getParcelableArrayListExtra", "(Ljava/lang/String;)Ljava/util/ArrayList;", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/content/Intent.html#getParcelableArrayListExtra(java.lang.String)"/>
/// <see href="https://developer.android.com/reference/android/content/Intent.html#getParcelableExtra(java.lang.String)"/>
/// </summary>
/// <param name="arg0"><see cref="Java.Lang.String"/></param>
/// <typeparam name="T"><see cref="Android.Os.IParcelable"/></typeparam>
/// <returns><see cref="Java.Util.ArrayList"/></returns>
/// <returns><typeparamref name="T"/></returns>
[global::System.Obsolete()]
public Java.Util.ArrayList<T> GetParcelableArrayListExtra<T>(Java.Lang.String arg0) where T : Android.Os.IParcelable, new()
public T GetParcelableExtra<T>(Java.Lang.String arg0) where T : Android.Os.IParcelable, new()
{
return IExecute<Java.Util.ArrayList<T>>("getParcelableArrayListExtra", arg0);
return IExecuteWithSignature<T>("getParcelableExtra", "(Ljava/lang/String;)Landroid/os/Parcelable;", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/content/Intent.html#getParcelableExtra(java.lang.String,java.lang.Class)"/>
/// <see href="https://developer.android.com/reference/android/content/Intent.html#getSerializableExtra(java.lang.String,java.lang.Class)"/>
/// </summary>
/// <param name="arg0"><see cref="Java.Lang.String"/></param>
/// <param name="arg1"><see cref="Java.Lang.Class"/></param>
/// <typeparam name="T"></typeparam>
/// <typeparam name="T"><see cref="Java.Io.ISerializable"/></typeparam>
/// <returns><typeparamref name="T"/></returns>
public T GetParcelableExtra<T>(Java.Lang.String arg0, Java.Lang.Class arg1)
public T GetSerializableExtra<T>(Java.Lang.String arg0, Java.Lang.Class arg1) where T : Java.Io.ISerializable, new()
{
return IExecute<T>("getParcelableExtra", arg0, arg1);
return IExecute<T>("getSerializableExtra", arg0, arg1);
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/content/Intent.html#getParcelableExtra(java.lang.String)"/>
/// <see href="https://developer.android.com/reference/android/content/Intent.html#getParcelableArrayListExtra(java.lang.String,java.lang.Class)"/>
/// </summary>
/// <param name="arg0"><see cref="Java.Lang.String"/></param>
/// <typeparam name="T"><see cref="Android.Os.IParcelable"/></typeparam>
/// <returns><typeparamref name="T"/></returns>
[global::System.Obsolete()]
public T GetParcelableExtra<T>(Java.Lang.String arg0) where T : Android.Os.IParcelable, new()
/// <param name="arg1"><see cref="Java.Lang.Class"/></param>
/// <typeparam name="T"></typeparam>
/// <returns><see cref="Java.Util.ArrayList"/></returns>
public Java.Util.ArrayList<T> GetParcelableArrayListExtra<T>(Java.Lang.String arg0, Java.Lang.Class arg1)
{
return IExecute<T>("getParcelableExtra", arg0);
return IExecute<Java.Util.ArrayList<T>>("getParcelableArrayListExtra", arg0, arg1);
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/content/Intent.html#getSerializableExtra(java.lang.String,java.lang.Class)"/>
/// <see href="https://developer.android.com/reference/android/content/Intent.html#getParcelableExtra(java.lang.String,java.lang.Class)"/>
/// </summary>
/// <param name="arg0"><see cref="Java.Lang.String"/></param>
/// <param name="arg1"><see cref="Java.Lang.Class"/></param>
/// <typeparam name="T"><see cref="Java.Io.ISerializable"/></typeparam>
/// <typeparam name="T"></typeparam>
/// <returns><typeparamref name="T"/></returns>
public T GetSerializableExtra<T>(Java.Lang.String arg0, Java.Lang.Class arg1) where T : Java.Io.ISerializable, new()
public T GetParcelableExtra<T>(Java.Lang.String arg0, Java.Lang.Class arg1)
{
return IExecute<T>("getSerializableExtra", arg0, arg1);
return IExecute<T>("getParcelableExtra", arg0, arg1);
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/content/Intent.html#getParcelableArrayExtra(java.lang.String,java.lang.Class)"/>
Expand Down
43 changes: 31 additions & 12 deletions src/net/Netdroid/Generated/Android/Hardware/AllPackageClasses.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ public SensorEvent(params object[] args) : base(args) { }
/// <summary>
/// <see href="https://developer.android.com/reference/android/hardware/SensorEventCallback.html"/>
/// </summary>
public partial class SensorEventCallback : Android.Hardware.SensorEventListener2
public partial class SensorEventCallback : MASES.JCOBridge.C2JBridge.JVMBridgeBase<SensorEventCallback>
{
const string _bridgeClassName = "android.hardware.SensorEventCallback";
/// <summary>
Expand Down Expand Up @@ -1267,24 +1267,46 @@ protected override void InitializeHandlers() { }
/// <summary>
/// <see href="https://developer.android.com/reference/android/hardware/SensorEventListener2.html"/>
/// </summary>
public partial class SensorEventListener2 : Android.Hardware.SensorEventListener
public partial class SensorEventListener2 : MASES.JCOBridge.C2JBridge.JVMBridgeListener
{
const string _bridgeClassName = "android.hardware.SensorEventListener2";
/// <summary>
/// Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
/// </summary>
[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);

/// <summary>
/// Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
/// <see href="https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeListener_BridgeClassName.htm"/>
/// </summary>
public override string BridgeClassName => _bridgeClassName;


// TODO: complete the class

}
#endregion

#region SensorEventListener2Direct
/// <summary>
/// Direct override of <see cref="SensorEventListener2"/> or its generic type if there is one
/// </summary>
public partial class SensorEventListener2Direct : SensorEventListener2
{
/// <summary>
/// <see href="https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeListener_AutoInit.htm"/>
/// </summary>
[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;

/// <inheritdoc />
protected override void InitializeHandlers() { }

const string _bridgeClassName = "android.hardware.SensorEventListener2";
private static readonly IJavaType LocalBridgeClazz = ClazzOf(_bridgeClassName);

/// <summary>
/// <see href="https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm"/>
/// <see href="https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeListener_BridgeClassName.htm"/>
/// </summary>
public override string BridgeClassName => _bridgeClassName;
/// <summary>
Expand All @@ -1303,9 +1325,6 @@ public SensorEventListener2(params object[] args) : base(args) { }
/// <see href="https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_IsBridgeStatic.htm"/>
/// </summary>
public override bool IsBridgeStatic => false;

// TODO: complete the class

}
#endregion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ public partial class SensorEventCallback
#endregion

#region Class/Interface conversion operators
/// <summary>
/// Converter from <see cref="Android.Hardware.SensorEventCallback"/> to <see cref="Android.Hardware.SensorEventListener2"/>
/// </summary>
public static implicit operator Android.Hardware.SensorEventListener2(Android.Hardware.SensorEventCallback t) => t.Cast<Android.Hardware.SensorEventListener2>();

#endregion

Expand Down
Loading

0 comments on commit cbf28d3

Please sign in to comment.