mirror of
https://github.com/KeymonSoft/AdditionalLibs.git
synced 2026-04-17 19:36:30 +00:00
Commit inicial
This commit is contained in:
BIN
B4A/AHViewPager.jar
Normal file
BIN
B4A/AHViewPager.jar
Normal file
Binary file not shown.
1833
B4A/AHViewPager.xml
Normal file
1833
B4A/AHViewPager.xml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
B4A/ASWheelPicker.b4xlib
Normal file
BIN
B4A/ASWheelPicker.b4xlib
Normal file
Binary file not shown.
BIN
B4A/AS_WheelDateTimePicker.b4xlib
Normal file
BIN
B4A/AS_WheelDateTimePicker.b4xlib
Normal file
Binary file not shown.
BIN
B4A/AppUpdating.b4xlib
Normal file
BIN
B4A/AppUpdating.b4xlib
Normal file
Binary file not shown.
BIN
B4A/B4AAccessibilityServices.jar
Normal file
BIN
B4A/B4AAccessibilityServices.jar
Normal file
Binary file not shown.
2348
B4A/B4AAccessibilityServices.xml
Normal file
2348
B4A/B4AAccessibilityServices.xml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
B4A/B4XCollections.b4xlib
Normal file
BIN
B4A/B4XCollections.b4xlib
Normal file
Binary file not shown.
BIN
B4A/B4XDrawer.b4xlib
Normal file
BIN
B4A/B4XDrawer.b4xlib
Normal file
Binary file not shown.
BIN
B4A/B4XFormatter.b4xlib
Normal file
BIN
B4A/B4XFormatter.b4xlib
Normal file
Binary file not shown.
BIN
B4A/B4XGifView.b4xlib
Normal file
BIN
B4A/B4XGifView.b4xlib
Normal file
Binary file not shown.
BIN
B4A/B4XPreferencesDialog.b4xlib
Normal file
BIN
B4A/B4XPreferencesDialog.b4xlib
Normal file
Binary file not shown.
BIN
B4A/B4XTable.b4xlib
Normal file
BIN
B4A/B4XTable.b4xlib
Normal file
Binary file not shown.
BIN
B4A/B4XTimeoutHandler.b4xlib
Normal file
BIN
B4A/B4XTimeoutHandler.b4xlib
Normal file
Binary file not shown.
BIN
B4A/B4XTurtle.b4xlib
Normal file
BIN
B4A/B4XTurtle.b4xlib
Normal file
Binary file not shown.
BIN
B4A/BCTextEngine.b4xlib
Normal file
BIN
B4A/BCTextEngine.b4xlib
Normal file
Binary file not shown.
BIN
B4A/BCToast.b4xlib
Normal file
BIN
B4A/BCToast.b4xlib
Normal file
Binary file not shown.
BIN
B4A/BatteryProgressView.jar
Normal file
BIN
B4A/BatteryProgressView.jar
Normal file
Binary file not shown.
359
B4A/BatteryProgressView.xml
Normal file
359
B4A/BatteryProgressView.xml
Normal file
@@ -0,0 +1,359 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<root>
|
||||||
|
<doclet-version-NOT-library-version>1.05</doclet-version-NOT-library-version>
|
||||||
|
<class>
|
||||||
|
<name>batteryprogressviewwrapper.batteryprogressviewWrapper</name>
|
||||||
|
<shortname>BatteryProgressView</shortname>
|
||||||
|
<objectwrapper>example.com.batterytest.BatteryProgressView</objectwrapper>
|
||||||
|
<owner>activity</owner>
|
||||||
|
<method>
|
||||||
|
<name>BringToFront</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>RequestFocus</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>RemoveView</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>SetBackgroundImage</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>arg0</name>
|
||||||
|
<type>android.graphics.Bitmap</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Invalidate3</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>arg0</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>arg1</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>arg2</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>arg3</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Invalidate2</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>arg0</name>
|
||||||
|
<type>android.graphics.Rect</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Initialize</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EventName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Invalidate</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>SetLayout</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>arg0</name>
|
||||||
|
<type Pixel="true">int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>arg1</name>
|
||||||
|
<type Pixel="true">int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>arg2</name>
|
||||||
|
<type Pixel="true">int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>arg3</name>
|
||||||
|
<type Pixel="true">int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>DesignerCreateView</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>base</name>
|
||||||
|
<type>anywheresoftware.b4a.objects.PanelWrapper</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>lw</name>
|
||||||
|
<type>anywheresoftware.b4a.objects.LabelWrapper</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>props</name>
|
||||||
|
<type>anywheresoftware.b4a.objects.collections.Map</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>SetColorAnimated</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>arg0</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>arg1</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>arg2</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>SetLayoutAnimated</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>arg0</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>arg1</name>
|
||||||
|
<type Pixel="true">int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>arg2</name>
|
||||||
|
<type Pixel="true">int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>arg3</name>
|
||||||
|
<type Pixel="true">int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>arg4</name>
|
||||||
|
<type Pixel="true">int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>SetVisibleAnimated</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>arg0</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>arg1</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>SendToBack</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>Enabled</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>arg0</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Parent</name>
|
||||||
|
<returntype>java.lang.Object</returntype>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Top</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>top</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Visible</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>arg0</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>OuterCircleColor</name>
|
||||||
|
<parameter>
|
||||||
|
<name>outerCircleColor</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Background</name>
|
||||||
|
<returntype>android.graphics.drawable.Drawable</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>arg0</name>
|
||||||
|
<type>android.graphics.drawable.Drawable</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Height</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>height</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>SubTextColor</name>
|
||||||
|
<parameter>
|
||||||
|
<name>textColor</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>TextColor</name>
|
||||||
|
<parameter>
|
||||||
|
<name>textColor</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>PercentageTextColor</name>
|
||||||
|
<parameter>
|
||||||
|
<name>textColor</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Padding</name>
|
||||||
|
<returntype>int[]</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>arg0</name>
|
||||||
|
<type>int[]</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>ProgressColor</name>
|
||||||
|
<parameter>
|
||||||
|
<name>progressColor</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Progress</name>
|
||||||
|
<parameter>
|
||||||
|
<name>progress</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Left</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>left</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Color</name>
|
||||||
|
<parameter>
|
||||||
|
<name>arg0</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>InnerCircleColor</name>
|
||||||
|
<parameter>
|
||||||
|
<name>innerCircleColor</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Tag</name>
|
||||||
|
<returntype>java.lang.Object</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>arg0</name>
|
||||||
|
<type>java.lang.Object</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>InnerCircleMargin</name>
|
||||||
|
<parameter>
|
||||||
|
<name>innerCircleMargin</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Width</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Width</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>MaxProgress</name>
|
||||||
|
<parameter>
|
||||||
|
<name>maxProgress</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<field>
|
||||||
|
<name>ba</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>anywheresoftware.b4a.BA</returntype>
|
||||||
|
</field>
|
||||||
|
</class>
|
||||||
|
<version>1.0</version>
|
||||||
|
<author>Github: Jinesh Francis, Wrapped by: Johan Schoeman</author>
|
||||||
|
<dependsOn>android-support-annotations</dependsOn>
|
||||||
|
</root>
|
||||||
BIN
B4A/CLVTree.b4xlib
Normal file
BIN
B4A/CLVTree.b4xlib
Normal file
Binary file not shown.
BIN
B4A/CalculationDistanceTime.jar
Normal file
BIN
B4A/CalculationDistanceTime.jar
Normal file
Binary file not shown.
105
B4A/CalculationDistanceTime.xml
Normal file
105
B4A/CalculationDistanceTime.xml
Normal file
@@ -0,0 +1,105 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<doclet-version-NOT-library-version>1.00</doclet-version-NOT-library-version>
|
||||||
|
<dependsOn>okhttp</dependsOn>
|
||||||
|
<dependsOn includesSingletonModules="true">okhttputils2</dependsOn>
|
||||||
|
<dependsOn>json</dependsOn>
|
||||||
|
<dependsOn>okhttp-3.5.0</dependsOn>
|
||||||
|
<dependsOn>okio-1.11.0</dependsOn>
|
||||||
|
<dependsOn>javaobject</dependsOn>
|
||||||
|
<dependsOn>stringutils</dependsOn>
|
||||||
|
<class>
|
||||||
|
<name>b4a.example.calculationdistancetime._typelevel</name>
|
||||||
|
<shortname>typeLevel</shortname>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>Initialize</name>
|
||||||
|
<comment>Initializes the fields to their default value.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<field>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment>Tests whether the object has been initialized.</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>duration</name>
|
||||||
|
<returntype>String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>distance</name>
|
||||||
|
<returntype>String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>error</name>
|
||||||
|
<returntype>String</returntype>
|
||||||
|
</field>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>b4a.example.calculationdistancetime</name>
|
||||||
|
<shortname>calculationdistancetime</shortname>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment>Tests whether the object has been initialized.</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name DesignerName="Initialize">_initialize</name>
|
||||||
|
<comment>Initializes the object. You can add parameters to this method if needed.
|
||||||
|
<b>originlat</b> - Double Original Latitude
|
||||||
|
<b>originlot</b> - Double Original Longitude
|
||||||
|
<b>destinationlat</b> - Double Destination Latitude
|
||||||
|
<b>destinationlot</b> - Double Destination Longitude
|
||||||
|
<b>units</b> - Units as Result - "km" returns distances in kilometers and meters or "imperial" returns distances in miles and feet
|
||||||
|
<i>Example:</i> <code>
|
||||||
|
Dim calculate As calculationdistancetime
|
||||||
|
calculate.Initialize(41.923229,12.7241383,41.9191877,12.655384, "Km", Me, "Check_Result")
|
||||||
|
|
||||||
|
Sub Check_Result(valore As typeLevel)
|
||||||
|
Log("Errore: " & valore.error)
|
||||||
|
If valore.error.Length = 0 Then
|
||||||
|
Log("Distance: " & valore.distance)
|
||||||
|
Log("Time to Arrive: " & valore.duration)
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
</code>
|
||||||
|
</comment>
|
||||||
|
<returntype>String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>originlat</name>
|
||||||
|
<type>double</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>originlon</name>
|
||||||
|
<type>double</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>destinationlat</name>
|
||||||
|
<type>double</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>destinationlot</name>
|
||||||
|
<type>double</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>units</name>
|
||||||
|
<type>String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Module</name>
|
||||||
|
<type>Object</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EventName</name>
|
||||||
|
<type>String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
</class>
|
||||||
|
<version>1</version>
|
||||||
|
<author>Devil-App</author>
|
||||||
|
</root>
|
||||||
BIN
B4A/Clipboard.jar
Normal file
BIN
B4A/Clipboard.jar
Normal file
Binary file not shown.
49
B4A/Clipboard.xml
Normal file
49
B4A/Clipboard.xml
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<root>
|
||||||
|
<doclet-version-NOT-library-version>1.00</doclet-version-NOT-library-version>
|
||||||
|
<class>
|
||||||
|
<name>b4a.util.BClipboard</name>
|
||||||
|
<shortname>BClipboard</shortname>
|
||||||
|
<owner>activity</owner>
|
||||||
|
<method>
|
||||||
|
<name>getText</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>clrText</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>setText</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>text</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>hasText</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
</class>
|
||||||
|
</root>
|
||||||
BIN
B4A/CompressStrings.jar
Normal file
BIN
B4A/CompressStrings.jar
Normal file
Binary file not shown.
25
B4A/CompressStrings.xml
Normal file
25
B4A/CompressStrings.xml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<root>
|
||||||
|
<doclet-version-NOT-library-version>1.07</doclet-version-NOT-library-version>
|
||||||
|
<class>
|
||||||
|
<name>de.donmanfred.GZipStringswrapper</name>
|
||||||
|
<shortname>GZipStrings</shortname>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>compress</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>byte[]</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>data</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
</class>
|
||||||
|
<version>0.01</version>
|
||||||
|
<comment>Compress a Srring and return the Bytes.
|
||||||
|
You should use StringUtils to convert the bytes to Base64
|
||||||
|
|
||||||
|
To decrypt it is enough to convert the base64 to bytes again.
|
||||||
|
Use ByteConverter to get the String back from the Bytes.</comment>
|
||||||
|
<author>DonManfred</author>
|
||||||
|
</root>
|
||||||
BIN
B4A/DBUtils.b4xlib
Normal file
BIN
B4A/DBUtils.b4xlib
Normal file
Binary file not shown.
BIN
B4A/Encryption.jar
Normal file
BIN
B4A/Encryption.jar
Normal file
Binary file not shown.
685
B4A/Encryption.xml
Normal file
685
B4A/Encryption.xml
Normal file
@@ -0,0 +1,685 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<root>
|
||||||
|
<doclet-version-NOT-library-version>1.00</doclet-version-NOT-library-version>
|
||||||
|
<class>
|
||||||
|
<name>anywheresoftware.b4a.agraham.encryption.CipherWrapper</name>
|
||||||
|
<shortname>Cipher</shortname>
|
||||||
|
<comment>This object provides the functionality of a secret (symmetric) key encryptor and
|
||||||
|
decryptor. The algorithms may commonly be one of the following, there are others not listed here.
|
||||||
|
|
||||||
|
AES also known as Rijndael is a 128-bit block cipher supporting keys of 128, 192, and 256 bits.
|
||||||
|
DES The Digital Encryption Standard as described in FIPS PUB 46-3.
|
||||||
|
DESede Triple DES Encryption (also known as DES-EDE, 3DES, or Triple-DES).</comment>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>Decrypt</name>
|
||||||
|
<comment>Encrypts the supplied data using the key provided. If an initialisation vector is
|
||||||
|
to be used then useIV should be set True and the InitialisationVector property set
|
||||||
|
to the required data.</comment>
|
||||||
|
<returntype>byte[]</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>data</name>
|
||||||
|
<type>byte[]</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>key</name>
|
||||||
|
<type>java.security.Key</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>useIV</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Initialize</name>
|
||||||
|
<comment>Initialises the Cipher object to perform the supplied transformation.
|
||||||
|
|
||||||
|
A transformation is a string that describes the operation (or set of operations) to be performed
|
||||||
|
on the given input to produce some output. A transformation always includes the name of a
|
||||||
|
cryptographic algorithm (e.g., DES), and may be followed by a mode and padding scheme.
|
||||||
|
|
||||||
|
A transformation is of the form "algorithm/mode/padding" or "algorithm".
|
||||||
|
For example, the following are valid transformations:
|
||||||
|
"DES/CBC/PKCS5Padding"
|
||||||
|
"DES" note that this is actually a synonym for "DES/ECB/PKCS5Padding".
|
||||||
|
"DES/ECB/NoPadding" use this for simple single block encoding.
|
||||||
|
|
||||||
|
Algorithm may commonly be one of the following, there are others not listed here.
|
||||||
|
AES also known as Rijndael is a 128-bit block cipher supporting keys of 128, 192, and 256 bits.
|
||||||
|
DES The Digital Encryption Standard as described in FIPS PUB 46-3.
|
||||||
|
DESede Triple DES Encryption (also known as DES-EDE, 3DES, or Triple-DES).
|
||||||
|
|
||||||
|
Mode may commonly be one of the following, there are others not listed here.
|
||||||
|
NONE No mode.
|
||||||
|
CBC Cipher Block Chaining Mode, as defined in FIPS PUB 81.
|
||||||
|
CFB, CFBx Cipher Feedback Mode, as defined in FIPS PUB 81.
|
||||||
|
ECB Electronic Codebook Mode, as defined in FIPS PUB 81.
|
||||||
|
OFB, OFBx Output Feedback Mode, as defined in FIPS PUB 81.
|
||||||
|
Using modes such as CFB and OFB, block ciphers can encrypt data in units smaller than
|
||||||
|
the cipher's actual block size. When requesting such a mode, you may optionally specify the
|
||||||
|
number of bits to be processed at a time by appending this number to the mode name as shown
|
||||||
|
in the "DES/CFB8/NoPadding" and "DES/OFB32/PKCS5Padding" transformations. If no such
|
||||||
|
number is specified, a provider-specific default is used. Thus block ciphers can be turned into
|
||||||
|
byte-oriented stream ciphers by using an 8 bit mode such as CFB8 or OFB8.
|
||||||
|
|
||||||
|
Padding may be one of
|
||||||
|
NoPadding
|
||||||
|
ISO10126Padding
|
||||||
|
PKCS1Padding The padding scheme described in PKCS1, used with the RSA algorithm.
|
||||||
|
PKCS5Padding The padding scheme described in RSA Laboratories, "PKCS5: version 1.5, November 1993.
|
||||||
|
SSL3Padding The padding scheme defined in the SSL Protocol Version 3.0, November 18, 1996,
|
||||||
|
section 5.2.3.2 (CBC block cipher):</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>transformation</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>GetAlgorithms</name>
|
||||||
|
<comment>Returns an array of strings containing the algorithms that the specified security
|
||||||
|
provider implements.</comment>
|
||||||
|
<returntype>java.lang.String[]</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>servicename</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Encrypt</name>
|
||||||
|
<comment>Decrypts the supplied data using the key provided. If an initialisation vector is
|
||||||
|
to be used then useIV should be set True and the InitialisationVector property set
|
||||||
|
to the required data.</comment>
|
||||||
|
<returntype>byte[]</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>data</name>
|
||||||
|
<type>byte[]</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>key</name>
|
||||||
|
<type>java.security.Key</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>useIV</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>GetServices</name>
|
||||||
|
<comment>Returns an array of strings containing the security providers present on the system.</comment>
|
||||||
|
<returntype>java.lang.String[]</returntype>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>InitialisationVector</name>
|
||||||
|
<returntype>byte[]</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>iv</name>
|
||||||
|
<type>byte[]</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets the initialisation vector array.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Version</name>
|
||||||
|
<returntype>double</returntype>
|
||||||
|
<comment>Returns the version number of the library.</comment>
|
||||||
|
</property>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>anywheresoftware.b4a.agraham.encryption.CipherWrapper.MessageDigestWrapper</name>
|
||||||
|
<shortname>MessageDigest</shortname>
|
||||||
|
<comment>Message digests are used to produce unique and reliable identifiers of data.
|
||||||
|
They are sometimes called "checksums" or the "digital fingerprints" of the data.
|
||||||
|
Changes to just one bit of the message should produce a different digest value.
|
||||||
|
|
||||||
|
Algorithm can be "MD2", "MD5", "SHA-1", "SHA-256", "SHA-384" or "SHA-512".</comment>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>GetMessageDigest</name>
|
||||||
|
<comment>Returns a byte array containing the message digest of the contents of the supplied
|
||||||
|
array if bytes using the specified algorithm.
|
||||||
|
Algorithm can be "MD5", "SHA-1", "SHA-224", "SHA-256", "SHA-384" or "SHA-512"</comment>
|
||||||
|
<returntype>byte[]</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>data</name>
|
||||||
|
<type>byte[]</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>algorithm</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>Version</name>
|
||||||
|
<returntype>double</returntype>
|
||||||
|
<comment>Returns the version number of the library.</comment>
|
||||||
|
</property>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>anywheresoftware.b4a.agraham.encryption.CipherWrapper.SecureRandomWrapper</name>
|
||||||
|
<shortname>SecureRandom</shortname>
|
||||||
|
<comment>A seed is an array of bytes used to bootstrap random number generation.
|
||||||
|
To produce cryptographically secure random numbers, both the seed and the algorithm
|
||||||
|
must be secure. By default, instances of this class will generate an initial seed
|
||||||
|
using an internal entropy source. This seed is unpredictable and appropriate for secure use.
|
||||||
|
You may alternatively specify the initial seed explicitly by calling setSeed(byte[]) before
|
||||||
|
any random numbers have been generated. Specifying a fixed seed will cause the instance to
|
||||||
|
return a predictable sequence of numbers. This may be useful for testing but it is not
|
||||||
|
appropriate for secure use.
|
||||||
|
|
||||||
|
Although it is common practice to seed Random with the current time, that is dangerous with
|
||||||
|
SecureRandom since that value is predictable to an attacker and not appropriate for secure use.</comment>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>GetRandomBytes</name>
|
||||||
|
<comment>Fills the provided array with cryptographically strong random numbers produced
|
||||||
|
by the secure random number generator.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>bytes</name>
|
||||||
|
<type>byte[]</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>SetRandomSeed</name>
|
||||||
|
<comment>The random number generator seeds itself when created with a random seed. If it is
|
||||||
|
required, say for testing purposes, to repeatedly reproduce the same sequence of
|
||||||
|
random numbers then the generator may be seeded with a specific value before use.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>seed</name>
|
||||||
|
<type>long</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>Version</name>
|
||||||
|
<returntype>double</returntype>
|
||||||
|
<comment>Returns the version number of the library.</comment>
|
||||||
|
</property>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>anywheresoftware.b4a.agraham.encryption.CipherWrapper.KeyGeneratorWrapper</name>
|
||||||
|
<shortname>KeyGenerator</shortname>
|
||||||
|
<comment>This object provides the functionality of a secret (symmetric) key generator.
|
||||||
|
KeyGenerator objects are reusable, i.e., after a key has been generated, the same
|
||||||
|
KeyGenerator object can be re-used to generate further keys.
|
||||||
|
|
||||||
|
Algorithm may commonly be one of the following, there are others not listed here.
|
||||||
|
AES also known as Rijndael is a 128-bit block cipher supporting keys of 128, 192, and 256 bits.
|
||||||
|
DES The Digital Encryption Standard as described in FIPS PUB 46-3.
|
||||||
|
DESede Triple DES Encryption (also known as DES-EDE, 3DES, or Triple-DES).</comment>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>Initialize</name>
|
||||||
|
<comment>Initialise this KeyGenerator to work with the specified algorithm.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>algorithm</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>GenerateKey</name>
|
||||||
|
<comment>Creates and saves internally a SecretKey object appropriate for use with the specified
|
||||||
|
algorithm using internally provided random data .</comment>
|
||||||
|
<returntype>javax.crypto.SecretKey</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>KeyFromBytes</name>
|
||||||
|
<comment>Creates and saves internally a SecretKey object appropriate for use with the specified
|
||||||
|
algorithm using the data in the byte array provided.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>keydata</name>
|
||||||
|
<type>byte[]</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>KeyToBytes</name>
|
||||||
|
<comment>Returns a byte array representing the SecretKey.</comment>
|
||||||
|
<returntype>byte[]</returntype>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>Format</name>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<comment>Returns the format of the key data obtained by KeyToBytes. This will almost certainly be "RAW".</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Key</name>
|
||||||
|
<returntype>javax.crypto.SecretKey</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>key</name>
|
||||||
|
<type>javax.crypto.SecretKey</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets the SecretKey object.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Version</name>
|
||||||
|
<returntype>double</returntype>
|
||||||
|
<comment>Returns the version number of the library.</comment>
|
||||||
|
</property>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>anywheresoftware.b4a.agraham.encryption.CipherWrapper.KeyPairGeneratorWrapper</name>
|
||||||
|
<shortname>KeyPairGenerator</shortname>
|
||||||
|
<comment>The KeyPairGenerator is used to generate pairs of public and private keys.
|
||||||
|
A key pair generator for a particular algorithm creates a public/private key pair
|
||||||
|
that can be used with this algorithm.
|
||||||
|
|
||||||
|
Algorithm is commonly be the following, there may be others not listed here. *
|
||||||
|
RSA The RSA encryption algorithm as defined in PRSA Public-Key Cryptography Standards .</comment>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>Initialize</name>
|
||||||
|
<comment>Initialises the KeyPairGenerator with the specified algorithm and keysize.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>algorithm</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>keysize</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>PublicKeyFromBytes</name>
|
||||||
|
<comment>Creates and saves internally a public key appropriate for use with the specified
|
||||||
|
algorithm using the data in X.509 format from the byte array provided.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>keydata</name>
|
||||||
|
<type>byte[]</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>PublicKeyToBytes</name>
|
||||||
|
<comment>Returns a byte array in the X.509 format representing the PublicKey.</comment>
|
||||||
|
<returntype>byte[]</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>PrivateKeyFromBytes</name>
|
||||||
|
<comment>Creates and saves internally a private key appropriate for use with the specified
|
||||||
|
algorithm using the data in the PKCS#8 format from the byte array provided.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>keydata</name>
|
||||||
|
<type>byte[]</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>PrivateKeyToBytes</name>
|
||||||
|
<comment>Returns a byte array in the PKC#8 format representing the PrivateKey.</comment>
|
||||||
|
<returntype>byte[]</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>GenerateKey</name>
|
||||||
|
<comment>Generates a key pair appropriate for use with the specified algorithm.
|
||||||
|
This is a simple holder for a key pair (a public key and a private key).
|
||||||
|
It does not enforce any security, and, when initialized, should be treated like
|
||||||
|
a private key.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>PublicKey</name>
|
||||||
|
<returntype>java.security.PublicKey</returntype>
|
||||||
|
<comment>Gets the public key of the KeyPairGenerator object.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Formats</name>
|
||||||
|
<returntype>java.lang.String[]</returntype>
|
||||||
|
<comment>Returns the formats of the key data obtained by xxxKeyToBytes in a String array.
|
||||||
|
The public key format is at index 0 and will almost certainly be "X.509".
|
||||||
|
The private key format is at index 1 and will almost certainly be "PKCS#8".</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Version</name>
|
||||||
|
<returntype>double</returntype>
|
||||||
|
<comment>Returns the version number of the library.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>PrivateKey</name>
|
||||||
|
<returntype>java.security.PrivateKey</returntype>
|
||||||
|
<comment>Gets the private key of the KeyPairGenerator object.</comment>
|
||||||
|
</property>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>anywheresoftware.b4a.agraham.encryption.CipherWrapper.SignaturerWrapper</name>
|
||||||
|
<shortname>Signature</shortname>
|
||||||
|
<comment>Similar to a MessageDigest, a Signature provides a way to check the integrity of information
|
||||||
|
transmitted over or stored in an unreliable medium and also ensures that it can be verified
|
||||||
|
that it originated from the person it purports to originate from. It accomplishes this by using
|
||||||
|
a private key to encode a hash of the original data and the corresponding public key of the key
|
||||||
|
pair to decode and check that hash value.
|
||||||
|
|
||||||
|
A Signature object is initialized for signing with a private key and is given the data
|
||||||
|
to be signed. The resulting signature bytes are typically kept with the signed data.
|
||||||
|
When verification is needed, another Signature object is created and initialized for
|
||||||
|
verification and given the corresponding public key. The data and the signature bytes
|
||||||
|
are fed to the signature object, and if the data and signature match, the Signature
|
||||||
|
object reports success.</comment>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>Initialise</name>
|
||||||
|
<comment>Initialises a Signature object that uses the specified algorithm for the specified mode.
|
||||||
|
Mode must be either SIGNATURE_VERIFY or SIGNATURE_SIGN. Once the object is Initialised
|
||||||
|
the data to be signed or verified is provided by one or more successive calls to Update.
|
||||||
|
When the entire data to be signed or verified has been loaded Sign or Verify is called.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>algorithm</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>mode</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>key</name>
|
||||||
|
<type>java.security.Key</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Update</name>
|
||||||
|
<comment>One or more calls to this method are required after initialisation to load the data to be
|
||||||
|
signed or verified.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>data</name>
|
||||||
|
<type>byte[]</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Sign</name>
|
||||||
|
<comment>Sign the uploaded data using the private key provided on initialisation.
|
||||||
|
Return the calculated signature data.</comment>
|
||||||
|
<returntype>byte[]</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Verify</name>
|
||||||
|
<comment>Verify the uploaded data using the public key provided on initialisation and the signature
|
||||||
|
provided. Return true if the verification is successful.</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>signature</name>
|
||||||
|
<type>byte[]</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>Version</name>
|
||||||
|
<returntype>double</returntype>
|
||||||
|
<comment>Returns the version number of the library.</comment>
|
||||||
|
</property>
|
||||||
|
<field>
|
||||||
|
<name>SIGNATURE_VERIFY</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>SIGNATURE_SIGN</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>anywheresoftware.b4a.agraham.encryption.CipherWrapper.MacWrapper</name>
|
||||||
|
<shortname>Mac</shortname>
|
||||||
|
<comment>Similar to a MessageDigest, a Message Authentication Code (MAC) provides a way to check
|
||||||
|
the integrity of information transmitted over or stored in an unreliable medium, but includes
|
||||||
|
a secret key in the calculation. Only someone with the proper key will be able to verify the
|
||||||
|
received message. Typically, message authentication codes are used between two parties that
|
||||||
|
share a secret key in order to validate information transmitted between these parties.
|
||||||
|
|
||||||
|
A MAC object is initialized for signing with a secret key and is given the data to be signed.
|
||||||
|
The resulting signature bytes are typically kept with the signed data. When verification is needed,
|
||||||
|
another MAC object is created and initialized with the same secret key.The data is uploaded and the
|
||||||
|
signature obtained is compared with the signature provided with the message. The comparison may
|
||||||
|
be made externally by comparing the signature provided with the data to that returned by Sign or
|
||||||
|
the MAC object can do the comparison itself by using the Verify method with the provided signature.</comment>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>Initialise</name>
|
||||||
|
<comment>Initialises a Mac object that uses the specified algorithm and the specified secret key.
|
||||||
|
Once the object is Initialised the data to be signed or verified is provided by one or more
|
||||||
|
successive calls to Update. When the entire data to be signed or verified has been loaded
|
||||||
|
Sign or Verify is called.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>algorithm</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>key</name>
|
||||||
|
<type>java.security.Key</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Update</name>
|
||||||
|
<comment>One or more calls to this method are required after initialisation to load the data to be
|
||||||
|
signed or verified.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>data</name>
|
||||||
|
<type>byte[]</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Sign</name>
|
||||||
|
<comment>Sign the uploaded data using the secret key provided on initialisation.
|
||||||
|
Return the calculated signature data.</comment>
|
||||||
|
<returntype>byte[]</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Verify</name>
|
||||||
|
<comment>Verify the uploaded data using the public key provided on initialisation and the signature
|
||||||
|
provided. Return true if the verification is successful.</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>signature</name>
|
||||||
|
<type>byte[]</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>Version</name>
|
||||||
|
<returntype>double</returntype>
|
||||||
|
<comment>Returns the version number of the library.</comment>
|
||||||
|
</property>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>anywheresoftware.b4a.agraham.encryption.Base64</name>
|
||||||
|
<shortname>Base64</shortname>
|
||||||
|
<comment>The Base64 object encodes and decodes to and from Base64 notation.</comment>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>EncodeStoS</name>
|
||||||
|
<comment>Encode a string into a string of Base64 characters. The string is converted
|
||||||
|
into an array of bytes according to encoding and then coded as Base64.</comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>data</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>encoding</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>EncodeStoB</name>
|
||||||
|
<comment>Encode a string into a byte array of Base64 characters. The string is converted
|
||||||
|
into an array of bytes according to encoding and then coded as Base64.</comment>
|
||||||
|
<returntype>byte[]</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>data</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>encoding</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>EncodeBtoS</name>
|
||||||
|
<comment>Encode a byte array into a string of Base64 characters.</comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>data</name>
|
||||||
|
<type>byte[]</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>offset</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>length</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>DecodeStoS</name>
|
||||||
|
<comment>Decode a string of Base64 characters into a string. Tab, CR, LF and Space
|
||||||
|
characters in the data are ignored, invalid Base64 characters throw an exception.
|
||||||
|
Encoding defines the encoding of the byte data of the original coded string.</comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>b64string</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>encoding</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>DecodeStoB</name>
|
||||||
|
<comment>Decode a String of Base64 characters into a byte array. Tab, CR, LF and Space
|
||||||
|
characters in the string are ignored, invalid Base64 characters throw an exception.</comment>
|
||||||
|
<returntype>byte[]</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>b64string</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>DecodeBtoS</name>
|
||||||
|
<comment>Decode an array of Base64 characters into a string. Tab, CR, LF and Space
|
||||||
|
characters in the data are ignored, invalid Base64 characters throw an exception.
|
||||||
|
Encoding defines the encoding of the byte data of the original coded string.</comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>b64bytes</name>
|
||||||
|
<type>byte[]</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>offset</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>length</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>encoding</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>DecodeBtoB</name>
|
||||||
|
<comment>Decode a byte array of Base64 characters into a byte array. Tab, CR, LF and Space
|
||||||
|
characters in the data are ignored, invalid Base64 characters throw an exception.</comment>
|
||||||
|
<returntype>byte[]</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>b64bytes</name>
|
||||||
|
<type>byte[]</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>offset</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>length</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>EncodeBtoB</name>
|
||||||
|
<comment>Encode a byte array into a byte array of Base64 characters.</comment>
|
||||||
|
<returntype>byte[]</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>data</name>
|
||||||
|
<type>byte[]</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>offset</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>length</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>LineLength</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>linelength</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets the number of Base64 characters placed on each line when line breaks
|
||||||
|
are being added to the Base64 output when encoding.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Version</name>
|
||||||
|
<returntype>double</returntype>
|
||||||
|
<comment>Returns the version number of the library.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>BreakLines</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>breaklines</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets whether line breaks are added to the Base64 output when encoding.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>UrlSafe</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>urlsafe</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets whether the Base64 encoding and decoding is done in a "URL safe" manner.
|
||||||
|
In "URL safe mode" the "plus" character in the Base64 becomes a "hyphen" and the
|
||||||
|
"slash" character becomes an "underscore".</comment>
|
||||||
|
</property>
|
||||||
|
</class>
|
||||||
|
<version>1.1</version>
|
||||||
|
<comment>This library implements various encryption and encoding methods
|
||||||
|
|
||||||
|
The following objects are available:
|
||||||
|
|
||||||
|
Base64: used to encode and decode data in Base64 representation.
|
||||||
|
Cipher: used for encrypting/decrypting data.
|
||||||
|
KeyGenerator: used to generate and mainpulate secret keys for symmetric ciphers.
|
||||||
|
MAC: (Message Authentication Code) used generate secret key encrypted message digests.
|
||||||
|
MessageDigest: used to calculate the message digest (hash) of specified data.
|
||||||
|
SecureRandom: used to generate pseudo-random numbers.
|
||||||
|
Signature: are used to sign data and verify digital signatures.
|
||||||
|
|
||||||
|
More information is given on each object in its help comments.
|
||||||
|
|
||||||
|
These comments are intended to document the facilities provided by this library.
|
||||||
|
They are not intended in any way to cover their practical use. It is assumed that
|
||||||
|
you know what you are doing when you use this library.
|
||||||
|
|
||||||
|
Documentation on the Java Cryptography Architecture may be found at
|
||||||
|
<link>http://download.oracle.com/javase/6/docs/technotes/guides/security/crypto/CryptoSpec.html</link>
|
||||||
|
|
||||||
|
A list of standard names used in the Java Cryptography Architecture may be found at
|
||||||
|
<link>http://download.oracle.com/javase/6/docs/technotes/guides/security/StandardNames.html</link>
|
||||||
|
|
||||||
|
Any implementation does not neccessarily include the complete list. A list of included
|
||||||
|
Service Providers may be obtained with the Cipher.GetServices method and they may be passed
|
||||||
|
individually to Cipher.GetAlgorithms to get the list of supported algorithms for that provider.</comment>
|
||||||
|
<author>Andrew Graham</author>
|
||||||
|
</root>
|
||||||
BIN
B4A/ExternalStorage.b4xlib
Normal file
BIN
B4A/ExternalStorage.b4xlib
Normal file
Binary file not shown.
372
B4A/FusedLocationProvider.html
Normal file
372
B4A/FusedLocationProvider.html
Normal file
@@ -0,0 +1,372 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
|
<title>FusedLocationProvider</title>
|
||||||
|
<style type="text/css">
|
||||||
|
body{
|
||||||
|
background-color:#E1DEE6;
|
||||||
|
color:#222;
|
||||||
|
font-family:Arial,Helvetica,sans-serif;
|
||||||
|
font-size:14px;
|
||||||
|
margin:0;
|
||||||
|
padding:0;
|
||||||
|
}
|
||||||
|
h3{
|
||||||
|
background-color:#869BBF;
|
||||||
|
margin:0;
|
||||||
|
padding:5px;
|
||||||
|
}
|
||||||
|
ul{
|
||||||
|
list-style:none;
|
||||||
|
margin:5px;
|
||||||
|
padding:0;
|
||||||
|
}
|
||||||
|
ul li{
|
||||||
|
background-color:#FFF;
|
||||||
|
border:1px solid #666;
|
||||||
|
margin:0;
|
||||||
|
padding:5px;
|
||||||
|
}
|
||||||
|
ul li:first-child, h3{
|
||||||
|
border-top-left-radius:5px;
|
||||||
|
border-top-right-radius:5px;
|
||||||
|
}
|
||||||
|
ul li:last-child, h3{
|
||||||
|
border-bottom-left-radius:5px;
|
||||||
|
border-bottom-right-radius:5px;
|
||||||
|
}
|
||||||
|
ul h3:first-child{
|
||||||
|
background-color:#869BDF;
|
||||||
|
margin-bottom:5px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body><h3>FusedLocationProvider</h3>
|
||||||
|
<ul><li><h3>Comment:</h3></li><li>The FusedLocationProvider intelligently manages the underlying location technology and gives you the best location according to your needs.
|
||||||
|
https://developer.android.com/google/play-services/location.html
|
||||||
|
This library depends on the Google Play Services library, android-support-v4 library and the GPS library.
|
||||||
|
The GPS library is required in order to use it's Location object.</li></ul>
|
||||||
|
<ul>
|
||||||
|
<li><h3>ConnectionResult</h3>
|
||||||
|
<h3>Fields:</h3>
|
||||||
|
<ul>
|
||||||
|
<li><b>API_UNAVAILABLE <span style='color:blue'>As</span> <span style='color:#008B8B'>Int</span></b>
|
||||||
|
<br><i>One of the API components you attempted to connect to is not available.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>CANCELLED <span style='color:blue'>As</span> <span style='color:#008B8B'>Int</span></b>
|
||||||
|
<br><i>The client cancelled the connection by calling Disconnect().</i>
|
||||||
|
</li>
|
||||||
|
<li><b>DEVELOPER_ERROR <span style='color:blue'>As</span> <span style='color:#008B8B'>Int</span></b>
|
||||||
|
<br><i>The application is misconfigured.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>INTERNAL_ERROR <span style='color:blue'>As</span> <span style='color:#008B8B'>Int</span></b>
|
||||||
|
<br><i>An internal error occurred.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>INVALID_ACCOUNT <span style='color:blue'>As</span> <span style='color:#008B8B'>Int</span></b>
|
||||||
|
<br><i>The client attempted to connect to the service with an invalid account name specified.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>LICENSE_CHECK_FAILED <span style='color:blue'>As</span> <span style='color:#008B8B'>Int</span></b>
|
||||||
|
<br><i>The application is not licensed to the user. This error is not recoverable and will be treated as fatal.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>NETWORK_ERROR <span style='color:blue'>As</span> <span style='color:#008B8B'>Int</span></b>
|
||||||
|
<br><i>A network error occurred. Retrying should resolve the problem.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>RESOLUTION_REQUIRED <span style='color:blue'>As</span> <span style='color:#008B8B'>Int</span></b>
|
||||||
|
<br><i>Completing the connection requires some form of resolution.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>SERVICE_DISABLED <span style='color:blue'>As</span> <span style='color:#008B8B'>Int</span></b>
|
||||||
|
<br><i>The installed version of Google Play services has been disabled on this device.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>SERVICE_INVALID <span style='color:blue'>As</span> <span style='color:#008B8B'>Int</span></b>
|
||||||
|
<br><i>The version of the Google Play services installed on this device is not authentic.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>SERVICE_MISSING <span style='color:blue'>As</span> <span style='color:#008B8B'>Int</span></b>
|
||||||
|
<br><i>Google Play services is missing on this device.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>SERVICE_VERSION_UPDATE_REQUIRED <span style='color:blue'>As</span> <span style='color:#008B8B'>Int</span></b>
|
||||||
|
<br><i>The installed version of Google Play services is out of date.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>SIGN_IN_REQUIRED <span style='color:blue'>As</span> <span style='color:#008B8B'>Int</span></b>
|
||||||
|
<br><i>The client attempted to connect to the service but the user is not signed in.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>SUCCESS <span style='color:blue'>As</span> <span style='color:#008B8B'>Int</span></b>
|
||||||
|
<br><i>The connection was successful.</i>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</ul>
|
||||||
|
<ul>
|
||||||
|
<li><h3>FusedLocationProvider</h3>
|
||||||
|
<h3>Events:</h3>
|
||||||
|
<ul>
|
||||||
|
<li><b>ConnectionFailed</b> (ConnectionResult1 <span style='color:blue'>As</span> <span style='color:#008B8B'>Int</span>)</li>
|
||||||
|
<li><b>ConnectionSuccess</b></li>
|
||||||
|
<li><b>ConnectionSuspended</b> (SuspendedCause1 <span style='color:blue'>As</span> <span style='color:#008B8B'>Int</span>)</li>
|
||||||
|
<li><b>LocationChanged</b> (Location1 <span style='color:blue'>As</span> <span style='color:#008B8B'>Location</span>)</li>
|
||||||
|
<li><b>LocationSettingsChecked</b> (LocationSettingsResult1 <span style='color:blue'>As</span> <span style='color:#008B8B'>LocationSettingsResult</span>)</li>
|
||||||
|
</ul>
|
||||||
|
<h3>Fields:</h3>
|
||||||
|
<ul>
|
||||||
|
<li><b>ConnectionResult <span style='color:blue'>As</span> <span style='color:#008B8B'>ConnectionResult</span></b>
|
||||||
|
<br><i>Contains the various ConnectionResult constants.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>SuspendedCause <span style='color:blue'>As</span> <span style='color:#008B8B'>SuspendedCause</span></b>
|
||||||
|
<br><i>Contains the various SuspendedCause constants.</i>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<h3>Methods:</h3>
|
||||||
|
<ul>
|
||||||
|
<li><b>CheckLocationSettings</b> (LocationSettingsRequest1 <span style='color:blue'>As</span> <span style='color:#008B8B'>LocationSettingsRequest</span>)<b></b>
|
||||||
|
<br><i>Checks if the relevant system settings are enabled on the device to carry out the desired location requests.
|
||||||
|
Raises the event:
|
||||||
|
LocationSettingsChecked(LocationSettingsResult1 As LocationSettingsResult)</i>
|
||||||
|
</li>
|
||||||
|
<li><b>Connect</b>
|
||||||
|
<br><i>Attempt to connect to the Location Services.
|
||||||
|
Will raise either event:
|
||||||
|
ConnectionFailed(ConnectionResult1 As Int)
|
||||||
|
ConnectionSuccess</i>
|
||||||
|
</li>
|
||||||
|
<li><b>Disconnect</b>
|
||||||
|
<br><i>Disconnect from the Location Services.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>GetLastKnownLocation <span style='color:blue'>As</span> <span style='color:#008B8B'>LocationWrapper</span></b>
|
||||||
|
<br><i>Returns the best most recent location currently available.
|
||||||
|
Can only be called if the FusedLocationProvider is connected.
|
||||||
|
The returned Location object will not be initialized if no last known location is available.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>Initialize</b> (EventName <span style='color:blue'>As</span> <span style='color:#008B8B'>String</span>)<b></b>
|
||||||
|
<br><i>Initialize the FusedLocationProvider object.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>IsConnected <span style='color:blue'>As</span> <span style='color:#008B8B'>Boolean</span></b>
|
||||||
|
<br><i>Returns whether the FusedLocationProvider is connected to the Location Services.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>IsConnecting <span style='color:blue'>As</span> <span style='color:#008B8B'>Boolean</span></b>
|
||||||
|
<br><i>Returns whether the FusedLocationProvider is trying to connect to the Location Services.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>IsInitialized <span style='color:blue'>As</span> <span style='color:#008B8B'>Boolean</span></b>
|
||||||
|
</li>
|
||||||
|
<li><b>RemoveLocationUpdates</b>
|
||||||
|
<br><i>Remove all requests for location updates.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>RequestLocationUpdates</b> (LocationRequest1 <span style='color:blue'>As</span> <span style='color:#008B8B'>LocationRequest</span>)<b></b>
|
||||||
|
<br><i>Request for location updates.
|
||||||
|
The LocationRequest object defines the criteria for which location updates are requested.</i>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</ul>
|
||||||
|
<ul>
|
||||||
|
<li><h3>LocationRequest</h3>
|
||||||
|
<h3>Fields:</h3>
|
||||||
|
<ul>
|
||||||
|
<li><b>Priority <span style='color:blue'>As</span> <span style='color:#008B8B'>Priority</span></b>
|
||||||
|
<br><i>Contains the various priority constants.</i>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<h3>Methods:</h3>
|
||||||
|
<ul>
|
||||||
|
<li><b>GetExpirationTime <span style='color:blue'>As</span> <span style='color:#008B8B'>Long</span></b>
|
||||||
|
<br><i>Get the request expiration time, in milliseconds since boot.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>GetFastestInterval <span style='color:blue'>As</span> <span style='color:#008B8B'>Long</span></b>
|
||||||
|
<br><i>Get the fastest interval of this request, in milliseconds.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>GetInterval <span style='color:blue'>As</span> <span style='color:#008B8B'>Long</span></b>
|
||||||
|
<br><i>Get the desired interval of this request, in milliseconds.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>GetNumUpdates <span style='color:blue'>As</span> <span style='color:#008B8B'>Int</span></b>
|
||||||
|
<br><i>Get the number of updates requested.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>GetPriority <span style='color:blue'>As</span> <span style='color:#008B8B'>Int</span></b>
|
||||||
|
<br><i>Get the quality of the request.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>GetSmallestDisplacement <span style='color:blue'>As</span> <span style='color:#008B8B'>Float</span></b>
|
||||||
|
<br><i>Get the minimum displacement between location updates in meters.
|
||||||
|
By default this is 0.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>Initialize</b>
|
||||||
|
<br><i>Initialize the LocationRequest with default parameters.
|
||||||
|
Default parameters are for a block accuracy, slowly updated location.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>IsInitialized <span style='color:blue'>As</span> <span style='color:#008B8B'>Boolean</span></b>
|
||||||
|
</li>
|
||||||
|
<li><b>SetExpirationDuration</b> (Millis <span style='color:blue'>As</span> <span style='color:#008B8B'>Long</span>)<b> <span style='color:blue'>As</span> <span style='color:#008B8B'>LocationRequest</span></b>
|
||||||
|
<br><i>Set the duration of this request, in milliseconds.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>SetExpirationTime</b> (Millis <span style='color:blue'>As</span> <span style='color:#008B8B'>Long</span>)<b> <span style='color:blue'>As</span> <span style='color:#008B8B'>LocationRequest</span></b>
|
||||||
|
<br><i>Set the request expiration time, in millisecond since boot.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>SetFastestInterval</b> (Millis <span style='color:blue'>As</span> <span style='color:#008B8B'>Long</span>)<b> <span style='color:blue'>As</span> <span style='color:#008B8B'>LocationRequest</span></b>
|
||||||
|
<br><i>Explicitly set the fastest interval for location updates, in milliseconds.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>SetInterval</b> (Millis <span style='color:blue'>As</span> <span style='color:#008B8B'>Long</span>)<b> <span style='color:blue'>As</span> <span style='color:#008B8B'>LocationRequest</span></b>
|
||||||
|
<br><i>Set the desired interval for active location updates, in milliseconds.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>SetNumUpdates</b> (NumUpdates <span style='color:blue'>As</span> <span style='color:#008B8B'>Int</span>)<b> <span style='color:blue'>As</span> <span style='color:#008B8B'>LocationRequest</span></b>
|
||||||
|
<br><i>Set the number of location updates.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>SetPriority</b> (Priority <span style='color:blue'>As</span> <span style='color:#008B8B'>Int</span>)<b> <span style='color:blue'>As</span> <span style='color:#008B8B'>LocationRequest</span></b>
|
||||||
|
<br><i>Set the priority of the request.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>SetSmallestDisplacement</b> (SmallestDisplacementMeters <span style='color:blue'>As</span> <span style='color:#008B8B'>Float</span>)<b> <span style='color:blue'>As</span> <span style='color:#008B8B'>LocationRequest</span></b>
|
||||||
|
<br><i>Set the minimum displacement between location updates in meters.
|
||||||
|
By default this is 0.</i>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</ul>
|
||||||
|
<ul>
|
||||||
|
<li><h3>LocationSettingsRequestBuilder</h3>
|
||||||
|
<h3>Methods:</h3>
|
||||||
|
<ul>
|
||||||
|
<li><b>AddLocationRequest</b> (LocationRequest1 <span style='color:blue'>As</span> <span style='color:#008B8B'>LocationRequest</span>)<b> <span style='color:blue'>As</span> <span style='color:#008B8B'>LocationSettingsRequestBuilder</span></b>
|
||||||
|
<br><i>Adds one LocationRequest that the client is interested in.
|
||||||
|
This method can be called multiple times if required to add additional location requests.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>Build <span style='color:blue'>As</span> <span style='color:#008B8B'>LocationSettingsRequest</span></b>
|
||||||
|
<br><i>Creates a LocationSettingsRequest.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>Initialize</b>
|
||||||
|
</li>
|
||||||
|
<li><b>IsInitialized <span style='color:blue'>As</span> <span style='color:#008B8B'>Boolean</span></b>
|
||||||
|
</li>
|
||||||
|
<li><b>SetAlwaysShow</b> (AlwaysShow <span style='color:blue'>As</span> <span style='color:#008B8B'>Boolean</span>)<b> <span style='color:blue'>As</span> <span style='color:#008B8B'>LocationSettingsRequestBuilder</span></b>
|
||||||
|
<br><i>Always show the dialog, without the "Never" option to suppress future dialogs from this app.
|
||||||
|
When this flag is set to true, the dialog will show up if the location settings do not satisfy the request, even if a user has previously chosen "Never".
|
||||||
|
NOTE: Only use this method if your dialog is the result of an explicit user-initiated action that requires location to proceed.
|
||||||
|
Cancelling this dialog should also cancel the initiated action.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>SetNeedBle</b> (NeedBle <span style='color:blue'>As</span> <span style='color:#008B8B'>Boolean</span>)<b> <span style='color:blue'>As</span> <span style='color:#008B8B'>LocationSettingsRequestBuilder</span></b>
|
||||||
|
<br><i>Sets whether the client wants BLE scan to be enabled.
|
||||||
|
When this flag is set to true, if the platform supports BLE scan mode and Bluetooth is off, the dialog will prompt the user to enable BLE scan.
|
||||||
|
If the platform doesn't support BLE scan mode, the dialog will prompt to enable Bluetooth.</i>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</ul>
|
||||||
|
<ul>
|
||||||
|
<li><h3>LocationSettingsResult</h3>
|
||||||
|
<h3>Methods:</h3>
|
||||||
|
<ul>
|
||||||
|
<li><b>GetLocationSettingsStates <span style='color:blue'>As</span> <span style='color:#008B8B'>LocationSettingsStates</span></b>
|
||||||
|
<br><i>Returns the location settings states.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>GetLocationSettingsStatus <span style='color:blue'>As</span> <span style='color:#008B8B'>LocationSettingsStatus</span></b>
|
||||||
|
<br><i>Returns the location settings result status.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>IsInitialized <span style='color:blue'>As</span> <span style='color:#008B8B'>Boolean</span></b>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</ul>
|
||||||
|
<ul>
|
||||||
|
<li><h3>LocationSettingsStates</h3>
|
||||||
|
<h3>Methods:</h3>
|
||||||
|
<ul>
|
||||||
|
<li><b>IsBlePresent <span style='color:blue'>As</span> <span style='color:#008B8B'>Boolean</span></b>
|
||||||
|
<br><i>Whether BLE is present on the device.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>IsBleusable <span style='color:blue'>As</span> <span style='color:#008B8B'>Boolean</span></b>
|
||||||
|
<br><i>Whether BLE is enabled and is usable by the app.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>IsGpsPresent <span style='color:blue'>As</span> <span style='color:#008B8B'>Boolean</span></b>
|
||||||
|
<br><i>Whether GPS provider is present on the device.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>IsGpsUsable <span style='color:blue'>As</span> <span style='color:#008B8B'>Boolean</span></b>
|
||||||
|
<br><i>Whether GPS provider is enabled and is usable by the app.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>IsInitialized <span style='color:blue'>As</span> <span style='color:#008B8B'>Boolean</span></b>
|
||||||
|
</li>
|
||||||
|
<li><b>IsLocationPresent <span style='color:blue'>As</span> <span style='color:#008B8B'>Boolean</span></b>
|
||||||
|
<br><i>Whether location is present on the device.
|
||||||
|
This method returns true when either GPS or network location provider is present.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>IsLocationUsable <span style='color:blue'>As</span> <span style='color:#008B8B'>Boolean</span></b>
|
||||||
|
<br><i>Whether location is enabled and is usable by the app.
|
||||||
|
This method returns true when either GPS or network location provider is usable.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>IsNetworkLocationPresent <span style='color:blue'>As</span> <span style='color:#008B8B'>Boolean</span></b>
|
||||||
|
<br><i>Whether network location provider is present on the device.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>IsNetworkLocationUsable <span style='color:blue'>As</span> <span style='color:#008B8B'>Boolean</span></b>
|
||||||
|
<br><i>Whether network location provider is enabled and usable by the app.</i>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</ul>
|
||||||
|
<ul>
|
||||||
|
<li><h3>LocationSettingsStatus</h3>
|
||||||
|
<h3>Events:</h3>
|
||||||
|
<ul>
|
||||||
|
<li><b>ResolutionDialogDismissed</b> (LocationSettingsUpdated <span style='color:blue'>As</span> <span style='color:#008B8B'>Boolean</span>)</li>
|
||||||
|
</ul>
|
||||||
|
<h3>Fields:</h3>
|
||||||
|
<ul>
|
||||||
|
<li><b>StatusCodes <span style='color:blue'>As</span> <span style='color:#008B8B'>StatusCodes</span></b>
|
||||||
|
<br><i>Contains the various StatusCode constants.</i>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<h3>Methods:</h3>
|
||||||
|
<ul>
|
||||||
|
<li><b>GetStatusCode <span style='color:blue'>As</span> <span style='color:#008B8B'>Int</span></b>
|
||||||
|
<br><i>Returns the status code that describes whether the location settings meet the location request requirements.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>IsInitialized <span style='color:blue'>As</span> <span style='color:#008B8B'>Boolean</span></b>
|
||||||
|
</li>
|
||||||
|
<li><b>StartResolutionDialog</b> (EventName <span style='color:blue'>As</span> <span style='color:#008B8B'>String</span>)<b></b>
|
||||||
|
<br><i>Starts the resolution dialog.
|
||||||
|
The user can then enable the location settings required to meet the location request requirements.
|
||||||
|
This method must be called from an Activity.
|
||||||
|
Raises the event:
|
||||||
|
ResolutionDialogDismissed(LocationSettingsUpdated As Boolean)</i>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</ul>
|
||||||
|
<ul>
|
||||||
|
<li><h3>Priority</h3>
|
||||||
|
<h3>Fields:</h3>
|
||||||
|
<ul>
|
||||||
|
<li><b>PRIORITY_BALANCED_POWER_ACCURACY <span style='color:blue'>As</span> <span style='color:#008B8B'>Int</span></b>
|
||||||
|
<br><i>Used with SetPriority(Int) to request "block" level accuracy.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>PRIORITY_HIGH_ACCURACY <span style='color:blue'>As</span> <span style='color:#008B8B'>Int</span></b>
|
||||||
|
<br><i>Used with SetPriority(Int) to request the most accurate locations available.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>PRIORITY_LOW_POWER <span style='color:blue'>As</span> <span style='color:#008B8B'>Int</span></b>
|
||||||
|
<br><i>Used with SetPriority(Int) to request "city" level accuracy.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>PRIORITY_NO_POWER <span style='color:blue'>As</span> <span style='color:#008B8B'>Int</span></b>
|
||||||
|
<br><i>Used with SetPriority(Int) to request the best accuracy possible with zero additional power consumption.</i>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</ul>
|
||||||
|
<ul>
|
||||||
|
<li><h3>StatusCodes</h3>
|
||||||
|
<h3>Fields:</h3>
|
||||||
|
<ul>
|
||||||
|
<li><b>RESOLUTION_REQUIRED <span style='color:blue'>As</span> <span style='color:#008B8B'>Int</span></b>
|
||||||
|
<br><i>Location settings do not meet the location request requirements.
|
||||||
|
Location settings can be changed to meet the location request requirements.
|
||||||
|
A resolution dialog is available.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>SETTINGS_CHANGE_UNAVAILABLE <span style='color:blue'>As</span> <span style='color:#008B8B'>Int</span></b>
|
||||||
|
<br><i>Location settings do not meet the location request requirements.
|
||||||
|
Location settings can't be changed to meet the location request requirements.
|
||||||
|
No resolution dialog is available.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>SUCCESS <span style='color:blue'>As</span> <span style='color:#008B8B'>Int</span></b>
|
||||||
|
<br><i>Location settings meet the location request requirements.</i>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</ul>
|
||||||
|
<ul>
|
||||||
|
<li><h3>SuspendedCause</h3>
|
||||||
|
<h3>Fields:</h3>
|
||||||
|
<ul>
|
||||||
|
<li><b>CAUSE_NETWORK_LOST <span style='color:blue'>As</span> <span style='color:#008B8B'>Int</span></b>
|
||||||
|
<br><i>A connection suspended cause informing you that a peer device connection was lost.</i>
|
||||||
|
</li>
|
||||||
|
<li><b>CAUSE_SERVICE_DISCONNECTED <span style='color:blue'>As</span> <span style='color:#008B8B'>Int</span></b>
|
||||||
|
<br><i>A connection suspended cause informing that the service has been killed.</i>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</ul>
|
||||||
|
<ul><li><h3>Author: Martin Pearman</h3></li></ul>
|
||||||
|
<ul><li><h3>Version: 1.31</h3></li></ul></body>
|
||||||
|
</html>
|
||||||
BIN
B4A/FusedLocationProvider.jar
Normal file
BIN
B4A/FusedLocationProvider.jar
Normal file
Binary file not shown.
531
B4A/FusedLocationProvider.xml
Normal file
531
B4A/FusedLocationProvider.xml
Normal file
@@ -0,0 +1,531 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<root>
|
||||||
|
<doclet-version-NOT-library-version>1.04</doclet-version-NOT-library-version>
|
||||||
|
<class>
|
||||||
|
<name>uk.co.martinpearman.b4a.fusedlocationprovider.LocationSettingsStatus</name>
|
||||||
|
<shortname>LocationSettingsStatus</shortname>
|
||||||
|
<objectwrapper>com.google.android.gms.common.api.Status</objectwrapper>
|
||||||
|
<owner>activity</owner>
|
||||||
|
<event>ResolutionDialogDismissed(LocationSettingsUpdated As Boolean)</event>
|
||||||
|
<method>
|
||||||
|
<name>StartResolutionDialog</name>
|
||||||
|
<comment>Starts the resolution dialog.
|
||||||
|
The user can then enable the location settings required to meet the location request requirements.
|
||||||
|
This method must be called from an Activity.
|
||||||
|
Raises the event:
|
||||||
|
ResolutionDialogDismissed(LocationSettingsUpdated As Boolean)</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EventName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>GetStatusCode</name>
|
||||||
|
<comment>Returns the status code that describes whether the location settings meet the location request requirements.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<field>
|
||||||
|
<name>StatusCodes</name>
|
||||||
|
<comment>Contains the various StatusCode constants.</comment>
|
||||||
|
<returntype>uk.co.martinpearman.b4a.fusedlocationprovider.LocationSettingsStatus.StatusCodes</returntype>
|
||||||
|
</field>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>uk.co.martinpearman.b4a.fusedlocationprovider.LocationSettingsStatus.StatusCodes</name>
|
||||||
|
<shortname>StatusCodes</shortname>
|
||||||
|
<owner>process</owner>
|
||||||
|
<field>
|
||||||
|
<name>SETTINGS_CHANGE_UNAVAILABLE</name>
|
||||||
|
<comment>Location settings do not meet the location request requirements.
|
||||||
|
Location settings can't be changed to meet the location request requirements.
|
||||||
|
No resolution dialog is available.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>SUCCESS</name>
|
||||||
|
<comment>Location settings meet the location request requirements.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>RESOLUTION_REQUIRED</name>
|
||||||
|
<comment>Location settings do not meet the location request requirements.
|
||||||
|
Location settings can be changed to meet the location request requirements.
|
||||||
|
A resolution dialog is available.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>uk.co.martinpearman.b4a.fusedlocationprovider.LocationSettingsStates</name>
|
||||||
|
<shortname>LocationSettingsStates</shortname>
|
||||||
|
<objectwrapper>com.google.android.gms.location.LocationSettingsStates</objectwrapper>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>IsGpsPresent</name>
|
||||||
|
<comment>Whether GPS provider is present on the device.</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsBlePresent</name>
|
||||||
|
<comment>Whether BLE is present on the device.</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsNetworkLocationUsable</name>
|
||||||
|
<comment>Whether network location provider is enabled and usable by the app.</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsNetworkLocationPresent</name>
|
||||||
|
<comment>Whether network location provider is present on the device.</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsLocationPresent</name>
|
||||||
|
<comment>Whether location is present on the device.
|
||||||
|
This method returns true when either GPS or network location provider is present.</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsGpsUsable</name>
|
||||||
|
<comment>Whether GPS provider is enabled and is usable by the app.</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsLocationUsable</name>
|
||||||
|
<comment>Whether location is enabled and is usable by the app.
|
||||||
|
This method returns true when either GPS or network location provider is usable.</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsBleusable</name>
|
||||||
|
<comment>Whether BLE is enabled and is usable by the app.</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>uk.co.martinpearman.b4a.fusedlocationprovider.LocationSettingsResult</name>
|
||||||
|
<shortname>LocationSettingsResult</shortname>
|
||||||
|
<objectwrapper>com.google.android.gms.location.LocationSettingsResult</objectwrapper>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>GetLocationSettingsStates</name>
|
||||||
|
<comment>Returns the location settings states.</comment>
|
||||||
|
<returntype>uk.co.martinpearman.b4a.fusedlocationprovider.LocationSettingsStates</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>GetLocationSettingsStatus</name>
|
||||||
|
<comment>Returns the location settings result status.</comment>
|
||||||
|
<returntype>uk.co.martinpearman.b4a.fusedlocationprovider.LocationSettingsStatus</returntype>
|
||||||
|
</method>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>uk.co.martinpearman.b4a.fusedlocationprovider.LocationSettingsRequestBuilder</name>
|
||||||
|
<shortname>LocationSettingsRequestBuilder</shortname>
|
||||||
|
<objectwrapper>com.google.android.gms.location.LocationSettingsRequest.Builder</objectwrapper>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>Build</name>
|
||||||
|
<comment>Creates a LocationSettingsRequest.</comment>
|
||||||
|
<returntype>com.google.android.gms.location.LocationSettingsRequest</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>SetNeedBle</name>
|
||||||
|
<comment>Sets whether the client wants BLE scan to be enabled.
|
||||||
|
When this flag is set to true, if the platform supports BLE scan mode and Bluetooth is off, the dialog will prompt the user to enable BLE scan.
|
||||||
|
If the platform doesn't support BLE scan mode, the dialog will prompt to enable Bluetooth.</comment>
|
||||||
|
<returntype>uk.co.martinpearman.b4a.fusedlocationprovider.LocationSettingsRequestBuilder</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>NeedBle</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>AddLocationRequest</name>
|
||||||
|
<comment>Adds one LocationRequest that the client is interested in.
|
||||||
|
This method can be called multiple times if required to add additional location requests.</comment>
|
||||||
|
<returntype>uk.co.martinpearman.b4a.fusedlocationprovider.LocationSettingsRequestBuilder</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>LocationRequest1</name>
|
||||||
|
<type>com.google.android.gms.location.LocationRequest</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>SetAlwaysShow</name>
|
||||||
|
<comment>Always show the dialog, without the "Never" option to suppress future dialogs from this app.
|
||||||
|
When this flag is set to true, the dialog will show up if the location settings do not satisfy the request, even if a user has previously chosen "Never".
|
||||||
|
NOTE: Only use this method if your dialog is the result of an explicit user-initiated action that requires location to proceed.
|
||||||
|
Cancelling this dialog should also cancel the initiated action.</comment>
|
||||||
|
<returntype>uk.co.martinpearman.b4a.fusedlocationprovider.LocationSettingsRequestBuilder</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>AlwaysShow</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Initialize</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest</name>
|
||||||
|
<shortname>LocationRequest</shortname>
|
||||||
|
<objectwrapper>com.google.android.gms.location.LocationRequest</objectwrapper>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>SetExpirationTime</name>
|
||||||
|
<comment>Set the request expiration time, in millisecond since boot.</comment>
|
||||||
|
<returntype>uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Millis</name>
|
||||||
|
<type>long</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>SetPriority</name>
|
||||||
|
<comment>Set the priority of the request.</comment>
|
||||||
|
<returntype>uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Priority</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>SetFastestInterval</name>
|
||||||
|
<comment>Explicitly set the fastest interval for location updates, in milliseconds.</comment>
|
||||||
|
<returntype>uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Millis</name>
|
||||||
|
<type>long</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Initialize</name>
|
||||||
|
<comment>Initialize the LocationRequest with default parameters.
|
||||||
|
Default parameters are for a block accuracy, slowly updated location.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>GetNumUpdates</name>
|
||||||
|
<comment>Get the number of updates requested.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>GetSmallestDisplacement</name>
|
||||||
|
<comment>Get the minimum displacement between location updates in meters.
|
||||||
|
By default this is 0.</comment>
|
||||||
|
<returntype>float</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>GetFastestInterval</name>
|
||||||
|
<comment>Get the fastest interval of this request, in milliseconds.</comment>
|
||||||
|
<returntype>long</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>GetExpirationTime</name>
|
||||||
|
<comment>Get the request expiration time, in milliseconds since boot.</comment>
|
||||||
|
<returntype>long</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>GetPriority</name>
|
||||||
|
<comment>Get the quality of the request.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>SetSmallestDisplacement</name>
|
||||||
|
<comment>Set the minimum displacement between location updates in meters.
|
||||||
|
By default this is 0.</comment>
|
||||||
|
<returntype>uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>SmallestDisplacementMeters</name>
|
||||||
|
<type>float</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>GetInterval</name>
|
||||||
|
<comment>Get the desired interval of this request, in milliseconds.</comment>
|
||||||
|
<returntype>long</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>SetInterval</name>
|
||||||
|
<comment>Set the desired interval for active location updates, in milliseconds.</comment>
|
||||||
|
<returntype>uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Millis</name>
|
||||||
|
<type>long</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>SetExpirationDuration</name>
|
||||||
|
<comment>Set the duration of this request, in milliseconds.</comment>
|
||||||
|
<returntype>uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Millis</name>
|
||||||
|
<type>long</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>SetNumUpdates</name>
|
||||||
|
<comment>Set the number of location updates.</comment>
|
||||||
|
<returntype>uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>NumUpdates</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<field>
|
||||||
|
<name>Priority</name>
|
||||||
|
<comment>Contains the various priority constants.</comment>
|
||||||
|
<returntype>uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest.Priority</returntype>
|
||||||
|
</field>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest.Priority</name>
|
||||||
|
<shortname>Priority</shortname>
|
||||||
|
<owner>process</owner>
|
||||||
|
<field>
|
||||||
|
<name>PRIORITY_HIGH_ACCURACY</name>
|
||||||
|
<comment>Used with SetPriority(Int) to request the most accurate locations available.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>PRIORITY_LOW_POWER</name>
|
||||||
|
<comment>Used with SetPriority(Int) to request "city" level accuracy.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>PRIORITY_NO_POWER</name>
|
||||||
|
<comment>Used with SetPriority(Int) to request the best accuracy possible with zero additional power consumption.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>PRIORITY_BALANCED_POWER_ACCURACY</name>
|
||||||
|
<comment>Used with SetPriority(Int) to request "block" level accuracy.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper</name>
|
||||||
|
<shortname>FusedLocationProvider</shortname>
|
||||||
|
<objectwrapper>uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProvider</objectwrapper>
|
||||||
|
<owner>process</owner>
|
||||||
|
<event>ConnectionFailed(ConnectionResult1 As Int)</event>
|
||||||
|
<event>ConnectionSuccess</event>
|
||||||
|
<event>ConnectionSuspended(SuspendedCause1 As Int)</event>
|
||||||
|
<event>LocationChanged(Location1 As Location)</event>
|
||||||
|
<event>LocationSettingsChecked(LocationSettingsResult1 As LocationSettingsResult)</event>
|
||||||
|
<method>
|
||||||
|
<name>GetLastKnownLocation</name>
|
||||||
|
<comment>Returns the best most recent location currently available.
|
||||||
|
Can only be called if the FusedLocationProvider is connected.
|
||||||
|
The returned Location object will not be initialized if no last known location is available.</comment>
|
||||||
|
<returntype>anywheresoftware.b4a.gps.LocationWrapper</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>RemoveLocationUpdates</name>
|
||||||
|
<comment>Remove all requests for location updates.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Connect</name>
|
||||||
|
<comment>Attempt to connect to the Location Services.
|
||||||
|
Will raise either event:
|
||||||
|
ConnectionFailed(ConnectionResult1 As Int)
|
||||||
|
ConnectionSuccess</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Initialize</name>
|
||||||
|
<comment>Initialize the FusedLocationProvider object.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>pBA</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EventName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>CheckLocationSettings</name>
|
||||||
|
<comment>Checks if the relevant system settings are enabled on the device to carry out the desired location requests.
|
||||||
|
Raises the event:
|
||||||
|
LocationSettingsChecked(LocationSettingsResult1 As LocationSettingsResult)</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>LocationSettingsRequest1</name>
|
||||||
|
<type>com.google.android.gms.location.LocationSettingsRequest</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>RequestLocationUpdates</name>
|
||||||
|
<comment>Request for location updates.
|
||||||
|
The LocationRequest object defines the criteria for which location updates are requested.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>LocationRequest1</name>
|
||||||
|
<type>com.google.android.gms.location.LocationRequest</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Disconnect</name>
|
||||||
|
<comment>Disconnect from the Location Services.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsConnecting</name>
|
||||||
|
<comment>Returns whether the FusedLocationProvider is trying to connect to the Location Services.</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsConnected</name>
|
||||||
|
<comment>Returns whether the FusedLocationProvider is connected to the Location Services.</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<field>
|
||||||
|
<name>ConnectionResult</name>
|
||||||
|
<comment>Contains the various ConnectionResult constants.</comment>
|
||||||
|
<returntype>uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper.ConnectionResult</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>SuspendedCause</name>
|
||||||
|
<comment>Contains the various SuspendedCause constants.</comment>
|
||||||
|
<returntype>uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper.SuspendedCause</returntype>
|
||||||
|
</field>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper.ConnectionResult</name>
|
||||||
|
<shortname>ConnectionResult</shortname>
|
||||||
|
<owner>process</owner>
|
||||||
|
<field>
|
||||||
|
<name>SUCCESS</name>
|
||||||
|
<comment>The connection was successful.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>INTERNAL_ERROR</name>
|
||||||
|
<comment>An internal error occurred.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>RESOLUTION_REQUIRED</name>
|
||||||
|
<comment>Completing the connection requires some form of resolution.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>SERVICE_INVALID</name>
|
||||||
|
<comment>The version of the Google Play services installed on this device is not authentic.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>CANCELLED</name>
|
||||||
|
<comment>The client cancelled the connection by calling Disconnect().</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>INVALID_ACCOUNT</name>
|
||||||
|
<comment>The client attempted to connect to the service with an invalid account name specified.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>DEVELOPER_ERROR</name>
|
||||||
|
<comment>The application is misconfigured.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>SERVICE_MISSING</name>
|
||||||
|
<comment>Google Play services is missing on this device.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>LICENSE_CHECK_FAILED</name>
|
||||||
|
<comment>The application is not licensed to the user. This error is not recoverable and will be treated as fatal.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>NETWORK_ERROR</name>
|
||||||
|
<comment>A network error occurred. Retrying should resolve the problem.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>SERVICE_DISABLED</name>
|
||||||
|
<comment>The installed version of Google Play services has been disabled on this device.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>API_UNAVAILABLE</name>
|
||||||
|
<comment>One of the API components you attempted to connect to is not available.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>SERVICE_VERSION_UPDATE_REQUIRED</name>
|
||||||
|
<comment>The installed version of Google Play services is out of date.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>SIGN_IN_REQUIRED</name>
|
||||||
|
<comment>The client attempted to connect to the service but the user is not signed in.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper.SuspendedCause</name>
|
||||||
|
<shortname>SuspendedCause</shortname>
|
||||||
|
<owner>process</owner>
|
||||||
|
<field>
|
||||||
|
<name>CAUSE_NETWORK_LOST</name>
|
||||||
|
<comment>A connection suspended cause informing you that a peer device connection was lost.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>CAUSE_SERVICE_DISCONNECTED</name>
|
||||||
|
<comment>A connection suspended cause informing that the service has been killed.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
</class>
|
||||||
|
<version>1.31</version>
|
||||||
|
<comment>The FusedLocationProvider intelligently manages the underlying location technology and gives you the best location according to your needs.
|
||||||
|
https://developer.android.com/google/play-services/location.html
|
||||||
|
This library depends on the Google Play Services library, android-support-v4 library and the GPS library.
|
||||||
|
The GPS library is required in order to use it's Location object.</comment>
|
||||||
|
<author>Martin Pearman</author>
|
||||||
|
<dependsOn>android-support-v4</dependsOn>
|
||||||
|
<dependsOn>google-play-services</dependsOn>
|
||||||
|
<dependsOn>GPS</dependsOn>
|
||||||
|
</root>
|
||||||
BIN
B4A/GPS.jar
Normal file
BIN
B4A/GPS.jar
Normal file
Binary file not shown.
266
B4A/GPS.xml
Normal file
266
B4A/GPS.xml
Normal file
@@ -0,0 +1,266 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<root>
|
||||||
|
<doclet-version-NOT-library-version>1.04</doclet-version-NOT-library-version>
|
||||||
|
<class>
|
||||||
|
<name>anywheresoftware.b4a.gps.LocationWrapper</name>
|
||||||
|
<shortname>Location</shortname>
|
||||||
|
<comment>A Location object holds various information about a specific GPS fix.
|
||||||
|
In most cases you will work with locations that are passed to the GPS LocationChanged event.
|
||||||
|
The location object can also be used to calculate distance and bearing to other locations.</comment>
|
||||||
|
<objectwrapper>android.location.Location</objectwrapper>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>Initialize</name>
|
||||||
|
<comment>Initializes an empty location object.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ConvertToSeconds</name>
|
||||||
|
<comment>Converts the given coordinate to a string formatted with the following format:
|
||||||
|
[+-]DDD:MM:SS.SSSSS (Minute = 1 / 60 of a degree, Second = 1 / 3600 of a degree)</comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Coordinate</name>
|
||||||
|
<type>double</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>DistanceTo</name>
|
||||||
|
<comment>Returns the distance to the given location, measured in meters.</comment>
|
||||||
|
<returntype>float</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>TargetLocation</name>
|
||||||
|
<type>android.location.Location</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ConvertToMinutes</name>
|
||||||
|
<comment>Converts the given coordinate to a string formatted with the following format:
|
||||||
|
[+-]DDD:MM.MMMMM (Minute = 1 / 60 of a degree)</comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Coordinate</name>
|
||||||
|
<type>double</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Initialize2</name>
|
||||||
|
<comment>Initializes the location object with the given Latitude and Longitude.
|
||||||
|
Values can be formatted in any of the three formats:
|
||||||
|
Degrees: [+-]DDD.DDDDD
|
||||||
|
Minutes: [+-]DDD:MM.MMMMM (Minute = 1 / 60 of a degree)
|
||||||
|
Seconds: [+-]DDD:MM:SS.SSSSS (Second = 1 / 3600 of a degree)
|
||||||
|
Example:<code>
|
||||||
|
Dim L1 As Location
|
||||||
|
L1.Initialize2("45:30:30", "45:20:15")</code></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Latitude</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Longitude</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>BearingTo</name>
|
||||||
|
<comment>Returns the bearing to the given location.</comment>
|
||||||
|
<returntype>float</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>TargetLocation</name>
|
||||||
|
<type>android.location.Location</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>AltitudeValid</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<comment>Returns true if the fix includes altitude value.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Accuracy</name>
|
||||||
|
<returntype>float</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>value</name>
|
||||||
|
<type>float</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets the fix accuracy (meters).</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>BearingValid</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<comment>Returns true if the fix includes bearing value.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>SpeedValid</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<comment>Returns true if the fix includes speed value.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Altitude</name>
|
||||||
|
<returntype>double</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>value</name>
|
||||||
|
<type>double</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets the fix altitude (meters).</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Speed</name>
|
||||||
|
<returntype>float</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>value</name>
|
||||||
|
<type>float</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets the fix speed (meters / second).</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Time</name>
|
||||||
|
<returntype>long</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>value</name>
|
||||||
|
<type>long</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets the fix time.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Latitude</name>
|
||||||
|
<returntype>double</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>value</name>
|
||||||
|
<type>double</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets the fix latitude (degrees from -90 (South) to 90 (North)).</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Longitude</name>
|
||||||
|
<returntype>double</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>value</name>
|
||||||
|
<type>double</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets the fix longitude (degrees from -180 to 180, positive values represent the eastern hemisphere).</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>AccuracyValid</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<comment>Returns true if the fix includes accuracy value.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Bearing</name>
|
||||||
|
<returntype>float</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>value</name>
|
||||||
|
<type>float</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets the fix bearing East of true North.</comment>
|
||||||
|
</property>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>anywheresoftware.b4a.gps.GpsSatelliteWrapper</name>
|
||||||
|
<shortname>GPSSatellite</shortname>
|
||||||
|
<comment>The GPSSatellite object holds various information about a GPS satellite. A List with the available satellites is passed to the GpsStatus event.</comment>
|
||||||
|
<objectwrapper>android.location.GpsSatellite</objectwrapper>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>UsedInFix</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<comment>Tests whether this satellite was used to calculate the most recent fix.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Prn</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<comment>Returns the PRN (pseudo-random number) for the satellite.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Elevation</name>
|
||||||
|
<returntype>float</returntype>
|
||||||
|
<comment>Returns the satellite elevation in degrees (0 - 90).</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Azimuth</name>
|
||||||
|
<returntype>float</returntype>
|
||||||
|
<comment>Returns the satellite azimuth in degrees (0 - 360).</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Snr</name>
|
||||||
|
<returntype>float</returntype>
|
||||||
|
<comment>Returns the signal to noise ratio for the satellite.</comment>
|
||||||
|
</property>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>anywheresoftware.b4a.gps.GPS</name>
|
||||||
|
<shortname>GPS</shortname>
|
||||||
|
<comment>The main object that raises the GPS events.
|
||||||
|
Note that this library requires Android 2.0 or above.</comment>
|
||||||
|
<owner CheckForReinitialize="true">process</owner>
|
||||||
|
<event>LocationChanged (Location1 As Location)</event>
|
||||||
|
<event>UserEnabled (Enabled As Boolean)</event>
|
||||||
|
<event>GpsStatus (Satellites As List)</event>
|
||||||
|
<event>NMEA (TimeStamp As Long, Sentence As String)</event>
|
||||||
|
<permission>android.permission.ACCESS_FINE_LOCATION</permission>
|
||||||
|
<method>
|
||||||
|
<name>Initialize</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>EventName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name RaisesSynchronousEvents="true">Start</name>
|
||||||
|
<comment>Starts listening for events.
|
||||||
|
MinimumTime - The shortest period (measured in milliseconds) between events. Pass 0 for highest frequency.
|
||||||
|
MinimumDistance - The shortest change in distance (measured in meters) for which to raise events. Pass 0 for highest frequency.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>MinimumTime</name>
|
||||||
|
<type>long</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>MinimumDistance</name>
|
||||||
|
<type>float</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Stop</name>
|
||||||
|
<comment>Stops listening to the GPS. You will usually want to call Stop inside Sub Activity_Pause.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>GPSEnabled</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<comment>Tests whether the user has enabled the GPS.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>LocationSettingsIntent</name>
|
||||||
|
<returntype>android.content.Intent</returntype>
|
||||||
|
<comment>Returns the intent that is used to show the global locations settings.
|
||||||
|
Example:<code>
|
||||||
|
If GPS1.GPSEnabled = False Then StartActivity(GPS1.LocationSettingsIntent)</code></comment>
|
||||||
|
</property>
|
||||||
|
</class>
|
||||||
|
<version>1.2</version>
|
||||||
|
<comment>The GPS library allows you to get information from the phone's GPS device.
|
||||||
|
See the <link>GPS tutorial|http://www.basic4ppc.com/forum/basic4android-getting-started-tutorials/6592-gps-tutorial.html</link> for more information about this library.</comment>
|
||||||
|
</root>
|
||||||
BIN
B4A/GifDecoder.jar
Normal file
BIN
B4A/GifDecoder.jar
Normal file
Binary file not shown.
121
B4A/GifDecoder.xml
Normal file
121
B4A/GifDecoder.xml
Normal file
@@ -0,0 +1,121 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<root>
|
||||||
|
<doclet-version-NOT-library-version>1.00</doclet-version-NOT-library-version>
|
||||||
|
<class>
|
||||||
|
<name>anywheresoftware.b4a.agraham.gifdecoder.GifDecoder</name>
|
||||||
|
<shortname>GifDecoder</shortname>
|
||||||
|
<comment>Processing larger animated GIFs with many frames can be a slow process on a device.
|
||||||
|
Also such files may occupy a large amount of memory as each individual frame is saved for
|
||||||
|
display as a bitmap when the GIF is loaded. Invoking Load will dispose of any existing frame
|
||||||
|
bitmaps. If it is required to keep any of those bitmaps they should be copied, not assigned,
|
||||||
|
into another bitmap.</comment>
|
||||||
|
<owner>activity</owner>
|
||||||
|
<method>
|
||||||
|
<name>DisposeFrames</name>
|
||||||
|
<comment>Disposes of all the frame bitmaps of any presently loaded GIF file.
|
||||||
|
This may be necessary for memory management purposes on a device.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Load</name>
|
||||||
|
<comment>Loads the GIF from the pathname specified and decodes the individual frames.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>dir</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>gifname</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Delay</name>
|
||||||
|
<comment>Returns the delay time, in milliseconds, for the frame number specified.
|
||||||
|
This time is the period for which the frame should be displayed before advancing
|
||||||
|
to the next frame.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>frame</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Frame</name>
|
||||||
|
<comment>Returns a Bitmap containing the specified frame.</comment>
|
||||||
|
<returntype>android.graphics.Bitmap</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>frame</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>SaveFrame</name>
|
||||||
|
<comment>Saves a frame to to the file and path specified in the format specified.
|
||||||
|
Note that a file extension is not automatically added and must be specified
|
||||||
|
as part of the filename. The file formats are "J" for jpg and "P" for png.
|
||||||
|
Anything else is saved as jpg. Quality is 0 to 100 and is only relevant for jpgs
|
||||||
|
0 meaning compress for small size, 100 meaning compress for max quality.
|
||||||
|
PNG which is lossless, will ignore the quality setting.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>frame</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>dir</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>filename</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>format</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>quality</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>FrameWidth</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<comment>Returns the width of each frame in the last GIF loaded.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>LoopCount</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<comment>Returns the iteration count, if one was specified, in the last GIF loaded otherwise
|
||||||
|
it returns 1. The iteration count specifies how many times the animation should be displayed.
|
||||||
|
A count of 0 means repeat indefinitely.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>FrameHeight</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<comment>Returns the height of each frame in the last GIF loaded.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Version</name>
|
||||||
|
<returntype>double</returntype>
|
||||||
|
<comment>Returns the version number of the library.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>FrameCount</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<comment>Returns the number of frames in the last GIF loaded.</comment>
|
||||||
|
</property>
|
||||||
|
</class>
|
||||||
|
<version>1.0</version>
|
||||||
|
<comment>The GifDecoder library provides a GifDecoder object that provides the facility to
|
||||||
|
extract the individual frames and associated delay information from an animated GIF file.
|
||||||
|
|
||||||
|
No copyright is asserted on the source or object code of this library. It may be used for
|
||||||
|
any purpose, however, refer to the Unisys LZW patent for any additional restrictions.
|
||||||
|
|
||||||
|
The decoder was originally written as a component of a bigger application by Kevin Weiner of
|
||||||
|
FM Software using an LZW decoder adapted from John Cristy's ImageMagick. Performance greatly
|
||||||
|
improved, some bugs squashed, adapted for use with Basic4ppc and further translated into Java
|
||||||
|
for use in Basic4android applications by Andrew Graham.</comment>
|
||||||
|
</root>
|
||||||
BIN
B4A/GoogleMaps.jar
Normal file
BIN
B4A/GoogleMaps.jar
Normal file
Binary file not shown.
653
B4A/GoogleMaps.xml
Normal file
653
B4A/GoogleMaps.xml
Normal file
@@ -0,0 +1,653 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<root>
|
||||||
|
<doclet-version-NOT-library-version>1.07</doclet-version-NOT-library-version>
|
||||||
|
<class>
|
||||||
|
<name>anywheresoftware.b4a.objects.MapFragmentWrapper</name>
|
||||||
|
<shortname>MapFragment</shortname>
|
||||||
|
<owner>activity</owner>
|
||||||
|
<event>Ready</event>
|
||||||
|
<event>CameraChange (Position As CameraPosition)</event>
|
||||||
|
<event>Click (Point As LatLng)</event>
|
||||||
|
<event>LongClick (Point As LatLng)</event>
|
||||||
|
<event>MarkerClick (SelectedMarker As Marker) As Boolean 'Return True to consume the click</event>
|
||||||
|
<permission>android.permission.INTERNET</permission>
|
||||||
|
<permission>com.google.android.providers.gsf.permission.READ_GSERVICES</permission>
|
||||||
|
<permission>android.permission.ACCESS_COARSE_LOCATION</permission>
|
||||||
|
<permission>android.permission.ACCESS_FINE_LOCATION</permission>
|
||||||
|
<permission>$PACKAGE$.permission.MAPS_RECEIVE</permission>
|
||||||
|
<permission>android.permission.ACCESS_NETWORK_STATE</permission>
|
||||||
|
<method>
|
||||||
|
<name>DesignerCreateView</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>base</name>
|
||||||
|
<type>anywheresoftware.b4a.objects.PanelWrapper</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>lw</name>
|
||||||
|
<type>anywheresoftware.b4a.objects.LabelWrapper</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>props</name>
|
||||||
|
<type>anywheresoftware.b4a.objects.collections.Map</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>GetOpenSourceLicenseInfo</name>
|
||||||
|
<comment>Should not be used.</comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>GetMap</name>
|
||||||
|
<comment>Returns the GoogleMap object. You should check that the object returned is initialized.
|
||||||
|
It will not be initialized if there was any error.
|
||||||
|
The map is only available after the Ready event fires.</comment>
|
||||||
|
<returntype>anywheresoftware.b4a.objects.MapFragmentWrapper.GoogleMapWrapper</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsGooglePlayServicesAvailable</name>
|
||||||
|
<comment>Tests whether Google Play Services area available.</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Initialize</name>
|
||||||
|
<comment>Initializes this object and adds the map to the given parent.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EventName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Parent</name>
|
||||||
|
<type>android.view.ViewGroup</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<designerProperty>key:MapType, displayname:Map Type, fieldtype:String, defaultvalue:NORMAL, list:NORMAL|SATELLITE|TERRAIN</designerProperty>
|
||||||
|
<designerProperty>key:TrafficEnabled, displayname:Traffic Enabled, fieldtype:Boolean, defaultvalue:False, description:Whether to show the traffic layer.</designerProperty>
|
||||||
|
<designerProperty>key:BuildingsEnabled, displayname:Building Enabled, fieldtype:Boolean, defaultvalue:False, description:Whether to show the buildings layer.</designerProperty>
|
||||||
|
<designerProperty>key:auto1CompassEnabled, displayname:Compass Enabled, fieldtype:Boolean, defaultvalue:True</designerProperty>
|
||||||
|
<designerProperty>key:auto1MyLocationButtonEnabled, displayname:MyLocation Button Enabled, fieldtype:Boolean, defaultvalue:True</designerProperty>
|
||||||
|
<designerProperty>key:auto1RotateGesturesEnabled, displayname:Rotate Gestures Enabled, fieldtype:Boolean, defaultvalue:True</designerProperty>
|
||||||
|
<designerProperty>key:auto1ScrollGesturesEnabled, displayname:Scroll Gestures Enabled, fieldtype:Boolean, defaultvalue:True</designerProperty>
|
||||||
|
<designerProperty>key:auto1TiltGesturesEnabled, displayname:Tilt Gestures Enabled, fieldtype:Boolean, defaultvalue:True</designerProperty>
|
||||||
|
<designerProperty>key:auto1ZoomControlsEnabled, displayname:Zoom Controls Enabled, fieldtype:Boolean, defaultvalue:True</designerProperty>
|
||||||
|
<designerProperty>key:auto1ZoomGesturesEnabled, displayname:Zoom Gestures Enabled, fieldtype:Boolean, defaultvalue:True</designerProperty>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>anywheresoftware.b4a.objects.MapFragmentWrapper.GoogleMapWrapper</name>
|
||||||
|
<shortname>GoogleMap</shortname>
|
||||||
|
<objectwrapper>com.google.android.gms.maps.GoogleMap</objectwrapper>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>AddMarker2</name>
|
||||||
|
<comment>Similar to AddMarker. The last parameter sets the marker's hue color. It should be
|
||||||
|
one of the HUE constants.</comment>
|
||||||
|
<returntype>anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Lat</name>
|
||||||
|
<type>double</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Lon</name>
|
||||||
|
<type>double</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Title</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>HueColor</name>
|
||||||
|
<type>float</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>AddMarker</name>
|
||||||
|
<comment>Adds a marker to the map.
|
||||||
|
This method returns a Marker object which you can further customize.</comment>
|
||||||
|
<returntype>anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Lat</name>
|
||||||
|
<type>double</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Lon</name>
|
||||||
|
<type>double</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Title</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>AddMarker3</name>
|
||||||
|
<comment>Similar to AddMarker. The last parameter sets the marker icon.</comment>
|
||||||
|
<returntype>anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Lat</name>
|
||||||
|
<type>double</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Lon</name>
|
||||||
|
<type>double</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Title</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Bitmap</name>
|
||||||
|
<type>android.graphics.Bitmap</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Clear</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>AnimateCamera</name>
|
||||||
|
<comment>Moves the camera to the new position. The movement is animated.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>NewPosition</name>
|
||||||
|
<type>com.google.android.gms.maps.model.CameraPosition</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>GetUiSettings</name>
|
||||||
|
<comment>Returns a MapUiSettings object which you can use to configure the user interface.</comment>
|
||||||
|
<returntype>anywheresoftware.b4a.objects.MapFragmentWrapper.UiSettingsWrapper</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>AddPolyline</name>
|
||||||
|
<comment>Adds a Polyline. This method returns a Polyline object which you should use to set the points.</comment>
|
||||||
|
<returntype>anywheresoftware.b4a.objects.MapFragmentWrapper.PolylineWrapper</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>MoveCamera</name>
|
||||||
|
<comment>Immediately moves the camera to the new position.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>NewPosition</name>
|
||||||
|
<type>com.google.android.gms.maps.model.CameraPosition</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>CameraPosition</name>
|
||||||
|
<returntype>anywheresoftware.b4a.objects.MapFragmentWrapper.CameraPositionWrapper</returntype>
|
||||||
|
<comment>Returns the current camera position.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>MyLocationEnabled</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>v</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets whether the device location will be marked.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>MyLocation</name>
|
||||||
|
<returntype>anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper</returntype>
|
||||||
|
<comment>Returns the current location. Will return an uninitialized object if the location is not available.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>TrafficEnabled</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>v</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets whether traffic data is drawn on the map (if such data is available).</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>MapType</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>v</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets the map type. The value should be one of the MAP_TYPE constants.</comment>
|
||||||
|
</property>
|
||||||
|
<field>
|
||||||
|
<name>HUE_GREEN</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>float</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>MAP_TYPE_SATELLITE</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>HUE_AZURE</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>float</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>HUE_ORANGE</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>float</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>HUE_MAGENTA</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>float</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>HUE_YELLOW</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>float</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>HUE_VIOLET</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>float</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>MAP_TYPE_TERRAIN</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>HUE_RED</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>float</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>MAP_TYPE_NONE</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>HUE_ROSE</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>float</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>MAP_TYPE_NORMAL</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>HUE_CYAN</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>float</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>MAP_TYPE_HYBRID</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>HUE_BLUE</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>float</returntype>
|
||||||
|
</field>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>anywheresoftware.b4a.objects.MapFragmentWrapper.CameraPositionWrapper</name>
|
||||||
|
<shortname>CameraPosition</shortname>
|
||||||
|
<comment>The map view is modeled as a camera looking down on a flat plane.
|
||||||
|
See this <link>link|https://developers.google.com/maps/documentation/android/views#the_camera_position</link> for more information about the possible values.</comment>
|
||||||
|
<objectwrapper>com.google.android.gms.maps.model.CameraPosition</objectwrapper>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>Initialize2</name>
|
||||||
|
<comment>Initializes the camera position with the given latitude, longitude, zoom, bearing and tile.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Lat</name>
|
||||||
|
<type>double</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Lng</name>
|
||||||
|
<type>double</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Zoom</name>
|
||||||
|
<type>float</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Bearing</name>
|
||||||
|
<type>float</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Tilt</name>
|
||||||
|
<type>float</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Initialize</name>
|
||||||
|
<comment>Initializes the camera position with the given latitude, longitude and zoom.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Lat</name>
|
||||||
|
<type>double</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Lng</name>
|
||||||
|
<type>double</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Zoom</name>
|
||||||
|
<type>float</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>Target</name>
|
||||||
|
<returntype>anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper</returntype>
|
||||||
|
<comment>Returns the location that the camera is pointing at.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Zoom</name>
|
||||||
|
<returntype>float</returntype>
|
||||||
|
<comment>Returns the zoom level.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Tilt</name>
|
||||||
|
<returntype>float</returntype>
|
||||||
|
<comment>Returns the tilt value.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Bearing</name>
|
||||||
|
<returntype>float</returntype>
|
||||||
|
<comment>Returns the direction the camera is pointing at.</comment>
|
||||||
|
</property>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper</name>
|
||||||
|
<shortname>LatLng</shortname>
|
||||||
|
<comment>Holds latitude and longitude values.</comment>
|
||||||
|
<objectwrapper>com.google.android.gms.maps.model.LatLng</objectwrapper>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Initialize</name>
|
||||||
|
<comment>Initializes a new object.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Latitude</name>
|
||||||
|
<type>double</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Longitude</name>
|
||||||
|
<type>double</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>Latitude</name>
|
||||||
|
<returntype>double</returntype>
|
||||||
|
<comment>Returns the latitude value.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Longitude</name>
|
||||||
|
<returntype>double</returntype>
|
||||||
|
<comment>Returns the longitude value.</comment>
|
||||||
|
</property>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper</name>
|
||||||
|
<shortname>Marker</shortname>
|
||||||
|
<comment>An icon placed on the map. Call GoogleMap.AddMarker to create such a marker.</comment>
|
||||||
|
<objectwrapper>com.google.android.gms.maps.model.Marker</objectwrapper>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>Remove</name>
|
||||||
|
<comment>Removes the marker from the map.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>Draggable</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>v</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets whether the marker can be dragged by the user.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Position</name>
|
||||||
|
<returntype>anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>value</name>
|
||||||
|
<type>anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets the marker position.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>InfoWindowShown</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>v</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets whether the info window is shown.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Visible</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>v</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets whether the marker is visible.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Title</name>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>v</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets the marker title.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Snippet</name>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>v</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets the snippet text that appears when the marker is clicked.</comment>
|
||||||
|
</property>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>anywheresoftware.b4a.objects.MapFragmentWrapper.PolylineWrapper</name>
|
||||||
|
<shortname>Polyline</shortname>
|
||||||
|
<comment>A series of lines added to the map.
|
||||||
|
Call GoogleMap.AddPolyline to create this object.</comment>
|
||||||
|
<objectwrapper>com.google.android.gms.maps.model.Polyline</objectwrapper>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>Remove</name>
|
||||||
|
<comment>Removes the line from the map.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>Points</name>
|
||||||
|
<returntype>anywheresoftware.b4a.objects.collections.List</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>points</name>
|
||||||
|
<type>anywheresoftware.b4a.objects.collections.List</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets the list of points that build the lines.
|
||||||
|
The list should hold objects of type LatLng.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>ZIndex</name>
|
||||||
|
<returntype>float</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>v</name>
|
||||||
|
<type>float</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets the line z-index.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Color</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>v</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets the line color.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Visible</name>
|
||||||
|
<parameter>
|
||||||
|
<name>v</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Geodesic</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>v</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets whether the line segments are geodesic lines (shortest path on the earth surface) or straight lines.
|
||||||
|
The default value is False.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Width</name>
|
||||||
|
<returntype>float</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>v</name>
|
||||||
|
<type>float</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets the line width.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Visibile</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<comment>Gets or sets whether this line is visible.</comment>
|
||||||
|
</property>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>anywheresoftware.b4a.objects.MapFragmentWrapper.UiSettingsWrapper</name>
|
||||||
|
<shortname>MapUiSettings</shortname>
|
||||||
|
<comment>Call GoogleMap.GetUiSettings to obtain this object.</comment>
|
||||||
|
<objectwrapper>com.google.android.gms.maps.UiSettings</objectwrapper>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>CompassEnabled</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>v</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets whether the compass is enabled.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>ZoomControlsEnabled</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>v</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets whether zoom controls are enabled.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>RotateGesturesEnabled</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>v</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets whether rotate gestures are enabled.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>TiltGesturesEnabled</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>v</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets whether tilt gestures are enabled.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>ScrollGesturesEnabled</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>v</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets whether scroll gestures are enabled.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>AllGesturesEnabled</name>
|
||||||
|
<parameter>
|
||||||
|
<name>v</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Enables or disables all gestures.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>ZoomGesturesEnabled</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>v</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets whether zoom gestures are enabled.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>MyLocationButtonEnabled</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>v</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets whether the my-location button is enabled.</comment>
|
||||||
|
</property>
|
||||||
|
</class>
|
||||||
|
<version>2.5</version>
|
||||||
|
<comment>This library allows you to show maps from Google Maps service in your application.
|
||||||
|
It requires Android 4+ (API level 14+).
|
||||||
|
Please see the <link>tutorial|https://www.b4x.com/android/forum/threads/google-maps.63930/</link> for more information about the setup process.</comment>
|
||||||
|
<dependsOn>com.google.android.gms:play-services-maps</dependsOn>
|
||||||
|
</root>
|
||||||
BIN
B4A/GoogleMapsExtras.jar
Normal file
BIN
B4A/GoogleMapsExtras.jar
Normal file
Binary file not shown.
3262
B4A/GoogleMapsExtras.xml
Normal file
3262
B4A/GoogleMapsExtras.xml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
B4A/JdbcSQL.jar
Normal file
BIN
B4A/JdbcSQL.jar
Normal file
Binary file not shown.
527
B4A/JdbcSQL.xml
Normal file
527
B4A/JdbcSQL.xml
Normal file
@@ -0,0 +1,527 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<root>
|
||||||
|
<doclet-version-NOT-library-version>1.06</doclet-version-NOT-library-version>
|
||||||
|
<class>
|
||||||
|
<name>anywheresoftware.b4j.objects.SQL</name>
|
||||||
|
<shortname>JdbcSQL</shortname>
|
||||||
|
<owner CheckForReinitialize="true">process</owner>
|
||||||
|
<event>QueryComplete (Success As Boolean, Crsr As JdbcResultSet)</event>
|
||||||
|
<event>NonQueryComplete (Success As Boolean)</event>
|
||||||
|
<event>Ready (Success As Boolean)</event>
|
||||||
|
<permission>android.permission.INTERNET</permission>
|
||||||
|
<method>
|
||||||
|
<name>Initialize</name>
|
||||||
|
<comment>Initializes the SQL object. You also need to add the JDBC driver jar to your project with the #AdditionalJar attribute.
|
||||||
|
DriverClass - The matching JDBC driver. For example (MySQL): com.mysql.jdbc.Driver
|
||||||
|
JdbcUrl - The connection url. For example (MySQL): jdbc:mysql://localhost/test?characterEncoding=utf8</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>DriverClass</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>JdbcUrl</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>BeginTransaction</name>
|
||||||
|
<comment>Begins a transaction. A transaction is a set of multiple "writing" statements that are atomically committed,
|
||||||
|
hence all changes will be made or no changes will be made.
|
||||||
|
As a side effect those statements will be executed significantly faster (in the default case a transaction is implicitly created for
|
||||||
|
each statement).
|
||||||
|
It is very important to handle transaction carefully and close them.
|
||||||
|
The transaction is considered successful only if TransactionSuccessful is called. Otherwise no changes will be made.
|
||||||
|
Typical usage:<code>
|
||||||
|
SQL1.BeginTransaction
|
||||||
|
Try
|
||||||
|
'block of statements like:
|
||||||
|
For i = 1 to 1000
|
||||||
|
SQL1.ExecNonQuery("INSERT INTO table1 VALUES(...)
|
||||||
|
Next
|
||||||
|
SQL1.TransactionSuccessful
|
||||||
|
Catch
|
||||||
|
Log(LastException.Message)
|
||||||
|
SQL1.RollBack 'no changes will be made
|
||||||
|
End Try
|
||||||
|
</code></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ExecNonQuery2</name>
|
||||||
|
<comment>Executes a single non query SQL statement.
|
||||||
|
The statement can include question marks which will be replaced by the items in the given list.
|
||||||
|
Note that B4J converts arrays to lists implicitly.
|
||||||
|
The values in the list should be strings, numbers or bytes arrays.
|
||||||
|
Example:<code>
|
||||||
|
SQL1.ExecNonQuery2("INSERT INTO table1 VALUES (?, ?, 0)", Array As Object("some text", 2))</code></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Statement</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Args</name>
|
||||||
|
<type>anywheresoftware.b4a.objects.collections.List</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ExecQuerySingleResult</name>
|
||||||
|
<comment>Executes the query and returns the value in the first column and the first row (in the result set).
|
||||||
|
Returns Null if no results were found.
|
||||||
|
Example:<code>
|
||||||
|
Dim NumberOfMatches As Int
|
||||||
|
NumberOfMatches = SQL1.ExecQuerySingleResult("SELECT count(*) FROM table1 WHERE col2 > 300")</code></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Query</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ExecNonQueryBatch</name>
|
||||||
|
<comment>Asynchronously executes a batch of non-query statements (such as INSERT).
|
||||||
|
The NonQueryComplete event is raised after the statements are completed.
|
||||||
|
You should call AddNonQueryToBatch one or more times before calling this method to add statements to the batch.
|
||||||
|
Note that this method internally begins and ends a transaction.
|
||||||
|
Returns an object that can be used as the sender filter for Wait For calls.
|
||||||
|
Example:<code>
|
||||||
|
For i = 1 To 1000
|
||||||
|
sql.AddNonQueryToBatch("INSERT INTO table1 VALUES (?)", Array(Rnd(0, 100000)))
|
||||||
|
Next
|
||||||
|
Dim SenderFilter As Object = sql.ExecNonQueryBatch("SQL")
|
||||||
|
Wait For (SenderFilter) SQL_NonQueryComplete (Success As Boolean)
|
||||||
|
Log("NonQuery: " & Success)</code></comment>
|
||||||
|
<returntype>java.lang.Object</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EventName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>CreateCallStatement</name>
|
||||||
|
<comment>Create a statement object which you can use with ExecCall to call stored procedures.</comment>
|
||||||
|
<returntype>java.lang.Object</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Query</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Args</name>
|
||||||
|
<type>anywheresoftware.b4a.objects.collections.List</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>InitializeSQLite</name>
|
||||||
|
<comment>Opens the SQLite database file. A new database will be created if it does not exist and CreateIfNecessary is true.
|
||||||
|
Note that you should add the following attribute to the main module:
|
||||||
|
<code>#AdditionalJar: sqlite-jdbc-3.7.2</code>
|
||||||
|
Example:<code>
|
||||||
|
Dim SQL1 As SQL
|
||||||
|
SQL1.InitializeSQLite(File.DirApp, "MyDb.db", True)</code></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Dir</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>FileName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>CreateIfNecessary</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ExecQueryAsync</name>
|
||||||
|
<comment>Asynchronously executes the given query. The QueryComplete event will be raised when the results are ready.
|
||||||
|
Returns an object that can be used as the sender filter for Wait For calls.
|
||||||
|
Example:<code>
|
||||||
|
Dim SenderFilter As Object = sql.ExecQueryAsync("SQL", "SELECT * FROM table1", Null)
|
||||||
|
Wait For (SenderFilter) SQL_QueryComplete (Success As Boolean, rs As JdbcResultSet)
|
||||||
|
If Success Then
|
||||||
|
Do While rs.NextRow
|
||||||
|
Log(rs.GetInt2(0))
|
||||||
|
Loop
|
||||||
|
rs.Close
|
||||||
|
Else
|
||||||
|
Log(LastException)
|
||||||
|
End If</code></comment>
|
||||||
|
<returntype>java.lang.Object</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EventName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Query</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Args</name>
|
||||||
|
<type>anywheresoftware.b4a.objects.collections.List</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>TransactionSuccessful</name>
|
||||||
|
<comment>Commits the statements and ends the transaction.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>AddNonQueryToBatch</name>
|
||||||
|
<comment>Adds a non-query statement to the batch of statements.
|
||||||
|
The statements are (asynchronously) executed when you call ExecNonQueryBatch.
|
||||||
|
Args parameter can be Null if it is not needed.
|
||||||
|
Example:<code>
|
||||||
|
For i = 1 To 1000
|
||||||
|
sql.AddNonQueryToBatch("INSERT INTO table1 VALUES (?)", Array(Rnd(0, 100000)))
|
||||||
|
Next
|
||||||
|
Dim SenderFilter As Object = sql.ExecNonQueryBatch("SQL")
|
||||||
|
Wait For (SenderFilter) SQL_NonQueryComplete (Success As Boolean)
|
||||||
|
Log("NonQuery: " & Success)</code></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Statement</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Args</name>
|
||||||
|
<type>anywheresoftware.b4a.objects.collections.List</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Close</name>
|
||||||
|
<comment>Closes the database.
|
||||||
|
Does not do anything if the database is not opened or was closed before.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>InitializeAsync</name>
|
||||||
|
<comment>Asynchronously initializes the SQL connection. The Ready event will be raised when the connection is ready or if an error has occurred.
|
||||||
|
The EventName parameter sets the sub that will handle the Ready event.
|
||||||
|
Example:<code>
|
||||||
|
Sub Process_Globals
|
||||||
|
Dim sql1 As SQL
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Sub AppStart (Args() As String)
|
||||||
|
sql1.InitializeAsync("sql1", "com.mysql.jdbc.Driver", _
|
||||||
|
"jdbc:mysql://localhost/example", "username", "password")
|
||||||
|
StartMessageLoop 'only required in a console app
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Sub sql1_Ready (Success As Boolean)
|
||||||
|
Log(Success)
|
||||||
|
If Success = False Then
|
||||||
|
Log(LastException)
|
||||||
|
Return
|
||||||
|
End If
|
||||||
|
Dim rs As JdbcResultSet = sql1.ExecQuery("SELECT table_name FROM information_schema.tables")
|
||||||
|
Do While rs.NextRow
|
||||||
|
Log(rs.GetString2(0))
|
||||||
|
Loop
|
||||||
|
rs.Close
|
||||||
|
End Sub</code></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EventName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>DriverClass</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>JdbcUrl</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>UserName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Password</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ExecQuery</name>
|
||||||
|
<comment>Executes the query and returns a cursor which is used to go over the results.
|
||||||
|
Example:<code>
|
||||||
|
Dim Cursor As JdbcResultSet
|
||||||
|
Cursor = SQL1.ExecQuery("SELECT col1, col2 FROM table1")
|
||||||
|
Do While Cursor.NextRow
|
||||||
|
Log(Cursor.GetString("col1"))
|
||||||
|
Log(Cursor.GetInt("col2"))
|
||||||
|
Loop</code></comment>
|
||||||
|
<returntype>anywheresoftware.b4j.objects.SQL.ResultSetWrapper</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Query</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ExecQuerySingleResult2</name>
|
||||||
|
<comment>Executes the query and returns the value in the first column and the first row (in the result set).
|
||||||
|
Returns Null if no results were found.
|
||||||
|
Example:<code>
|
||||||
|
Dim NumberOfMatches As Int
|
||||||
|
NumberOfMatches = SQL1.ExecQuerySingleResult2("SELECT count(*) FROM table1 WHERE col2 > ?", Array As String(300))</code></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Query</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Args</name>
|
||||||
|
<type>anywheresoftware.b4a.objects.collections.List</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ExecCall</name>
|
||||||
|
<comment>Executes a call statement previously created with CreateCallStatement.</comment>
|
||||||
|
<returntype>anywheresoftware.b4j.objects.SQL.ResultSetWrapper</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>CallStatement</name>
|
||||||
|
<type>java.lang.Object</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ExecNonQuery</name>
|
||||||
|
<comment>Executes a single non query SQL statement.
|
||||||
|
Example:<code>
|
||||||
|
SQL1.ExecNonQuery("CREATE TABLE table1 (col1 TEXT , col2 INTEGER, col3 INTEGER)")</code>
|
||||||
|
It will be significantly faster to explicitly start a transaction before applying any changes to the database.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Statement</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Initialize2</name>
|
||||||
|
<comment>Similar to Initialize method. Passes the given UserName and Password to the database.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>DriverClass</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>JdbcUrl</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>UserName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Password</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ExecQuery2</name>
|
||||||
|
<comment>Executes the query and returns a cursor which is used to go over the results.
|
||||||
|
The query can include question marks which will be replaced with the values in the array.
|
||||||
|
Example:<code>
|
||||||
|
Dim Cursor As JdbcResultSet
|
||||||
|
Cursor = sql1.ExecQuery2("SELECT col1 FROM table1 WHERE col3 = ?", Array As String(22))</code>
|
||||||
|
SQLite will try to convert the string values based on the columns types.</comment>
|
||||||
|
<returntype>anywheresoftware.b4j.objects.SQL.ResultSetWrapper</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Query</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Args</name>
|
||||||
|
<type>anywheresoftware.b4a.objects.collections.List</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Rollback</name>
|
||||||
|
<comment>Rollbacks the changes from the current transaction and closes the transaction.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment>Tests whether the database is initialized and opened.</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>anywheresoftware.b4j.objects.SQL.ResultSetWrapper</name>
|
||||||
|
<shortname>JdbcResultSet</shortname>
|
||||||
|
<objectwrapper>java.sql.ResultSet</objectwrapper>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>GetInt</name>
|
||||||
|
<comment>Returns the Int value stored in the given column.
|
||||||
|
The value will be converted to Int if it is of different type.
|
||||||
|
Example:<code>
|
||||||
|
Log(Cursor.GetInt("col2"))</code></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ColumnName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>GetColumnName</name>
|
||||||
|
<comment>Returns the name of the column at the specified index.
|
||||||
|
The first column index is 0.</comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Index</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>GetLong</name>
|
||||||
|
<comment>Returns the Long value stored in the given column.
|
||||||
|
The value will be converted to Long if it is of different type.
|
||||||
|
Example:<code>
|
||||||
|
Log(Cursor.GetLong("col2"))</code></comment>
|
||||||
|
<returntype>java.lang.Long</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ColumnName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>GetBlob2</name>
|
||||||
|
<comment>Returns the blob stored in the column at the given ordinal.
|
||||||
|
Example:<code>
|
||||||
|
Dim Buffer() As Byte
|
||||||
|
Buffer = Cursor.GetBlob2(0)</code></comment>
|
||||||
|
<returntype>byte[]</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Index</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>GetLong2</name>
|
||||||
|
<comment>Returns the Long value stored in the column at the given ordinal.
|
||||||
|
The value will be converted to Long if it is of different type.
|
||||||
|
Example:<code>
|
||||||
|
Log(Cursor.GetLong2(0))</code></comment>
|
||||||
|
<returntype>java.lang.Long</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Index</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>GetDouble</name>
|
||||||
|
<comment>Returns the Double value stored in the given column.
|
||||||
|
The value will be converted to Double if it is of different type.
|
||||||
|
Example:<code>
|
||||||
|
Log(Cursor.GetDouble("col2"))</code></comment>
|
||||||
|
<returntype>java.lang.Double</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ColumnName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>GetBlob</name>
|
||||||
|
<comment>Returns the blob stored in the given column.
|
||||||
|
Example:<code>
|
||||||
|
Dim Buffer() As Byte
|
||||||
|
Buffer = Cursor.GetBlob("col1")</code></comment>
|
||||||
|
<returntype>byte[]</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ColumnName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Close</name>
|
||||||
|
<comment>Closes the cursor and frees resources.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>GetInt2</name>
|
||||||
|
<comment>Returns the Int value stored in the column at the given ordinal.
|
||||||
|
The value will be converted to Int if it is of different type.
|
||||||
|
Example:<code>
|
||||||
|
Log(Cursor.GetInt2(0))</code></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Index</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>GetString</name>
|
||||||
|
<comment>Returns the String value stored in the given column.
|
||||||
|
The value will be converted to String if it is of different type.
|
||||||
|
Example:<code>
|
||||||
|
Log(Cursor.GetString("col2"))</code></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ColumnName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>GetString2</name>
|
||||||
|
<comment>Returns the String value stored in the column at the given ordinal.
|
||||||
|
The value will be converted to String if it is of different type.
|
||||||
|
Example:<code>
|
||||||
|
Log(Cursor.GetString2(0))</code></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Index</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>GetDouble2</name>
|
||||||
|
<comment>Returns the Double value stored in the column at the given ordinal.
|
||||||
|
The value will be converted to Double if it is of different type.
|
||||||
|
Example:<code>
|
||||||
|
Log(Cursor.GetDouble2(0))</code></comment>
|
||||||
|
<returntype>java.lang.Double</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Index</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>NextRow</name>
|
||||||
|
<comment>Moves the cursor to the next result. Returns false when the cursor reaches the end.
|
||||||
|
Example:<code>
|
||||||
|
Do While ResultSet1.Next
|
||||||
|
'Work with Row
|
||||||
|
Loop</code></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>ColumnCount</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<comment>Gets the number of columns available in the result set.</comment>
|
||||||
|
</property>
|
||||||
|
</class>
|
||||||
|
<version>1.5</version>
|
||||||
|
<comment>The SQL library allows you to create and manage SQL databases.
|
||||||
|
Using this library you can connect to any type of SQL database.
|
||||||
|
See this <link>link|http://www.basic4ppc.com/android/forum/threads/sql-tutorial.35185/</link> for more information.</comment>
|
||||||
|
</root>
|
||||||
BIN
B4A/JhsIceZxing1.jar
Normal file
BIN
B4A/JhsIceZxing1.jar
Normal file
Binary file not shown.
436
B4A/JhsIceZxing1.xml
Normal file
436
B4A/JhsIceZxing1.xml
Normal file
@@ -0,0 +1,436 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<root>
|
||||||
|
<doclet-version-NOT-library-version>1.05</doclet-version-NOT-library-version>
|
||||||
|
<class>
|
||||||
|
<name>ice.zxing.b4aZXingLib</name>
|
||||||
|
<shortname>JhsIceZxing1</shortname>
|
||||||
|
<owner>activity</owner>
|
||||||
|
<event>result(atype as String,Value as String, image as Bitmap)</event>
|
||||||
|
<event>timedout(timedOut as boolean)</event>
|
||||||
|
<event>usercancelled(userCancelled as boolean)</event>
|
||||||
|
<permission>android.permission.CAMERA</permission>
|
||||||
|
<permission>android.hardware.camera</permission>
|
||||||
|
<permission>android.hardware.camera.autofocus</permission>
|
||||||
|
<permission>android.permission.VIBRATE</permission>
|
||||||
|
<permission>android.permission.FLASHLIGHT</permission>
|
||||||
|
<method>
|
||||||
|
<name>CreateAztecCode</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>android.graphics.Bitmap</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>str</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>CreateDataMatrixCode</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>android.graphics.Bitmap</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>str</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>BeginScan</name>
|
||||||
|
<comment>Start the scan
|
||||||
|
Example:<code>
|
||||||
|
Dim zx As JhsIceZxing1 '(declare this in Sub Globals)
|
||||||
|
Dim bm As Bitmap '(declare this in Sub Globals)
|
||||||
|
|
||||||
|
Sub Button1_Click
|
||||||
|
zx.isportrait = True
|
||||||
|
zx.useFrontCam = False
|
||||||
|
|
||||||
|
'set the timeoutDuration to a very high value (such as 2000000000) if you dont want it to time out 2000000000 = 63 years
|
||||||
|
zx.timeoutDuration = 30
|
||||||
|
|
||||||
|
'change these factors between 0 and 1 to change the size of the viewfinder rectangle
|
||||||
|
'the library will limit the minimum size to 240 x 240 pixels and the maximum to (screen width) x (screen height) pixels
|
||||||
|
zx.theViewFinderXfactor = 0.7
|
||||||
|
zx.theViewFinderYfactor = 0.5
|
||||||
|
zx.theFrameColor = Colors.Blue
|
||||||
|
zx.theLaserColor = Colors.Yellow
|
||||||
|
zx.theMaskColor = Colors.argb(95, 0, 0, 255)
|
||||||
|
zx.theResultColor = Colors.Green
|
||||||
|
zx.theResultPointColor = Colors.Red
|
||||||
|
|
||||||
|
'set the prompt messages
|
||||||
|
zx.theTopPromptMessage = "This was done......"
|
||||||
|
zx.theTopPromptTextSize = 5%y 'text size
|
||||||
|
zx.topPromptColor = Colors.Red
|
||||||
|
zx.topPromptDistanceFromTop = 1%y 'pixel distance from top
|
||||||
|
|
||||||
|
zx.theBottomPromptMessage = "Just for fun......"
|
||||||
|
zx.theBottomPromptTextSize = 5%y 'text size
|
||||||
|
zx.bottomPromptColor = Colors.Blue
|
||||||
|
zx.bottomPromptDistanceFromBottom = 5%y 'pixel distance from top
|
||||||
|
'add a bitmap
|
||||||
|
zx.theBitMap = bm
|
||||||
|
zx.theBitmapPosition(40%x,10%y,20%x,20%x)
|
||||||
|
zx.BeginScan("myzx")
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Sub myzx_result(atype As String,Values As String)
|
||||||
|
Msgbox(Values,"type:" & atype)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Sub myzx_noscan(atype As String,Values As String)
|
||||||
|
Msgbox(Values,"type:" & atype)
|
||||||
|
End Sub
|
||||||
|
</code></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EventName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>CreateQRCode</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>android.graphics.Bitmap</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>str</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>theBitmapPosition</name>
|
||||||
|
<comment>Specify the left, top, width, and height of the bitmap that will be placed on the mask
|
||||||
|
Example:<code>
|
||||||
|
zx.theBitmapPosition(40%x,10%y,20%x,20%x)
|
||||||
|
</code></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>left</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>top</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>width</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>height</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>ReturnBitmap</name>
|
||||||
|
<parameter>
|
||||||
|
<name>returnbitmap</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<field>
|
||||||
|
<name>theLaserColor</name>
|
||||||
|
<comment>Specify the color of the laser
|
||||||
|
Example:<code>
|
||||||
|
zx.theLaserColor = Colors.Red
|
||||||
|
</code></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>useFrontCam</name>
|
||||||
|
<comment>Specify if the front facing or rear facing camera should be used
|
||||||
|
Example:<code>
|
||||||
|
zx.useFrontCam = False
|
||||||
|
</code></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>FORMATS_ONE_D</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>theMaskColor</name>
|
||||||
|
<comment>Specify the color of the mask around the view finder rectangle
|
||||||
|
Example:<code>
|
||||||
|
zx.theMaskColor = Colors.ARGB(95, 0, 0, 255)
|
||||||
|
</code></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>timeoutDuration</name>
|
||||||
|
<comment>Specify the timeout duration - we need to get a successful scan before this else time out
|
||||||
|
Example:<code>
|
||||||
|
zx.timeoutDuration = 15
|
||||||
|
</code>
|
||||||
|
Set this value to for eg 2000000000 for and "indefinate" timeout (2 000 000 000 = 63 years+)</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>theBitMap</name>
|
||||||
|
<comment>Specify the bitmap that should be loaded into the mask
|
||||||
|
Example:<code>
|
||||||
|
Dim bm As Bitmap
|
||||||
|
bm.Initialize(File.DirAssets,"B4A.png")
|
||||||
|
zx.theBitMap = bm
|
||||||
|
</code></comment>
|
||||||
|
<returntype>android.graphics.Bitmap</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>mustBeep</name>
|
||||||
|
<comment>Specify if the device should make a beep sound upon a successful scan
|
||||||
|
The default value is False
|
||||||
|
The beep sound will be ToneGenerator.TONE_CDMA_ABBR_ALERT
|
||||||
|
|
||||||
|
Example:<code>
|
||||||
|
zx.mustBeep = True
|
||||||
|
|
||||||
|
</code></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>isportrait</name>
|
||||||
|
<comment>Specify if it should be portrait or landscape mode
|
||||||
|
Example:<code>
|
||||||
|
zx.isportrait = True
|
||||||
|
</code></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>theBottomPromptTextSize</name>
|
||||||
|
<comment>Specify the text size of the bottom prompt message
|
||||||
|
Example:<code>
|
||||||
|
zx.theBottomPromptTextSize = 5%y
|
||||||
|
</code></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>FORMATS_PRODUCT</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>FORMATS_AZTEC</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>displayOrientation</name>
|
||||||
|
<comment>Specify the display orientation (for eg on Nexus 5)
|
||||||
|
Example:<code>
|
||||||
|
zx.displayOrientation = 90
|
||||||
|
</code></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>theTopPromptTextSize</name>
|
||||||
|
<comment>Specify the text size of the top prompt message
|
||||||
|
Example:<code>
|
||||||
|
zx.theTopPromptTextSize = 5%y
|
||||||
|
</code></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>bottomPromptColor</name>
|
||||||
|
<comment>Specify the color of the bottom prompt message
|
||||||
|
Example:<code>
|
||||||
|
zx.bottomPromptColor = Colors.Yellow
|
||||||
|
</code></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>theResultPointColor</name>
|
||||||
|
<comment>Specify the color of the possible result points being displayed during a scan
|
||||||
|
Example:<code>
|
||||||
|
zx.theResultPointColor = Colors.Green
|
||||||
|
</code></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>topPromptDistanceFromTop</name>
|
||||||
|
<comment>Specify the distance of the top prompt message from the top
|
||||||
|
Example:<code>
|
||||||
|
zx.topPromptDistanceFromTop = 1%x
|
||||||
|
</code></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>topPromptColor</name>
|
||||||
|
<comment>Specify the color of the top prompt message
|
||||||
|
Example:<code>
|
||||||
|
zx.topPromptColor = Colors.Magenta
|
||||||
|
</code></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>theViewFinderYfactor</name>
|
||||||
|
<comment>Scale factor for the height of the view finder rectangle
|
||||||
|
The factor ranges from 0 to 1 (for a height &lt; 240 a default of 240 pixels will be applied)
|
||||||
|
Example:<code>
|
||||||
|
zx.theViewFinderYfactor = 0.5
|
||||||
|
</code></comment>
|
||||||
|
<returntype>double</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>moveLaser</name>
|
||||||
|
<comment>Specify if the laser should be static or move up/down
|
||||||
|
The default value is False
|
||||||
|
|
||||||
|
Example:<code>
|
||||||
|
zx.moveLaser = True
|
||||||
|
|
||||||
|
</code></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>theTopPromptMessage</name>
|
||||||
|
<comment>Specify the top prompt message
|
||||||
|
Example:<code>
|
||||||
|
zx.theTopPromptMessage = "Hallo"
|
||||||
|
</code></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>bottomPromptDistanceFromBottom</name>
|
||||||
|
<comment>Specify the distance of the bottom prompt message from the bottom
|
||||||
|
Example:<code>
|
||||||
|
zx.bottomPromptDistanceFromBottom = 1%x
|
||||||
|
</code></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>ScanMode</name>
|
||||||
|
<comment>Specify the bar code formats to scan
|
||||||
|
If not specified then all code formats will be scanned
|
||||||
|
Specify one of the following: PRODUCT_FORMATS, ONE_D_FORMATS, QR_CODE_FORMATS, DATA_MATRIX_FORMATS, AZTEC_FORMATS, PDF_417_FORMATS, TWO_D_FORMATS
|
||||||
|
PRODUCT_FORMATS are the following: UPC A, UPC E, EAN 13, EAN 8, RSS 14
|
||||||
|
ONE_D_FORMATS are all the PRODUCT FORMATS plus the following: CODE 39, CODE 93, CODE 128, ITF
|
||||||
|
TWO_D_FORMATS are the following: QR CODE, DATA MATRIX, AZTEC CODE, PDF 417
|
||||||
|
|
||||||
|
Example:<code>
|
||||||
|
zx.ScanMode = "PRODUCT_FORMATS";
|
||||||
|
|
||||||
|
</code></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>FORMATS_TWO_D</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>theViewFinderXfactor</name>
|
||||||
|
<comment>Scale factor for the width of the view finder rectangle
|
||||||
|
The factor ranges from 0 to 1 (for a width &lt; 240 a default of 240 pixels will be applied)
|
||||||
|
Example:<code>
|
||||||
|
zx.theViewFinderXfactor = 0.5
|
||||||
|
</code></comment>
|
||||||
|
<returntype>double</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>theBottomPromptMessage</name>
|
||||||
|
<comment>Specify the bottom prompt message
|
||||||
|
Example:<code>
|
||||||
|
zx.theBottomPromptMessage = "B4A"
|
||||||
|
</code></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>textSkewnessBottom</name>
|
||||||
|
<comment>Specify the text skewness for the bottom text message
|
||||||
|
Example:<code>
|
||||||
|
zx.textSkewnessBottom = -0.25
|
||||||
|
</code></comment>
|
||||||
|
<returntype>float</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>scanInvertedCodes</name>
|
||||||
|
<comment>Specify if normal or color inverted codes needs to be scanned
|
||||||
|
The default value is false (i.e scan normal colored codes and not inverted colored codes)
|
||||||
|
|
||||||
|
Example:<code>
|
||||||
|
zx.scanInvertedCodes = False
|
||||||
|
|
||||||
|
</code></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>FORMATS_QR_CODE</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>FORMATS_PDF_417</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>textSkewnessTop</name>
|
||||||
|
<comment>Specify the text skewness for the top text message
|
||||||
|
Example:<code>
|
||||||
|
zx.textSkewnessTop = -0.25
|
||||||
|
</code></comment>
|
||||||
|
<returntype>float</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>CODE_FORE_COLOR</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>FORMATS_DATA_MATRIX</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>theFrameColor</name>
|
||||||
|
<comment>Specify the color of the outer frame of the view finder rectangle
|
||||||
|
Example:<code>
|
||||||
|
zx.theFrameColor = Colors.Black
|
||||||
|
</code></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>mustVibrate</name>
|
||||||
|
<comment>Specify if the device should vibrate upon a successful scan
|
||||||
|
The default value is False
|
||||||
|
It will vibrate for 400ms
|
||||||
|
|
||||||
|
Example:<code>
|
||||||
|
zx.mustVibrate = True
|
||||||
|
|
||||||
|
</code></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>CODE_BACK_COLOR</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>theResultColor</name>
|
||||||
|
<comment>Specify the color of the mask around the view finder rectangle after a successful scan
|
||||||
|
Example:<code>
|
||||||
|
zx.theResultColor = Colors.Black
|
||||||
|
</code></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>ice.zxing.CaptureActivity.IsChineseOrNot</name>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>isChineseCharacter</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>chineseStr</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
</class>
|
||||||
|
<version>1.06</version>
|
||||||
|
<author>Johan/IceFairy333</author>
|
||||||
|
</root>
|
||||||
BIN
B4A/KeyValueStore.b4xlib
Normal file
BIN
B4A/KeyValueStore.b4xlib
Normal file
Binary file not shown.
BIN
B4A/MLwifi.jar
Normal file
BIN
B4A/MLwifi.jar
Normal file
Binary file not shown.
624
B4A/MLwifi.xml
Normal file
624
B4A/MLwifi.xml
Normal file
@@ -0,0 +1,624 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<root>
|
||||||
|
<doclet-version-NOT-library-version>1.02</doclet-version-NOT-library-version>
|
||||||
|
<class>
|
||||||
|
<name>wifi.MLwifi</name>
|
||||||
|
<shortname>MLwifi</shortname>
|
||||||
|
<owner>process</owner>
|
||||||
|
<event>PingDone(isOnline As Boolean)</event>
|
||||||
|
<permission>android.permission.ACCESS_COARSE_LOCATION</permission>
|
||||||
|
<permission>android.permission.ACCESS_FINE_LOCATION</permission>
|
||||||
|
<permission>android.permission.ACCESS_NETWORK_STATE</permission>
|
||||||
|
<permission>android.permission.ACCESS_WIFI_STATE</permission>
|
||||||
|
<permission>android.permission.CHANGE_WIFI_STATE</permission>
|
||||||
|
<permission>android.permission.INTERNET</permission>
|
||||||
|
<permission>android.permission.WAKE_LOCK</permission>
|
||||||
|
<method>
|
||||||
|
<name>isWifiConnected</name>
|
||||||
|
<comment>Checks if WIFI is connected. This only checks for WIFI connection to a router
|
||||||
|
It does NOT test for Internet availability
|
||||||
|
|
||||||
|
Returns True if WIFI is connected or False if 2G, 3G, 4G, WIMAX or no connection</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>CalcWifiPct</name>
|
||||||
|
<comment>Calculates WIFI signal percentage from the WIFI signal level as an integer (0 to 100)
|
||||||
|
Signal Range: -100dBm -> 0%, -50dBm -> 100%</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>WifiSignal</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>WifiAPDistance</name>
|
||||||
|
<comment>Returns the estimated distance (m) to WIFI Access Point, depending on the signal level and frequency (API level >= 21)
|
||||||
|
Returns 0 on error.</comment>
|
||||||
|
<returntype>double</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isSavedWifiAP</name>
|
||||||
|
<comment>Checks if a WIFI AP is saved on the device
|
||||||
|
|
||||||
|
ssid: Access Point SSID
|
||||||
|
|
||||||
|
Returns True if this SSID is saved</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ssid</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>WifiSSID</name>
|
||||||
|
<comment>Returns the current WIFI SSID or empty string</comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>disconnectWifiAP</name>
|
||||||
|
<comment>Disconnects the current WIFI AP connection
|
||||||
|
|
||||||
|
Returns True on success</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isOnline</name>
|
||||||
|
<comment>Checks for Internet connection
|
||||||
|
|
||||||
|
This method does not check or care what type of network is used
|
||||||
|
It can be WIFI, 2G, 3G, 4g, WIMAX, etc. It just tests for Internet connectivity
|
||||||
|
|
||||||
|
Returns True if Internet is available
|
||||||
|
|
||||||
|
ERROR. This method only checks if the device is connected to any network (WIFI, Phone Data, etc),
|
||||||
|
but the network can be not connected to Internet (ADSL router not connected to phone line, etc)</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>WifiSignalPct</name>
|
||||||
|
<comment>Returns the WIFI signal strength in percentage as an integer (0 to 100%)
|
||||||
|
Returns 0 on error</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>WifiFrequency</name>
|
||||||
|
<comment>Returns the Link Frequency (MHz) of the connected WIFI Access Point (API level >= 21)
|
||||||
|
Returns 0 on error.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>WifiChannel</name>
|
||||||
|
<comment>Returns the Link Channel number of the connected WIFI Access Point (API level >= 21)
|
||||||
|
2.4GHz Band: 1 - 13, 14 (Japan only)
|
||||||
|
5GHz Band: 0 - 200
|
||||||
|
Returns -1 on error.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>WifiIpAddress</name>
|
||||||
|
<comment>Returns the IP Address of the WIFI interface or empty string</comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ActiveNetworkTypeName</name>
|
||||||
|
<comment>Returns the Type Name (WIFI, MOBILE, etc) of the current Active Network or empty string</comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isMobileConnected</name>
|
||||||
|
<comment>Checks if Phone Data is connected. This only checks for connection to a phone network.
|
||||||
|
It does NOT test for Internet availability.
|
||||||
|
|
||||||
|
Returns True if 2G, 3G or 4G Data is connected or False if WIFI, WIMAX or no connection</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>WifiMACAddress</name>
|
||||||
|
<comment>Returns the MAC Address of the WIFI interface or empty string</comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>is5GHzBandSupported</name>
|
||||||
|
<comment>Returns true if this WIFI adapter supports 5 GHz band (API level >= 21)
|
||||||
|
Returns False on error.</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>WifiBand</name>
|
||||||
|
<comment>Returns the Link Band of the connected WIFI Access Point (API level >= 21)
|
||||||
|
WIFI_2_4GHZ_BAND: 2.4GHz Band
|
||||||
|
WIFI_5GHZ_BAND: 5GHz Band
|
||||||
|
Returns 0 on error.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>EnableWifi</name>
|
||||||
|
<comment>Turns WIFI On or Off. Pass True to Enable WIFI or False to Disable</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Enabled</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>releaseWifiOn</name>
|
||||||
|
<comment>Unlocks the WIFI radio, previously locked by calling "holdWifiOn" or "holdWifiOn2", allowing it to
|
||||||
|
turn off when the device is idle.
|
||||||
|
|
||||||
|
Returns True on success</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>WifiSignal</name>
|
||||||
|
<comment>Returns the WIFI signal strength in dBm as an integer or 0 on error</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>connectWifiAP</name>
|
||||||
|
<comment>Connects to a WIFI AP already configured on the device
|
||||||
|
|
||||||
|
ssid: Access Point SSID
|
||||||
|
|
||||||
|
Returns true on success</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ssid</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isWifiEnabled</name>
|
||||||
|
<comment>Returns whether WIFI is Enabled (true) or Disabled (false)</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ActiveNetworkType</name>
|
||||||
|
<comment>Returns the Type (0:MOBILE, 1:WIFI, 6:WIMAX, 7:BLUETOOTH, 9:ETHERNET, etc) of the current Active Network or -1</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>holdWifiOn2</name>
|
||||||
|
<comment>Allows an application to keep the WIFI radio awake. Normally the WIFI radio may turn off
|
||||||
|
when the user has not used the device in a while.
|
||||||
|
|
||||||
|
WIFI radio will keep awake until "releaseWifiOn" is called.
|
||||||
|
|
||||||
|
lockType: WIFI_MODE_FULL, WIFI_MODE_SCAN_ONLY, WIFI_MODE_FULL_HIGH_PERF
|
||||||
|
|
||||||
|
Returns True on success</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>lockType</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>WifiStrength</name>
|
||||||
|
<comment>Returns the WIFI signal strength in percentage as an integer (0 to 100%)
|
||||||
|
Returns 0 on error
|
||||||
|
This method fails in some devices. Use WifiSignalPct() instead</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>holdWifiOn</name>
|
||||||
|
<comment>Allows an application to keep the WIFI radio awake. Normally the WIFI radio may turn off
|
||||||
|
when the user has not used the device in a while.
|
||||||
|
|
||||||
|
WIFI radio will keep awake until "releaseWifiOn" is called.
|
||||||
|
|
||||||
|
Returns True on success</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isOnlinePing5</name>
|
||||||
|
<comment>Checks for Internet connection by sending a Ping to Google DNS server (Ip: 8.8.8.8)
|
||||||
|
|
||||||
|
Launches the event "isOnline_PingDone(isOnline As Boolean)" with the ping result
|
||||||
|
|
||||||
|
timeout: Maximum waiting time in milliseconds
|
||||||
|
|
||||||
|
This method does not check or care what type of network is used
|
||||||
|
It can be WIFI, 2G, 3G, 4g, WIMAX, etc. It just tests for Internet connectivity
|
||||||
|
|
||||||
|
Returns True if success</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>timeout</name>
|
||||||
|
<type>long</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isOnlinePing6</name>
|
||||||
|
<comment>Checks for Internet connection by sending a Ping to IpHost
|
||||||
|
|
||||||
|
Launches the event "isOnline_PingDone(isOnline As Boolean)" with the ping result
|
||||||
|
|
||||||
|
IpHost: Ip address or Host name
|
||||||
|
timeout: Maximum waiting time in milliseconds
|
||||||
|
|
||||||
|
This method does not check or care what type of network is used
|
||||||
|
It can be WIFI, 2G, 3G, 4g, WIMAX, etc. It just tests for Internet connectivity
|
||||||
|
|
||||||
|
Returns True if success</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>IpHost</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>timeout</name>
|
||||||
|
<type>long</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isOnlinePing3</name>
|
||||||
|
<comment>Checks for Internet connection by sending a Ping to Google DNS server (Ip: 8.8.8.8)
|
||||||
|
|
||||||
|
timeout: Maximum waiting time in milliseconds
|
||||||
|
|
||||||
|
This method does not check or care what type of network is used
|
||||||
|
It can be WIFI, 2G, 3G, 4g, WIMAX, etc. It just tests for Internet connectivity
|
||||||
|
|
||||||
|
Returns True if Internet is available</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>timeout</name>
|
||||||
|
<type>long</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isOnlinePing4</name>
|
||||||
|
<comment>Checks for Internet connection by sending a Ping to IpHost
|
||||||
|
|
||||||
|
IpHost: Ip address or Host name
|
||||||
|
timeout: Maximum waiting time in milliseconds
|
||||||
|
|
||||||
|
This method does not check or care what type of network is used
|
||||||
|
It can be WIFI, 2G, 3G, 4g, WIMAX, etc. It just tests for Internet connectivity
|
||||||
|
|
||||||
|
Returns True if Internet is available</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>IpHost</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>timeout</name>
|
||||||
|
<type>long</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>WifiLinkSpeed</name>
|
||||||
|
<comment>Returns the LinkSpeed (Mbps) of the connected WIFI Access Point
|
||||||
|
Returns 0 on error.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>removeWifiAP</name>
|
||||||
|
<comment>Remove a saved WIFI AP on the device
|
||||||
|
|
||||||
|
ssid: Access Point SSID
|
||||||
|
|
||||||
|
Returns True on success</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ssid</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isOnlinePing2</name>
|
||||||
|
<comment>Checks for Internet connection by sending a Ping to IpHost (Ip address or Host name)
|
||||||
|
|
||||||
|
This method does not check or care what type of network is used
|
||||||
|
It can be WIFI, 2G, 3G, 4g, WIMAX, etc. It just tests for Internet connectivity
|
||||||
|
|
||||||
|
Returns True if Internet is available</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>IpHost</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>APIversion</name>
|
||||||
|
<comment>Returns the Version of Android running on the device as an integer such as 19, 21, 23, etc</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isOnlinePing</name>
|
||||||
|
<comment>Checks for Internet connection by sending a Ping to Google DNS server (Ip: 8.8.8.8)
|
||||||
|
|
||||||
|
This method does not check or care what type of network is used
|
||||||
|
It can be WIFI, 2G, 3G, 4g, WIMAX, etc. It just tests for Internet connectivity
|
||||||
|
|
||||||
|
Returns True if Internet is available</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>saveWifiAP</name>
|
||||||
|
<comment>Saves the configuration of a WIFI AP onto the device
|
||||||
|
|
||||||
|
ssid: Access Point SSID
|
||||||
|
security: Access Point security type (0:NONE, 1:WEP, 2:WAP)
|
||||||
|
password: Access Point password/phrase ("" for an open network)
|
||||||
|
connect: true -> Connect to the WIFI AP after saving
|
||||||
|
|
||||||
|
Returns True on success</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ssid</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>security</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>password</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>connect</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isWifiConnectedOld</name>
|
||||||
|
<comment>Checks if WIFI is connected. This only checks for WIFI connection to a router
|
||||||
|
It does NOT test for Internet availability
|
||||||
|
|
||||||
|
Returns True if WIFI is connected or False if 2G, 3G, 4G, WIMAX or no connection
|
||||||
|
|
||||||
|
This method uses "getNetworkInfo()" that was deprecated in API level 23</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isWifiHeldOn</name>
|
||||||
|
<comment>Checks if WIFI is held On by a call to "holdWifiOn" or "holdWifiOn2"</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<field>
|
||||||
|
<name>CHANNEL_WIDTH_80MHZ_PLUS_MHZ</name>
|
||||||
|
<comment>Channel Width 80Mhz + 80Mhz</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>WIFI_5GHZ_BAND</name>
|
||||||
|
<comment>5GHz WIFI Band</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>CHANNEL_WIDTH_160MHZ</name>
|
||||||
|
<comment>Channel Width 160Mhz</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>CHANNEL_WIDTH_20MHZ</name>
|
||||||
|
<comment>Channel Width 20Mhz</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>CHANNEL_WIDTH_40MHZ</name>
|
||||||
|
<comment>Channel Width 40Mhz</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>CHANNEL_WIDTH_80MHZ</name>
|
||||||
|
<comment>Channel Width 80Mhz</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>WIFI_MODE_FULL</name>
|
||||||
|
<comment>In this WIFI lock mode, WIFI will be kept active, and will behave normally. It will attempt to automatically
|
||||||
|
establish a connection to a remembered access point that is within range, and will do periodic scans if there
|
||||||
|
are remembered access points but none are in range.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>WIFI_MODE_SCAN_ONLY</name>
|
||||||
|
<comment>In this WIFI lock mode, WIFI will be kept active, but the only operation that will be supported is initiation
|
||||||
|
of scans, and the subsequent reporting of scan results. No attempts will be made to automatically connect to
|
||||||
|
remembered access points, nor will periodic scans be automatically performed looking for remembered access points.
|
||||||
|
Scans must be explicitly requested by an application in this mode.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>WIFI_2_4GHZ_BAND</name>
|
||||||
|
<comment>2.4GHz WIFI Band</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>WIFI_MODE_FULL_HIGH_PERF</name>
|
||||||
|
<comment>In this WIFI lock mode, WIFI will be kept active as in mode WIFI_MODE_FULL but it operates at
|
||||||
|
high performance with minimum packet loss and low packet latency even when the device screen is off.
|
||||||
|
This mode will consume more power and hence should be used only when there is a need for such an active connection.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>wifi.MLwifi.MLWifiScanner</name>
|
||||||
|
<shortname>MLScan</shortname>
|
||||||
|
<owner>process</owner>
|
||||||
|
<event>ScanDone(Results() As String, Count As Int)</event>
|
||||||
|
<method>
|
||||||
|
<name>connectWifiAP</name>
|
||||||
|
<comment>Connects to a network already configured on the device. The device will use saved values to connect.
|
||||||
|
|
||||||
|
EntryNumber: If you display the string array "wifis", you can pass the Position variable from your ListView_Click event.
|
||||||
|
Otherwise, you must pass the entry number from the string array since that is what is used as a reference.
|
||||||
|
|
||||||
|
Returns true on success</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>EntryNumber</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>startScan</name>
|
||||||
|
<comment>Initializes all objects and scans for WIFI networks. Builds a string array
|
||||||
|
of results (wifis) that can be accessed directly or with a call to updateWifiList.
|
||||||
|
EventName: Name of the Event to launch when Scan finish (EventName_ScanDone)
|
||||||
|
NoEventOnSystemScan: Launches events only on requested scans (true) or on all scans (false),
|
||||||
|
including system background scans.
|
||||||
|
THIS METHOD SHOULD ONLY BE CALLED ONCE!</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EventName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>NoEventOnSystemScan</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>removeWifiAP</name>
|
||||||
|
<comment>Remove a saved WIFI AP on the device
|
||||||
|
|
||||||
|
NetId - The network ID number to delete (returned in the listSavedNetworks method)
|
||||||
|
|
||||||
|
Returns True on success</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>NetId</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>listSavedNetworks</name>
|
||||||
|
<comment>Builds a list of all saved networks on the device.
|
||||||
|
|
||||||
|
Returns a comma separated list of: SSID,BSSID,Network ID number.</comment>
|
||||||
|
<returntype>java.util.List</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>stopScan</name>
|
||||||
|
<comment>Stops events launched on system background scans, if enabled in "startScan".
|
||||||
|
Call "updateWifiList" to re-activate this events.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isSavedWifiAP</name>
|
||||||
|
<comment>Checks the stored networks on the device to see if this entry is a previously saved Access Point
|
||||||
|
|
||||||
|
EntryNumber: The entry number in the "wifis" array to check. If you display the string array "wifis",
|
||||||
|
you can pass the Position variable from your ListView_Click event.
|
||||||
|
Otherwise, you must pass the entry number from the string array since that is what is used as a reference.
|
||||||
|
|
||||||
|
Returns True if this is a stored network</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>EntryNumber</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>WifiCap</name>
|
||||||
|
<comment>Returns a String containing info about the selected entry. A startScan must have already been done.
|
||||||
|
The string contains the SSID, the BSSID, and the Capabilities of the Network Access Point,
|
||||||
|
comma separated (SSID,BSSID,CapabilityString). The capabilities part can be quite long.
|
||||||
|
|
||||||
|
EntryNumber: If you display the string array "wifis", you can pass the Position variable from your ListView_Click event.
|
||||||
|
Otherwise, you must pass the entry number from the string array since that is what is used as a reference.
|
||||||
|
|
||||||
|
Returns a string of comma separated entries of SSID,BSSID, and capability string. Returns an empty string on error.</comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>EntryNumber</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>getBSSID</name>
|
||||||
|
<comment>Returns the BSSID for the selected entry.
|
||||||
|
|
||||||
|
EntryNumber: If you display the string array "wifis", you can pass the Position variable from your ListView_Click event.
|
||||||
|
Otherwise, you must pass the entry number from the string array since that is what is used as a reference.</comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>EntryNumber</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>updateWifiList</name>
|
||||||
|
<comment>Call only after startScan has already been called and a string array of Access Points
|
||||||
|
has been built. This method returns a string array containing the access points from the
|
||||||
|
most recent scan, including background scans done automatically by the Android WifiManager.
|
||||||
|
|
||||||
|
Calls the ScanDone event when a new list is ready.
|
||||||
|
|
||||||
|
Returns the string array of comma separated WIFI access points by SSID. Each entry may
|
||||||
|
contain the following:
|
||||||
|
SSID, Security Type, Signal strength (dBm) , "Saved" (if this network was previously
|
||||||
|
saved for use on this device) or "", BSSID, Signal Percentage (0-100%),
|
||||||
|
Frequency (Mhz), Center Frequency 0 (Mhz), Center Frequency 1 (Mhz),
|
||||||
|
Channel Width (Mhz), Channel Number, Band (2.4Ghz / 5Ghz), Distance (m).
|
||||||
|
|
||||||
|
If API Level &lt; 23 then: Center Frequency 0 = 0, Center Frequency 1 = 0 and Channel Width = -1.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>saveWifiAP</name>
|
||||||
|
<comment>Saves the configuration of a WIFI AP onto the device and connects to it.
|
||||||
|
|
||||||
|
EntryNumber: If you display the string array "wifis", you can pass the Position variable from your ListView_Click event.
|
||||||
|
Otherwise, you must pass the entry number from the string array since that is what is used as a reference.
|
||||||
|
securityType: The Access Point security type (returned in the scan result string array)
|
||||||
|
Password: The password/phrase for the WIFI access point. Pass "" for an open network. Handles WEP HEX or text phrases
|
||||||
|
|
||||||
|
Returns True if the connection is successful</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>EntryNumber</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>securityType</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Password</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<field>
|
||||||
|
<name>wifis</name>
|
||||||
|
<comment>A string array containing all scanned Access Points in the area of the device, sorted
|
||||||
|
by Signal Strength. These are comma separated entries consisting of the following:
|
||||||
|
|
||||||
|
SSID, Security Type, Signal strength (dBm) , "Saved" (if this network was previously
|
||||||
|
saved for use on this device) or "", BSSID, Signal Percentage (0-100%),
|
||||||
|
Frequency (Mhz), Center Frequency 0 (Mhz), Center Frequency 1 (Mhz),
|
||||||
|
Channel Width (Mhz), Channel Number, Band (2.4Ghz / 5Ghz), Distance (m).
|
||||||
|
|
||||||
|
If API Level &lt; 23 then: Center Frequency 0 = 0, Center Frequency 1 = 0 and Channel number = -1.</comment>
|
||||||
|
<returntype>java.lang.String[]</returntype>
|
||||||
|
</field>
|
||||||
|
</class>
|
||||||
|
<version>3.07</version>
|
||||||
|
<author>V-2.17 by Jem Miller - Missing Link Software; V-3.00 by bgsoft</author>
|
||||||
|
</root>
|
||||||
BIN
B4A/MLwifi400.aar
Normal file
BIN
B4A/MLwifi400.aar
Normal file
Binary file not shown.
BIN
B4A/MLwifi400.jar
Normal file
BIN
B4A/MLwifi400.jar
Normal file
Binary file not shown.
561
B4A/MLwifi400.xml
Normal file
561
B4A/MLwifi400.xml
Normal file
@@ -0,0 +1,561 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<root>
|
||||||
|
<doclet-version-NOT-library-version>1.05</doclet-version-NOT-library-version>
|
||||||
|
<class>
|
||||||
|
<name>com.airlinemates.mlwifi.MLwifi</name>
|
||||||
|
<shortname>MLwifi</shortname>
|
||||||
|
<owner>process</owner>
|
||||||
|
<event>Wifi_ConnectionResult(success As Boolean)</event>
|
||||||
|
<event>scandone(wifis As List, wifiCount As Int)</event>
|
||||||
|
<event>isonline_pingdone(exitValue As Int)</event>
|
||||||
|
<permission>android.permission.ACCESS_NETWORK_STATE</permission>
|
||||||
|
<permission>android.permission.ACCESS_WIFI_STATE</permission>
|
||||||
|
<permission>android.permission.CHANGE_WIFI_STATE</permission>
|
||||||
|
<permission>android.permission.ACCESS_FINE_LOCATION</permission>
|
||||||
|
<permission>android.permission.INTERNET</permission>
|
||||||
|
<permission>android.permission.CHANGE_NETWORK_STATE</permission>
|
||||||
|
<permission>android.permission.WRITE_SETTINGS</permission>
|
||||||
|
<method>
|
||||||
|
<name>releaseWifiOn</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>WifiSSID</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isWifiConnected</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>is5GHzBandSupported</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isOnline</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>CalcWifiPct</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>WifiSignal</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>WifiFrequency</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>holdWifiOn2</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>lockType</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>WifiMACAddress</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isWifiHeldOn</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>connectWifiAP</name>
|
||||||
|
<comment>Connects to an existing Wifi Network
|
||||||
|
Params:
|
||||||
|
ssid - the name of the Wifi Network
|
||||||
|
security = 0 = Open (SECURITY_OPEN), 1 = WEP (SECURITY_WEP), 2 = WPA-2/PSK (SECURITY_WPA2PSK)
|
||||||
|
password - the password or "" if the network is open
|
||||||
|
timeout - fail if not connected within timeout (Ms)
|
||||||
|
|
||||||
|
Raises Wifi_ConnectionResult event on success or failure
|
||||||
|
|
||||||
|
Example:<code>
|
||||||
|
Private Sub connectToWifi
|
||||||
|
Private wifi As MLwifi
|
||||||
|
'To connect to an open network
|
||||||
|
wifi.connectWifiAP("wifissid", wifi.SECURITY_OPEN, "", 30000)
|
||||||
|
'To connect to a WPA-2 secured network
|
||||||
|
wifi.connectWifiAP("wifissid", wifi.SECURITY_WPA2PSK, "password", 30000)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Sub Wifi_ConnectionResult(success As Boolean)
|
||||||
|
If success then
|
||||||
|
'Connected - set up sockets, etc...
|
||||||
|
Else
|
||||||
|
'Couldn't connect...
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
</code></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>ssid</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>security</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>password</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>timeout</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>saveWifiAP</name>
|
||||||
|
<comment>Adds a Wifi network, then optionally connects
|
||||||
|
Params:
|
||||||
|
ssid - the name of the Wifi Network
|
||||||
|
security = 0 = Open (SECURITY_OPEN), 1 = WEP (SECURITY_WEP), 2 = WPA-2/PSK (SECURITY_WPA2PSK)
|
||||||
|
password - the password or "" if the network is open
|
||||||
|
connect - ignored for Android Q+ (will always connect)
|
||||||
|
timeout - fail if not connected within timeout (ms)
|
||||||
|
|
||||||
|
Raises Wifi_ConnectionResult event on success or failure
|
||||||
|
|
||||||
|
Example:<code>
|
||||||
|
Private Sub connectToWifi
|
||||||
|
Private wifi As MLwifi
|
||||||
|
'To save & connect to an open network
|
||||||
|
wifi.saveWifiAP("wifissid", wifi.SECURITY_OPEN, "", True, 30000)
|
||||||
|
'To connect to a WPA-2 secured network
|
||||||
|
wifi.saveWifiAP("wifissid", wifi.SECURITY_WPA2PSK, "password", True, 30000)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Sub Wifi_ConnectionResult(success As Boolean)
|
||||||
|
If success then
|
||||||
|
'Connected - set up sockets, etc...
|
||||||
|
Else
|
||||||
|
'Couldn't connect...
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
</code></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>ssid</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>security</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>password</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>connect</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>timeout</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isOnlinePing5</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>timeout</name>
|
||||||
|
<type>long</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>WifiLinkSpeed</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isOnlinePing6</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>IpHost</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>timeout</name>
|
||||||
|
<type>long</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>WifiIpAddress</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isOnlinePing3</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>timeout</name>
|
||||||
|
<type>long</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>WifiBand</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isOnlinePing4</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>IpHost</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>timeout</name>
|
||||||
|
<type>long</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isSavedWifiAP</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ssid</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ActiveNetworkType</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isOnlinePing2</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>IpHost</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>WifiBSSID</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isWifiEnabled</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>WifiSignalPct</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>APIversion</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isOnlinePing</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>holdWifiOn</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ActiveNetworkTypeName</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>EnableWifi</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Enabled</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>disconnectWifiAP</name>
|
||||||
|
<comment>Disconnect from a Wifi network
|
||||||
|
Params:
|
||||||
|
none
|
||||||
|
|
||||||
|
Returns True (success) or False (failure)
|
||||||
|
|
||||||
|
Usage:<code>
|
||||||
|
Private disconnected As Boolean = MLwifi.disconnectWifiAP
|
||||||
|
</code></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>reconnectWifiAP</name>
|
||||||
|
<comment>Reconnects to a saved Wifi Network
|
||||||
|
Params:
|
||||||
|
ssid - the name of the Wifi Network
|
||||||
|
timeout - fail if not connected within timeout (Ms)
|
||||||
|
|
||||||
|
Raises Wifi_ConnectionResult event on success or failure
|
||||||
|
|
||||||
|
NOTE FOR SDK 29+: Will only work if the network being connected to is not secured.
|
||||||
|
You can connect to the previously connected network by calling disconnectWifiAP
|
||||||
|
or a specific network by calling connectWifiAP with the correct parameters.
|
||||||
|
|
||||||
|
Example:<code>
|
||||||
|
Private Sub connectToWifi
|
||||||
|
Private wifi As MLwifi
|
||||||
|
'reconnect to a Wifi network saved on this device
|
||||||
|
wifi.reconnectWifiAP("wifissid", 30000)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Sub Wifi_ConnectionResult(success As Boolean)
|
||||||
|
If success then
|
||||||
|
'Connected - set up sockets, etc...
|
||||||
|
Else
|
||||||
|
'Couldn't connect...
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
</code></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>ssid</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>timeout</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>WifiChannel</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>WifiStrength</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>WifiSignal</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>removeWifiAP</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ssid</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>WifiAPDistance</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>double</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isMobileConnected</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<field>
|
||||||
|
<name>debug</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>SECURITY_WPA2PSK</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>SECURITY_OPEN</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>SECURITY_WEP</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>com.airlinemates.mlwifi.MLwifi.MLWifiScanner</name>
|
||||||
|
<shortname>MLScan</shortname>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>listSavedNetworks</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.util.List</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isSavedWifiAP</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>EntryNumber</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>WifiCap</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>EntryNumber</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>connectWifiAP</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EntryNumber</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>timeout</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>saveWifiAP</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EntryNumber</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>securityType</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Password</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>timeout</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>stopScan</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>startScan</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EventName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>NoEventOnSystemScan</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>removeWifiAP</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>NetId</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>updateWifiList</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>getBSSID</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>EntryNumber</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<field>
|
||||||
|
<name>wifis</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.lang.String[]</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>Results</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.util.List</returntype>
|
||||||
|
</field>
|
||||||
|
</class>
|
||||||
|
<version>4.41</version>
|
||||||
|
<author>V-2.17 by Jem Miller - Missing Link Software; V-3.00 by bgsoft; v4.00+ by Computersmith</author>
|
||||||
|
<dependsOn>MLwifi400.aar</dependsOn>
|
||||||
|
</root>
|
||||||
BIN
B4A/NB6.b4xlib
Normal file
BIN
B4A/NB6.b4xlib
Normal file
Binary file not shown.
BIN
B4A/NineOldAndroids.jar
Normal file
BIN
B4A/NineOldAndroids.jar
Normal file
Binary file not shown.
1714
B4A/NineOldAndroids.xml
Normal file
1714
B4A/NineOldAndroids.xml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
B4A/NotificationListener.jar
Normal file
BIN
B4A/NotificationListener.jar
Normal file
Binary file not shown.
88
B4A/NotificationListener.xml
Normal file
88
B4A/NotificationListener.xml
Normal file
@@ -0,0 +1,88 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<root>
|
||||||
|
<doclet-version-NOT-library-version>1.04</doclet-version-NOT-library-version>
|
||||||
|
<class>
|
||||||
|
<name>anywheresoftware.b4a.objects.NotificationListenerWrapper.NotificationListener</name>
|
||||||
|
<shortname>NotificationListener</shortname>
|
||||||
|
<comment>NotificationListener allows you to access the device notifications.
|
||||||
|
This is only supported by Android 4.3+.
|
||||||
|
See the tutorial in the forum for more information.</comment>
|
||||||
|
<owner>process</owner>
|
||||||
|
<event>NotificationPosted (SBN As StatusBarNotification)</event>
|
||||||
|
<event>NotificationRemoved (SBN As StatusBarNotification)</event>
|
||||||
|
<method>
|
||||||
|
<name>Initialize</name>
|
||||||
|
<comment>Initializes the object and sets the subs that will handle the events.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EventName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>GetActiveNotifications</name>
|
||||||
|
<comment>Causes the listener to repost all the active notifications.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ClearNotification</name>
|
||||||
|
<comment>Clears the given notification (if it is not an ongoing notification).</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>SBN</name>
|
||||||
|
<type>anywheresoftware.b4a.objects.NotificationListenerWrapper.StatusBarNotificationWrapper</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>HandleIntent</name>
|
||||||
|
<comment>Handles the intent with the notifications information.
|
||||||
|
Returns true if the intent was handled.</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>StartingIntent</name>
|
||||||
|
<type>anywheresoftware.b4a.objects.IntentWrapper</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ClearAll</name>
|
||||||
|
<comment>Clears all non-ongoing notifications.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>anywheresoftware.b4a.objects.NotificationListenerWrapper.StatusBarNotificationWrapper</name>
|
||||||
|
<shortname>StatusBarNotification</shortname>
|
||||||
|
<objectwrapper>android.service.notification.StatusBarNotification</objectwrapper>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>TickerText</name>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<comment>Returns the notification ticker text field.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>PackageName</name>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<comment>Returns the notification package name.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Id</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<comment>Returns the notification id.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Notification</name>
|
||||||
|
<returntype>anywheresoftware.b4a.objects.NotificationWrapper</returntype>
|
||||||
|
<comment>Returns the internal notification object.</comment>
|
||||||
|
</property>
|
||||||
|
</class>
|
||||||
|
<version>1.2</version>
|
||||||
|
</root>
|
||||||
BIN
B4A/OkHttpUtils2.b4xlib
Normal file
BIN
B4A/OkHttpUtils2.b4xlib
Normal file
Binary file not shown.
BIN
B4A/OverlayWindow.jar
Normal file
BIN
B4A/OverlayWindow.jar
Normal file
Binary file not shown.
436
B4A/OverlayWindow.xml
Normal file
436
B4A/OverlayWindow.xml
Normal file
@@ -0,0 +1,436 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<root>
|
||||||
|
<doclet-version-NOT-library-version>1.05</doclet-version-NOT-library-version>
|
||||||
|
<class>
|
||||||
|
<name>b4a.flm.overlaywdw.OverlayWindow</name>
|
||||||
|
<shortname>OverlayWindow</shortname>
|
||||||
|
<owner>process</owner>
|
||||||
|
<event>Touch(Action As Int, X As Float, Y As Float, ScreenX As Float, ScreenY As Float)</event>
|
||||||
|
<event>Click</event>
|
||||||
|
<event>LongClick</event>
|
||||||
|
<permission>android.permission.SYSTEM_ALERT_WINDOW</permission>
|
||||||
|
<permission>android.permission.SYSTEM_ERROR_WINDOW</permission>
|
||||||
|
<method>
|
||||||
|
<name>Initialize2</name>
|
||||||
|
<comment>Creates an empty overlay window at the specified position. The window is displayed after calling Open.
|
||||||
|
The window has a panel which can contain child views. Note that these views cannot acquire the focus.
|
||||||
|
The window can be placed or moved over the status and notification bars. Starting from Android 8 (Oreo), it always appears under critical system windows.
|
||||||
|
Width: Width of the window.
|
||||||
|
Height: Height of the window.
|
||||||
|
EventPrefix: Prefix of the Touch, Click and LongClick events.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>X</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Y</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Width</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Height</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EventPrefix</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>SetPosition</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>X</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Y</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Close</name>
|
||||||
|
<comment>Closes this window. The bound buttons are removed, if any.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>SetSize</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Width</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Height</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Initialize</name>
|
||||||
|
<comment>Creates an empty overlay window at the specified position. The window is displayed after calling Open.
|
||||||
|
The window has a panel which can contain child views. Note that these views cannot acquire the focus.
|
||||||
|
The window cannot be placed or moved over the status and notification bars.
|
||||||
|
Width: Width of the window.
|
||||||
|
Height: Height of the window.
|
||||||
|
EventPrefix: Prefix of the Touch, Click and LongClick events.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>X</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Y</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Width</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Height</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EventPrefix</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Open</name>
|
||||||
|
<comment>Opens this window. The bound buttons are added, if any.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsOpen</name>
|
||||||
|
<comment>Returns True if the window was opened by a call to Open.</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>Panel</name>
|
||||||
|
<returntype>anywheresoftware.b4a.objects.PanelWrapper</returntype>
|
||||||
|
<comment>Returns the window panel.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>KeepScreenOn</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>KeepScreenOn</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets whether the screen is kept turned on and bright as long as the window is visible. Default = False. Should be set only after the window is opened.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Visible</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Visible</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets the window visibility. The bound buttons, if any, are shown or hidden accordingly.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>X</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>X</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Y</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Y</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Height</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Height</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Width</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Width</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>TouchMode</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>TouchMode</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets the touch mode (one of the TOUCH_ constants). Default = TOUCH_INSIDE. Should be set only after the window is opened.</comment>
|
||||||
|
</property>
|
||||||
|
<field>
|
||||||
|
<name>TOUCH_NONE</name>
|
||||||
|
<comment>The window does not receive touch events.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>TOUCH_ALL</name>
|
||||||
|
<comment>The window receives all touch events.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>TOUCH_INSIDE</name>
|
||||||
|
<comment>The window receives touch events inside the window.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>b4a.flm.overlaywdw.OverlayPermission</name>
|
||||||
|
<shortname>OverlayPermission</shortname>
|
||||||
|
<owner>process</owner>
|
||||||
|
<event>DrawPermission(Allowed As Boolean)</event>
|
||||||
|
<method>
|
||||||
|
<name>RequestPermission</name>
|
||||||
|
<comment>Requests the permission to draw overlays over applications for Android versions >= 23. Returns whether a permission is required or not.</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EventPrefix</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsAllowed</name>
|
||||||
|
<comment>Returns whether this application is allowed to draw overlays over applications.</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>b4a.flm.overlaywdw.OverlayButton</name>
|
||||||
|
<shortname>OverlayButton</shortname>
|
||||||
|
<owner>process</owner>
|
||||||
|
<event>Click</event>
|
||||||
|
<event>LongClick</event>
|
||||||
|
<method>
|
||||||
|
<name>Add</name>
|
||||||
|
<comment>Adds this button to the screen.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsAdded</name>
|
||||||
|
<comment>Returns True if the button was added by a call to Add (or a call to Open if bound).</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>BindTo</name>
|
||||||
|
<comment>Associates this button with the given overlay window so the button is automatically added or removed when the window is opened or closed, and automatically shown or hidden according to the window visibility.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Window</name>
|
||||||
|
<type>b4a.flm.overlaywdw.OverlayWindow</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>UnbindFrom</name>
|
||||||
|
<comment>Breaks the association between this button and the given overlay window.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Window</name>
|
||||||
|
<type>b4a.flm.overlaywdw.OverlayWindow</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Initialize2</name>
|
||||||
|
<comment>Creates a button at the specified position. The button is displayed after calling Add.
|
||||||
|
The button can be placed or moved over the status and notification bars. Starting from Android 8 (Oreo), it always appears under critical system windows.
|
||||||
|
Width: Width of the button.
|
||||||
|
Height: Height of the button.
|
||||||
|
EventPrefix: Prefix of the Click and LongClick events.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>X</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Y</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Width</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Height</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EventPrefix</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>SetPosition</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>X</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Y</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>SetStateImages</name>
|
||||||
|
<comment>Sets the images for the Up, Down and Disabled states. Pass Null if you do not want to set an image.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Up</name>
|
||||||
|
<type>android.graphics.drawable.Drawable</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Down</name>
|
||||||
|
<type>android.graphics.drawable.Drawable</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Disabled</name>
|
||||||
|
<type>android.graphics.drawable.Drawable</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Remove</name>
|
||||||
|
<comment>Removes this button from the screen.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>SetSize</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Width</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Height</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Initialize</name>
|
||||||
|
<comment>Creates a button at the specified position. The button is displayed after calling Add.
|
||||||
|
The button cannot be placed or moved over the status and notification bars.
|
||||||
|
Width: Width of the button.
|
||||||
|
Height: Height of the button.
|
||||||
|
EventPrefix: Prefix of the Click and LongClick events.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>X</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Y</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Width</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Height</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EventPrefix</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>Button</name>
|
||||||
|
<returntype>anywheresoftware.b4a.objects.ButtonWrapper</returntype>
|
||||||
|
<comment>Returns the wrapped button.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>X</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>X</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Y</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Y</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Height</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Height</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Width</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Width</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
</class>
|
||||||
|
<version>1.2</version>
|
||||||
|
<author>F.Leneuf-Magaud/Informatix</author>
|
||||||
|
</root>
|
||||||
BIN
B4A/PDFium.jar
Normal file
BIN
B4A/PDFium.jar
Normal file
Binary file not shown.
1619
B4A/PDFium.xml
Normal file
1619
B4A/PDFium.xml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
B4A/Pdfium - Copy.aar
Normal file
BIN
B4A/Pdfium - Copy.aar
Normal file
Binary file not shown.
BIN
B4A/Pdfium.aar
Normal file
BIN
B4A/Pdfium.aar
Normal file
Binary file not shown.
BIN
B4A/Pdfium.androidx - Copy.aar
Normal file
BIN
B4A/Pdfium.androidx - Copy.aar
Normal file
Binary file not shown.
BIN
B4A/Pdfium.androidx.aar
Normal file
BIN
B4A/Pdfium.androidx.aar
Normal file
Binary file not shown.
BIN
B4A/PreoptimizedCLV.b4xlib
Normal file
BIN
B4A/PreoptimizedCLV.b4xlib
Normal file
Binary file not shown.
BIN
B4A/RSPopupMenu.jar
Normal file
BIN
B4A/RSPopupMenu.jar
Normal file
Binary file not shown.
149
B4A/RSPopupMenu.xml
Normal file
149
B4A/RSPopupMenu.xml
Normal file
@@ -0,0 +1,149 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<root>
|
||||||
|
<doclet-version-NOT-library-version>1.02</doclet-version-NOT-library-version>
|
||||||
|
<class>
|
||||||
|
<name>com.rootsoft.rspopupmenu.RSPopupMenu</name>
|
||||||
|
<shortname>RSPopupMenu</shortname>
|
||||||
|
<objectwrapper>android.widget.PopupMenu</objectwrapper>
|
||||||
|
<owner>activity</owner>
|
||||||
|
<method>
|
||||||
|
<name>Initialize</name>
|
||||||
|
<comment>Initializes the Popup Menu.
|
||||||
|
A PopupMenu displays a Menu in a modal popup window anchored to a View.
|
||||||
|
The popup will appear below the anchor view if there is room, or above it if there is not.
|
||||||
|
If the IME is visible the popup will not overlap it until it is touched.
|
||||||
|
Touching outside of the popup will dismiss it.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EventName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>view</name>
|
||||||
|
<type>anywheresoftware.b4a.objects.ConcreteViewWrapper</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>AddSubMenuItem</name>
|
||||||
|
<comment>Add a new item to the menu.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ItemId</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Order</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Title</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Show</name>
|
||||||
|
<comment>Show the menu popup anchored to the view specified during construction.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Dismiss</name>
|
||||||
|
<comment>Dismiss the menu popup.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>AddMenuItem</name>
|
||||||
|
<comment>Add a new item to the menu.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ItemId</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Order</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Title</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>AddMenuItem2</name>
|
||||||
|
<comment>Add a new item to the menu.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>GroupId</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>ItemId</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Order</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Title</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>AddSubMenuItem2</name>
|
||||||
|
<comment>Add a new item to the menu.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>GroupId</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>ItemId</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Order</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Title</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Initialize2</name>
|
||||||
|
<comment>Initializes the Popup Menu.
|
||||||
|
A PopupMenu displays a Menu in a modal popup window anchored to a View.
|
||||||
|
The popup will appear below the anchor view if there is room, or above it if there is not.
|
||||||
|
If the IME is visible the popup will not overlap it until it is touched.
|
||||||
|
Touching outside of the popup will dismiss it.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EventName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>view</name>
|
||||||
|
<type>anywheresoftware.b4a.objects.ConcreteViewWrapper</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Gravity</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
</class>
|
||||||
|
<version>1.0</version>
|
||||||
|
<author>XverhelstX</author>
|
||||||
|
</root>
|
||||||
BIN
B4A/RangeDownloader.b4xlib
Normal file
BIN
B4A/RangeDownloader.b4xlib
Normal file
Binary file not shown.
BIN
B4A/ReplyAuto.jar
Normal file
BIN
B4A/ReplyAuto.jar
Normal file
Binary file not shown.
460
B4A/ReplyAuto.xml
Normal file
460
B4A/ReplyAuto.xml
Normal file
@@ -0,0 +1,460 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<root>
|
||||||
|
<doclet-version-NOT-library-version>1.07</doclet-version-NOT-library-version>
|
||||||
|
<class>
|
||||||
|
<name>b4a.jsaplication.com.br.Action</name>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>sendReply</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>context</name>
|
||||||
|
<type>Context</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>msg</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>writeToParcel</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>dest</name>
|
||||||
|
<type>Parcel</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>flags</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isQuickReply</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>describeContents</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>PackageName</name>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>RemoteInputs</name>
|
||||||
|
<returntype>java.util.ArrayList</returntype>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Text</name>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>QuickReplyIntent</name>
|
||||||
|
<returntype>PendingIntent</returntype>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<field>
|
||||||
|
<name>CREATOR</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype><any></returntype>
|
||||||
|
</field>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>b4a.jsaplication.com.br.NotificationUtils</name>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>isAPriorityMode</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>interruptionFilter</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>getTitle</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>extras</name>
|
||||||
|
<type>Bundle</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isRecent</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>sbn</name>
|
||||||
|
<type>StatusBarNotification</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>recentTimeframeInSecs</name>
|
||||||
|
<type>long</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>notificationMatchesFilter</name>
|
||||||
|
<comment>http://stackoverflow.com/questions/9292032/extract-notification-text-from-parcelable-contentview-or-contentintent *</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>sbn</name>
|
||||||
|
<type>StatusBarNotification</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>rankingMap</name>
|
||||||
|
<type>NotificationListenerService.RankingMap</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>getMessage</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>extras</name>
|
||||||
|
<type>Bundle</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>getActions</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.util.ArrayList</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>n</name>
|
||||||
|
<type>Notification</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>packageName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>actions</name>
|
||||||
|
<type>java.util.ArrayList</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>getView</name>
|
||||||
|
<comment>OLD/CURRENT METHODS</comment>
|
||||||
|
<returntype>ViewGroup</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>context</name>
|
||||||
|
<type>Context</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>view</name>
|
||||||
|
<type>RemoteViews</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>getQuickReplyAction</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>b4a.jsaplication.com.br.Action</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>n</name>
|
||||||
|
<type>Notification</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>packageName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>b4a.jsaplication.com.br.PendingNotification</name>
|
||||||
|
<owner>process</owner>
|
||||||
|
<property>
|
||||||
|
<name>DismissKey</name>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>key</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Sbn</name>
|
||||||
|
<returntype>StatusBarNotification</returntype>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>ScheduledFuture</name>
|
||||||
|
<returntype>java.util.concurrent.ScheduledFuture</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>scheduledFuture</name>
|
||||||
|
<type>java.util.concurrent.ScheduledFuture</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>b4a.jsaplication.com.br.PlatformsList</name>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>describeContents</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>writeToParcel</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>dest</name>
|
||||||
|
<type>Parcel</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>flags</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>PlatformName</name>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>platformName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>AutoMessage</name>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>autoMessage</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<field>
|
||||||
|
<name>CREATOR</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype><any></returntype>
|
||||||
|
</field>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>b4a.jsaplication.com.br.RemoteInputParcel</name>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>isAllowFreeFormInput</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>writeToParcel</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>dest</name>
|
||||||
|
<type>Parcel</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>flags</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>describeContents</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>charSequenceToStringArray</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>charSequence</name>
|
||||||
|
<type>java.lang.CharSequence[]</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>Choices</name>
|
||||||
|
<returntype>java.lang.CharSequence[]</returntype>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Label</name>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Extras</name>
|
||||||
|
<returntype>Bundle</returntype>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>ResultKey</name>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<field>
|
||||||
|
<name>CREATOR</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype><any></returntype>
|
||||||
|
</field>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>b4a.jsaplication.com.br.ReplyAuto.NotificationListener</name>
|
||||||
|
<shortname>ReplyAuto</shortname>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>ClearAll</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isAPriorityMode</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>interruptionFilter</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>HandleIntent</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>StartingIntent</name>
|
||||||
|
<type>anywheresoftware.b4a.objects.IntentWrapper</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>GetActiveNotifications</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>reply</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>BANotification</name>
|
||||||
|
<type>java.lang.Object</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>BAPackager</name>
|
||||||
|
<type>java.lang.Object</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>BAResponse</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Initialize</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EventName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ClearNotification</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>SBN</name>
|
||||||
|
<type>b4a.jsaplication.com.br.ReplyAuto.StatusBarNotificationWrapper</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>b4a.jsaplication.com.br.ReplyAuto.StatusBarNotificationWrapper</name>
|
||||||
|
<shortname>StatusBarNotification</shortname>
|
||||||
|
<objectwrapper>StatusBarNotification</objectwrapper>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>ContentIntent</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>anywheresoftware.b4a.objects.NotificationWrapper</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Extras</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>anywheresoftware.b4a.objects.NotificationWrapper</returntype>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>Message</name>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>PackageName</name>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>TickerText</name>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Title</name>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Id</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Key</name>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Notification</name>
|
||||||
|
<returntype>anywheresoftware.b4a.objects.NotificationWrapper</returntype>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>b4a.jsaplication.com.br.VersionUtils</name>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>isKitKat</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isJellyBeanMR2</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isJellyBean</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isLollipop</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isMarshmallow</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
</class>
|
||||||
|
<version>1.1</version>
|
||||||
|
</root>
|
||||||
BIN
B4A/SD_FloatingStandOut.jar
Normal file
BIN
B4A/SD_FloatingStandOut.jar
Normal file
Binary file not shown.
338
B4A/SD_FloatingStandOut.xml
Normal file
338
B4A/SD_FloatingStandOut.xml
Normal file
@@ -0,0 +1,338 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<doclet-version-NOT-library-version>1.00</doclet-version-NOT-library-version>
|
||||||
|
<b4x_version>10.70</b4x_version>
|
||||||
|
<dependsOn>javaobject</dependsOn>
|
||||||
|
<class b4a_type="Service">
|
||||||
|
<name>b4a.example.standout</name>
|
||||||
|
<shortname>standout</shortname>
|
||||||
|
<owner>process</owner>
|
||||||
|
<objectwrapper>java.lang.Class</objectwrapper>
|
||||||
|
<permission>android.permission.VIBRATE</permission>
|
||||||
|
<field>
|
||||||
|
<name DesignerName="Snotif">_snotif</name>
|
||||||
|
<returntype>anywheresoftware.b4a.objects.NotificationWrapper</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name DesignerName="CallBack">_callback</name>
|
||||||
|
<returntype>Object</returntype>
|
||||||
|
</field>
|
||||||
|
<method>
|
||||||
|
<name>process_globals</name>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
</class>
|
||||||
|
<class b4a_type="StaticCode">
|
||||||
|
<name>b4a.example.floatingstandout</name>
|
||||||
|
<shortname>FloatingStandOut</shortname>
|
||||||
|
<comment>Code module
|
||||||
|
Subs in this code module will be accessible from all modules.
|
||||||
|
</comment>
|
||||||
|
<owner>activity</owner>
|
||||||
|
<objectwrapper>java.lang.Class</objectwrapper>
|
||||||
|
<field>
|
||||||
|
<name DesignerName="ActiveService">_activeservice</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name DesignerName="STICK_TO_BORDER">_stick_to_border</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name DesignerName="HALF_STICK_TO_BORDER">_half_stick_to_border</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name DesignerName="ENABLEDROP">_enabledrop</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name DesignerName="WhiteCircle">_whitecircle</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name DesignerName="PathImage">_pathimage</name>
|
||||||
|
<returntype>String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name DesignerName="NameFileImage">_namefileimage</name>
|
||||||
|
<returntype>String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name DesignerName="HeightImage">_heightimage</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name DesignerName="WidthImage">_widthimage</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name DesignerName="X">_x</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name DesignerName="Y">_y</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name DesignerName="EventClick">_eventclick</name>
|
||||||
|
<returntype>String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name DesignerName="EventDoubleClick">_eventdoubleclick</name>
|
||||||
|
<returntype>String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name DesignerName="EventLongClick">_eventlongclick</name>
|
||||||
|
<returntype>String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name DesignerName="EventMove">_eventmove</name>
|
||||||
|
<returntype>String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name DesignerName="StartActivity_OnClick">_startactivity_onclick</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name DesignerName="StartActivity_OnDoubleClick">_startactivity_ondoubleclick</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name DesignerName="StartActivity_OnLongClick">_startactivity_onlongclick</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name DesignerName="StopFloating_OnClick">_stopfloating_onclick</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name DesignerName="StopFloating_OnDoubleClick">_stopfloating_ondoubleclick</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name DesignerName="StopFloating_OnLongClick">_stopfloating_onlongclick</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name DesignerName="NotificationTitle">_notificationtitle</name>
|
||||||
|
<returntype>String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name DesignerName="NotificationBody">_notificationbody</name>
|
||||||
|
<returntype>String</returntype>
|
||||||
|
</field>
|
||||||
|
<method>
|
||||||
|
<name DesignerName="Process_Globals">_process_globals</name>
|
||||||
|
<returntype>String</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name DesignerName="SetEvent">_setevent</name>
|
||||||
|
<comment> SetEvent("FL")
|
||||||
|
Sub FL_OnClick(X as int, Y as int)
|
||||||
|
Sub FL_OnDoubleClick(X as int, Y as int)
|
||||||
|
Sub FL_OnLongClick(X as int, Y as int)
|
||||||
|
Sub FL_OnMove(X as int, Y as int)
|
||||||
|
</comment>
|
||||||
|
<returntype>String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EventName</name>
|
||||||
|
<type>String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name DesignerName="SetImageBitmap">_setimagebitmap</name>
|
||||||
|
<returntype>String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>img</name>
|
||||||
|
<type>anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name DesignerName="SetStartActivity">_setstartactivity</name>
|
||||||
|
<returntype>String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>OnClick</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>OnDoubleClick</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>OnLongClick</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name DesignerName="SetStopFloating">_setstopfloating</name>
|
||||||
|
<returntype>String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>OnClick</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>OnDoubleClick</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>OnLongClick</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name DesignerName="Start">_start</name>
|
||||||
|
<comment>Es. Start(Me,Application.PackageName)
|
||||||
|
</comment>
|
||||||
|
<returntype>String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Me_CallBack</name>
|
||||||
|
<type>Object</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name DesignerName="Stop">_stop</name>
|
||||||
|
<returntype>String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>b4a.example.standout._chtype</name>
|
||||||
|
<shortname>chType</shortname>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>Initialize</name>
|
||||||
|
<comment>Inizializza i campi al loro valore predefinito.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<field>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment>Verifica se l'oggetto sia stato inizializzato.</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>Path</name>
|
||||||
|
<returntype>String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>bitmap_name</name>
|
||||||
|
<returntype>String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>bitmap</name>
|
||||||
|
<returntype>anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>wwe</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>hhe</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>b4a.example.standout._chelement</name>
|
||||||
|
<shortname>chElement</shortname>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>Initialize</name>
|
||||||
|
<comment>Inizializza i campi al loro valore predefinito.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<field>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment>Verifica se l'oggetto sia stato inizializzato.</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>id</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>instance</name>
|
||||||
|
<returntype>anywheresoftware.b4j.object.JavaObject</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>ttype</name>
|
||||||
|
<returntype>b4a.example.standout._chtype</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>active</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>xpos</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>ypos</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>b4a.example.specialpermission</name>
|
||||||
|
<shortname>SpecialPermission</shortname>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment>Verifica se l'oggetto sia stato inizializzato.</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name DesignerName="ActivatePermissionResumable">_activatepermissionresumable</name>
|
||||||
|
<returntype>anywheresoftware.b4a.keywords.Common.ResumableSubWrapper</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name DesignerName="Class_Globals">_class_globals</name>
|
||||||
|
<returntype>String</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name DesignerName="GetPermission">_getpermission</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name DesignerName="Initialize">_initialize</name>
|
||||||
|
<comment>Inizializza l'oggetto. Puoi aggiungere parametri a questo metodo,se necessario.
|
||||||
|
</comment>
|
||||||
|
<returntype>String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name DesignerName="OpenSettingPermission">_opensettingpermission</name>
|
||||||
|
<returntype>String</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name DesignerName="SdkVersion">_sdkversion</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</method>
|
||||||
|
</class>
|
||||||
|
<version>0.08</version>
|
||||||
|
<author>Star-Dust</author>
|
||||||
|
</root>
|
||||||
BIN
B4A/SD_SQL.b4xlib
Normal file
BIN
B4A/SD_SQL.b4xlib
Normal file
Binary file not shown.
26
B4A/SQLCIPHER_LICENSE
Normal file
26
B4A/SQLCIPHER_LICENSE
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
https://www.zetetic.net/sqlcipher/license/
|
||||||
|
|
||||||
|
Copyright (c) 2008-2012 Zetetic LLC
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
* Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
* Redistributions in binary form must reproduce the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer in the
|
||||||
|
documentation and/or other materials provided with the distribution.
|
||||||
|
* Neither the name of the ZETETIC LLC nor the
|
||||||
|
names of its contributors may be used to endorse or promote products
|
||||||
|
derived from this software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY ZETETIC LLC ''AS IS'' AND ANY
|
||||||
|
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL ZETETIC LLC BE LIABLE FOR ANY
|
||||||
|
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
BIN
B4A/SQLCipher.jar
Normal file
BIN
B4A/SQLCipher.jar
Normal file
Binary file not shown.
258
B4A/SQLCipher.xml
Normal file
258
B4A/SQLCipher.xml
Normal file
@@ -0,0 +1,258 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<root>
|
||||||
|
<doclet-version-NOT-library-version>1.05</doclet-version-NOT-library-version>
|
||||||
|
<class>
|
||||||
|
<name>anyhwheresoftware.b4a.objects.sqlcipher.SQLCipher</name>
|
||||||
|
<shortname>SQLCipher</shortname>
|
||||||
|
<comment>SQLCipher type is an extension to SQL which supports encryption.
|
||||||
|
See the <link>tutorial|http://www.basic4ppc.com/forum/basic4android-getting-started-tutorials/14965-android-database-encryption-sqlcipher-library.html</link> for more information.</comment>
|
||||||
|
<owner CheckForReinitialize="true">process</owner>
|
||||||
|
<method>
|
||||||
|
<name>EndTransaction</name>
|
||||||
|
<comment>Ends the transaction.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ExecQuery2</name>
|
||||||
|
<comment>Executes the query and returns a cursor which is used to go over the results.
|
||||||
|
The query can include question marks which will be replaced with the values in the array.
|
||||||
|
Example:<code>
|
||||||
|
Dim Cursor As Cursor
|
||||||
|
Cursor = sql1.ExecQuery2("SELECT col1 FROM table1 WHERE col3 = ?", Array As String(22))</code>
|
||||||
|
SQLite will try to convert the string values based on the columns types.</comment>
|
||||||
|
<returntype>Cursor</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Query</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>StringArgs</name>
|
||||||
|
<type>java.lang.String[]</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ExecQuery</name>
|
||||||
|
<comment>Executes the query and returns a cursor which is used to go over the results.
|
||||||
|
Example:<code>
|
||||||
|
Dim Cursor As Cursor
|
||||||
|
Cursor = SQL1.ExecQuery("SELECT col1, col2 FROM table1")
|
||||||
|
For i = 0 To Cursor.RowCount - 1
|
||||||
|
Cursor.Position = i
|
||||||
|
Log(Cursor.GetString("col1"))
|
||||||
|
Log(Cursor.GetInt("col2"))
|
||||||
|
Next</code></comment>
|
||||||
|
<returntype>Cursor</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Query</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ExecQuerySingleResult2</name>
|
||||||
|
<comment>Executes the query and returns the value in the first column and the first row (in the result set).
|
||||||
|
Returns Null if no results were found.
|
||||||
|
Example:<code>
|
||||||
|
Dim NumberOfMatches As Int
|
||||||
|
NumberOfMatches = SQL1.ExecQuerySingleResult2("SELECT count(*) FROM table1 WHERE col2 > ?", Array As String(300))</code></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Query</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>StringArgs</name>
|
||||||
|
<type>java.lang.String[]</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment>Tests whether the database is initialized and opened.</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Initialize</name>
|
||||||
|
<comment>Opens the database file. A new database will be created if it does not exist and CreateIfNecessary is true.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Dir</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>FileName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>CreateIfNecessary</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Password</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Unused</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ExecNonQueryBatch</name>
|
||||||
|
<comment>Asynchronously executes a batch of non-query statements (such as INSERT).
|
||||||
|
The NonQueryComplete event is raised after the statements are completed.
|
||||||
|
You should call AddNonQueryToBatch one or more times before calling this method to add statements to the batch.
|
||||||
|
Note that this method internally begins and ends a transaction.
|
||||||
|
Returns an object that can be used as the sender filter for Wait For calls.
|
||||||
|
Example:<code>
|
||||||
|
For i = 1 To 1000
|
||||||
|
sql.AddNonQueryToBatch("INSERT INTO table1 VALUES (?)", Array(Rnd(0, 100000)))
|
||||||
|
Next
|
||||||
|
Dim SenderFilter As Object = sql.ExecNonQueryBatch("SQL")
|
||||||
|
Wait For (SenderFilter) SQL_NonQueryComplete (Success As Boolean)
|
||||||
|
Log("NonQuery: " & Success)</code></comment>
|
||||||
|
<returntype>java.lang.Object</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EventName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>BeginTransaction</name>
|
||||||
|
<comment>Begins a transaction. A transaction is a set of multiple "writing" statements that are atomically committed,
|
||||||
|
hence all changes will be made or no changes will be made.
|
||||||
|
As a side effect those statements will be executed significantly faster (in the default case a transaction is implicitly created for
|
||||||
|
each statement).
|
||||||
|
It is very important to handle transaction carefully and close them.
|
||||||
|
The transaction is considered successful only if TransactionSuccessful is called. Otherwise no changes will be made.
|
||||||
|
Typical usage:<code>
|
||||||
|
SQL1.BeginTransaction
|
||||||
|
Try
|
||||||
|
'block of statements like:
|
||||||
|
For i = 1 to 1000
|
||||||
|
SQL1.ExecNonQuery("INSERT INTO table1 VALUES(...)
|
||||||
|
Next
|
||||||
|
SQL1.TransactionSuccessful
|
||||||
|
Catch
|
||||||
|
Log(LastException.Message) 'no changes will be made
|
||||||
|
End Try
|
||||||
|
SQL1.EndTransaction</code></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>AddNonQueryToBatch</name>
|
||||||
|
<comment>Adds a non-query statement to the batch of statements.
|
||||||
|
The statements are (asynchronously) executed when you call ExecNonQueryBatch.
|
||||||
|
Args parameter can be Null if it is not needed.
|
||||||
|
Example:<code>
|
||||||
|
For i = 1 To 1000
|
||||||
|
sql.AddNonQueryToBatch("INSERT INTO table1 VALUES (?)", Array(Rnd(0, 100000)))
|
||||||
|
Next
|
||||||
|
Dim SenderFilter As Object = sql.ExecNonQueryBatch("SQL")
|
||||||
|
Wait For (SenderFilter) SQL_NonQueryComplete (Success As Boolean)
|
||||||
|
Log("NonQuery: " & Success)</code></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Statement</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Args</name>
|
||||||
|
<type>anywheresoftware.b4a.objects.collections.List</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ExecQuerySingleResult</name>
|
||||||
|
<comment>Executes the query and returns the value in the first column and the first row (in the result set).
|
||||||
|
Returns Null if no results were found.
|
||||||
|
Example:<code>
|
||||||
|
Dim NumberOfMatches As Int
|
||||||
|
NumberOfMatches = SQL1.ExecQuerySingleResult("SELECT count(*) FROM table1 WHERE col2 > 300")</code></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Query</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>TransactionSuccessful</name>
|
||||||
|
<comment>Marks the transaction as a successful transaction. No further statements should be executed till calling EndTransaction.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ExecNonQuery</name>
|
||||||
|
<comment>Executes a single non query SQL statement.
|
||||||
|
Example:<code>
|
||||||
|
SQL1.ExecNonQuery("CREATE TABLE table1 (col1 TEXT , col2 INTEGER, col3 INTEGER)")</code>
|
||||||
|
If you plan to do many "writing" queries one after another, then you should consider using BeginTransaction / EndTransaction.
|
||||||
|
It will execute significantly faster.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Statement</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Close</name>
|
||||||
|
<comment>Closes the database.
|
||||||
|
Does not do anything if the database is not opened or was closed before.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ExecQueryAsync</name>
|
||||||
|
<comment>Asynchronously executes the given query. The QueryComplete event will be raised when the results are ready.
|
||||||
|
Note that ResultSet extends Cursor. You can use Cursor if preferred.
|
||||||
|
Returns an object that can be used as the sender filter for Wait For calls.
|
||||||
|
Example:<code>
|
||||||
|
Dim SenderFilter As Object = sql.ExecQueryAsync("SQL", "SELECT * FROM table1", Null)
|
||||||
|
Wait For (SenderFilter) SQL_QueryComplete (Success As Boolean, rs As ResultSet)
|
||||||
|
If Success Then
|
||||||
|
Do While rs.NextRow
|
||||||
|
Log(rs.GetInt2(0))
|
||||||
|
Loop
|
||||||
|
rs.Close
|
||||||
|
Else
|
||||||
|
Log(LastException)
|
||||||
|
End If</code></comment>
|
||||||
|
<returntype>java.lang.Object</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EventName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Query</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Args</name>
|
||||||
|
<type>anywheresoftware.b4a.objects.collections.List</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ExecNonQuery2</name>
|
||||||
|
<comment>Executes a single non query SQL statement.
|
||||||
|
The statement can include question marks which will be replaced by the items in the given list.
|
||||||
|
Note that Basic4android converts arrays to lists implicitly.
|
||||||
|
The values in the list should be strings, numbers or bytes arrays.
|
||||||
|
Example:<code>
|
||||||
|
SQL1.ExecNonQuery2("INSERT INTO table1 VALUES (?, ?, 0)", Array As Object("some text", 2))</code></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Statement</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Args</name>
|
||||||
|
<type>anywheresoftware.b4a.objects.collections.List</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
</class>
|
||||||
|
<version>1.5</version>
|
||||||
|
<comment></comment>
|
||||||
|
<dependsOn>sqlcipher_native</dependsOn>
|
||||||
|
</root>
|
||||||
BIN
B4A/ScrollView2D.jar
Normal file
BIN
B4A/ScrollView2D.jar
Normal file
Binary file not shown.
360
B4A/ScrollView2D.xml
Normal file
360
B4A/ScrollView2D.xml
Normal file
@@ -0,0 +1,360 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<root>
|
||||||
|
<doclet-version-NOT-library-version>1.05</doclet-version-NOT-library-version>
|
||||||
|
<class>
|
||||||
|
<name>flm.b4a.scrollview2d.ScrollView2DWrapper</name>
|
||||||
|
<shortname>ScrollView2D</shortname>
|
||||||
|
<objectwrapper>flm.b4a.scrollview2d.TwoDScrollView</objectwrapper>
|
||||||
|
<owner>activity</owner>
|
||||||
|
<event>ScrollChanged(PosX As Int, PosY As Int)</event>
|
||||||
|
<method>
|
||||||
|
<name>DesignerCreateView</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>base</name>
|
||||||
|
<type>anywheresoftware.b4a.objects.PanelWrapper</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>lw</name>
|
||||||
|
<type>anywheresoftware.b4a.objects.LabelWrapper</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>props</name>
|
||||||
|
<type>anywheresoftware.b4a.objects.collections.Map</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Initialize</name>
|
||||||
|
<comment>Initializes the ScrollView and sets its inner panel dimensions to the given width and height.
|
||||||
|
You can later change these dimensions by calling ScrollView2D.Panel.Width or ScrollView2D.Panel.Height.
|
||||||
|
|
||||||
|
You should never use a ScrollView2D with a ListView, since ListView takes care of its own scrolling.
|
||||||
|
Most importantly, doing this defeats all of the important optimizations in ListView for dealing with
|
||||||
|
large lists, since it effectively forces the ListView to display its entire list of items to fill up
|
||||||
|
the infinite container supplied by ScrollView2D.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Width</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Height</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EventName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>SmoothScrollTo</name>
|
||||||
|
<comment>Scrolls smoothly to the given position.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>PosX</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>PosY</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>BringToFront</name>
|
||||||
|
<comment>Changes the Z order of this view and brings it to the front.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>SetLayout</name>
|
||||||
|
<comment>Changes the view position and size.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Left</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Top</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Width</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Height</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>DisableTouchEventInterception</name>
|
||||||
|
<comment>Prevents the ScrollView2D from intercepting the touch events.
|
||||||
|
You should only call this function when the SV2D is in conflict with its parent about scrolling (e.g. AHViewPager).</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Disabled</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ScrollingIsFinished</name>
|
||||||
|
<comment>Returns whether the ScrollView2D has finished scrolling.</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>SendToBack</name>
|
||||||
|
<comment>Changes the Z order of this view and sends it to the back.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>FullScroll</name>
|
||||||
|
<comment>Scrolls the scroll view to the beginning or end, horizontally or/and vertically.
|
||||||
|
Direction:
|
||||||
|
0 = horizontally
|
||||||
|
1 = vertically
|
||||||
|
2 = horizontally and vertically</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Direction</name>
|
||||||
|
<type>byte</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>ToTheEnd</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Smoothly</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ScrollbarsVisibility</name>
|
||||||
|
<comment>Sets the scrollbars visibility.
|
||||||
|
They are visible by default.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>HorizontalVisible</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>VerticalVisible</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>FadingEdges</name>
|
||||||
|
<comment>Defines whether the edges should be faded when this view is scrolled.
|
||||||
|
They are faded by default.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Enabled</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>RemoveView</name>
|
||||||
|
<comment>Removes this view from its parent.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Invalidate3</name>
|
||||||
|
<comment>Invalidates the given rectangle.
|
||||||
|
Redrawing will only happen when the program can process messages. Usually when it finishes running the current code.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Left</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Top</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Right</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Bottom</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Invalidate2</name>
|
||||||
|
<comment>Invalidates the given rectangle.
|
||||||
|
Redrawing will only happen when the program can process messages. Usually when it finishes running the current code.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Rect</name>
|
||||||
|
<type>android.graphics.Rect</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>SetBackgroundImage</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Bitmap</name>
|
||||||
|
<type>android.graphics.Bitmap</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>GiveFocusToFirstVisible</name>
|
||||||
|
<comment>Sets the focus to the first focusable view in the visible area of the ScrollView2D panel.
|
||||||
|
You should call this function after a FullScroll, SmoothScrollTo or H/VScrollPosition to move the focus.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Invalidate</name>
|
||||||
|
<comment>Invalidates the whole view forcing the view to redraw itself.
|
||||||
|
Redrawing will only happen when the program can process messages. Usually when it finishes running the current code.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>RequestFocus</name>
|
||||||
|
<comment>Tries to set the focus to this view.
|
||||||
|
Returns True if the focus was set.</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>HorizontalScrollPosition</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Scroll</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets/sets the horizontal scroll position.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Left</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>left</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets the view's left.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>VerticalScrollPosition</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Scroll</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets/sets the vertical scroll position.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Background</name>
|
||||||
|
<returntype>android.graphics.drawable.Drawable</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>drawable</name>
|
||||||
|
<type>android.graphics.drawable.Drawable</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets the background drawable.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Color</name>
|
||||||
|
<parameter>
|
||||||
|
<name>color</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Sets the background of the view to be a ColorDrawable with the given color.
|
||||||
|
If the current background is of type GradientDrawable or ColorDrawable the round corners will be kept.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Enabled</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Enabled</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Panel</name>
|
||||||
|
<returntype>anywheresoftware.b4a.objects.PanelWrapper</returntype>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Top</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>top</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets the view's top.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Visible</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Visible</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Height</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>height</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets the view's height.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Tag</name>
|
||||||
|
<returntype>java.lang.Object</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>tag</name>
|
||||||
|
<type>java.lang.Object</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets the Tag value. This is a place holder which can used to store additional data.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Width</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>width</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment>Gets or sets the view's width.</comment>
|
||||||
|
</property>
|
||||||
|
<field>
|
||||||
|
<name>FS_DIR_VERT</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>byte</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>FS_DIR_HORZ_AND_VERT</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>byte</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>FS_ToTheEND</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>FS_DIR_HORZ</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>byte</returntype>
|
||||||
|
</field>
|
||||||
|
<designerProperty>key:FadingEdges, displayname:Fading edges, defaultvalue:True, fieldtype:Boolean</designerProperty>
|
||||||
|
<designerProperty>key:HorzScrollbarVisibility, displayname:Horizontal scrollbar, defaultvalue:True, fieldtype:Boolean</designerProperty>
|
||||||
|
<designerProperty>key:VertScrollbarVisibility, displayname:Vertical scrollbar, defaultvalue:True, fieldtype:Boolean</designerProperty>
|
||||||
|
<designerProperty>key:PanelHeight, displayname:Panel height, defaultvalue:-1, fieldtype:Int</designerProperty>
|
||||||
|
<designerProperty>key:PanelWidth, displayname:Panel width, defaultvalue:-1, fieldtype:Int</designerProperty>
|
||||||
|
</class>
|
||||||
|
<version>1.3</version>
|
||||||
|
<comment>ScrollView2D = HorizontalScrollView + VerticalScrollView</comment>
|
||||||
|
<author>Fr\u00e9d\u00e9ric Leneuf-Magaud/Informatix</author>
|
||||||
|
</root>
|
||||||
8
B4A/Snippets/beginTransaction.txt
Normal file
8
B4A/Snippets/beginTransaction.txt
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
Starter.skmt.BeginTransaction
|
||||||
|
For Each records() As Object In $result$.Rows
|
||||||
|
Log($"COL: ${$result$($result$.Columns.Get("$dbCol$"))}, VALUE: ${records($result$.Columns.Get("$dbCol$"))}"$)
|
||||||
|
Dim $dbCol$ As String = $result$($result$.Columns.Get("$dbCol$"))
|
||||||
|
Starter.skmt.ExecNonQuery2($"$sql_statement$"$)
|
||||||
|
Next
|
||||||
|
Starter.skmt.TransactionSuccessful 'Si no se pone TransactionSuccessful no se escribe NADA!!
|
||||||
|
Starter.skmt.EndTransaction
|
||||||
8
B4A/Snippets/case.txt
Normal file
8
B4A/Snippets/case.txt
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
Select $var$
|
||||||
|
Case $val1$
|
||||||
|
$do_something1$
|
||||||
|
Case $val2$
|
||||||
|
$do_something2$
|
||||||
|
Case Else
|
||||||
|
$do_something3$
|
||||||
|
End Select
|
||||||
1
B4A/Snippets/createMap.txt
Normal file
1
B4A/Snippets/createMap.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Private $var$ As Map = CreateMap("$par1$":$val1$, "$par2$":$val2$)
|
||||||
3
B4A/Snippets/csBuilder.txt
Normal file
3
B4A/Snippets/csBuilder.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
Dim cs As CSBuilder
|
||||||
|
cs.Initialize
|
||||||
|
$var$ = cs.Color(Colors.red).append(elTexto).Popall
|
||||||
1
B4A/Snippets/execNonQuery.txt
Normal file
1
B4A/Snippets/execNonQuery.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Starter.skmt.ExecNonQuery($"$sql_sattement$"$)
|
||||||
1
B4A/Snippets/execQuery.txt
Normal file
1
B4A/Snippets/execQuery.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
$cursor$ = Starter.skmt.ExecQuery("$sql_statement$")
|
||||||
4
B4A/Snippets/for.txt
Normal file
4
B4A/Snippets/for.txt
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
'Iterates with respect to keys in a map.
|
||||||
|
For Each $varName$ As String In $mapName$.Keys
|
||||||
|
$end$
|
||||||
|
Next
|
||||||
6
B4A/Snippets/logJobDone.txt
Normal file
6
B4A/Snippets/logJobDone.txt
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
For Each records() As Object In $resultado$.Rows
|
||||||
|
LogColor($"====== ${$resultado$.Tag} - REGISTROS = ${$resultado$.Rows.Size}"$, Colors.RGB(215,37,0))
|
||||||
|
For Each k As String In $resultado$.Columns.Keys
|
||||||
|
LogColor(k & " = " & records($resultado$.Columns.Get(k)), Colors.RGB(215,37,0))
|
||||||
|
Next
|
||||||
|
Next
|
||||||
8
B4A/Snippets/select.txt
Normal file
8
B4A/Snippets/select.txt
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
Select $var$
|
||||||
|
Case $val1$
|
||||||
|
$do_something1$
|
||||||
|
Case $val2$
|
||||||
|
$do_something2$
|
||||||
|
Case Else
|
||||||
|
$do_something3$
|
||||||
|
End Select
|
||||||
3
B4A/Snippets/while.txt
Normal file
3
B4A/Snippets/while.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
Do While $condicion$
|
||||||
|
$end$
|
||||||
|
Loop
|
||||||
BIN
B4A/SuperUser.jar
Normal file
BIN
B4A/SuperUser.jar
Normal file
Binary file not shown.
491
B4A/SuperUser.xml
Normal file
491
B4A/SuperUser.xml
Normal file
@@ -0,0 +1,491 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<root>
|
||||||
|
<doclet-version-NOT-library-version>1.04</doclet-version-NOT-library-version>
|
||||||
|
<class>
|
||||||
|
<name>com.datasteam.b4a.system.superuser.SuShell</name>
|
||||||
|
<shortname>SuShell</shortname>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>DeviceRooted</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name RaisesSynchronousEvents="true">ExecuteWithEvent</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>com.datasteam.b4a.system.superuser.SuShell.SuProcess</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Command</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EventPrefix</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name RaisesSynchronousEvents="true">Acquire</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>com.datasteam.b4a.system.superuser.SuShell.SuProcess</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EventPrefix</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>findBinary</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>binaryName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name RaisesSynchronousEvents="true">Execute</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>com.datasteam.b4a.system.superuser.SuShell.SuProcess</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Command</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name RaisesSynchronousEvents="true">ExecuteMultipleWithEvent</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>com.datasteam.b4a.system.superuser.SuShell.SuProcess</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Commands</name>
|
||||||
|
<type>java.lang.String[]</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EventPrefix</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name RaisesSynchronousEvents="true">ExecuteMultiple</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>com.datasteam.b4a.system.superuser.SuShell.SuProcess</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>Commands</name>
|
||||||
|
<type>java.lang.String[]</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>com.datasteam.b4a.system.superuser.SuShell.SuProcess</name>
|
||||||
|
<shortname>SuProcess</shortname>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>Close</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>WaitForCompletion</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Response</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.lang.String[]</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name RaisesSynchronousEvents="true">Execute</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Command</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name RaisesSynchronousEvents="true">ExecuteMultiple</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Commands</name>
|
||||||
|
<type>java.lang.String[]</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>Done</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Success</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>LastError</name>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Acquired</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>com.datasteam.b4a.system.superuser.SuRecorder</name>
|
||||||
|
<shortname>SuRecorder</shortname>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>Initialize</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EventPrefix</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Start</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>DeviceRooted</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>findBinary</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>binaryName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name RaisesSynchronousEvents="true">Stop</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>UpdateBinary</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Dir</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>FileName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>BinaryUpdated</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>FileName</name>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Options</name>
|
||||||
|
<returntype>com.datasteam.b4a.system.superuser.SuRecorder.SuRecorderOptions</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>value</name>
|
||||||
|
<type>com.datasteam.b4a.system.superuser.SuRecorder.SuRecorderOptions</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>com.datasteam.b4a.system.superuser.SuRecorder.SuRecorderOptions</name>
|
||||||
|
<shortname>SuRecorderOptions</shortname>
|
||||||
|
<owner>process</owner>
|
||||||
|
<field>
|
||||||
|
<name>FileName</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>Duration</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>MaxSize</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>BitRate</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>Location</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>ShowTouches</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>Audio</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>ShakeToStop</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</field>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>com.datasteam.b4a.system.superuser.SuRecorder.SuScreenRecorderActivity</name>
|
||||||
|
<shortname>SuRecorderActivity</shortname>
|
||||||
|
<owner>activity</owner>
|
||||||
|
<method>
|
||||||
|
<name>Miminimize</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>com.datasteam.b4a.system.superuser.SuBrowser</name>
|
||||||
|
<shortname>SuBrowser</shortname>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name>Initialize</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>DeviceRooted</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>findBinary</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>binaryName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Execute</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Command</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ExecuteMultiple</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Commands</name>
|
||||||
|
<type>java.lang.String[]</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ListFolder</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>anywheresoftware.b4a.objects.collections.List</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>folder</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>Response</name>
|
||||||
|
<returntype>java.lang.String[]</returntype>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<field>
|
||||||
|
<name>TYPE_CHARACTER</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>TYPE_SOCKET</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>TYPE_FIFO</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>TYPE_DIRECTORY</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>TYPE_BLOCK</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>TYPE_FILE</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>TYPE_LINK</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>TYPE_DIRECTORY_LINK</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>TYPE_OTHER</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>com.datasteam.b4a.system.superuser.SuBrowser.SuBrowserFileInfo</name>
|
||||||
|
<shortname>SuBrowserFileInfo</shortname>
|
||||||
|
<owner>process</owner>
|
||||||
|
<field>
|
||||||
|
<name>Name</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>Owner</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>Time</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>Link</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>Date</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>Type</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>PathName</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>IsFolder</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>Permissions</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>Group</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>Size</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>java.lang.String</returntype>
|
||||||
|
</field>
|
||||||
|
</class>
|
||||||
|
<class>
|
||||||
|
<name>com.datasteam.b4a.system.superuser.SuApk</name>
|
||||||
|
<shortname>SuApk</shortname>
|
||||||
|
<owner>process</owner>
|
||||||
|
<method>
|
||||||
|
<name RaisesSynchronousEvents="true">Install</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Dir</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>FileName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>DeviceRooted</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>findBinary</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>binaryName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name RaisesSynchronousEvents="true">Uninstall</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>PackageName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
</class>
|
||||||
|
<version>2.4</version>
|
||||||
|
<author>Periklis Koutsogiannis (datasteam.com)</author>
|
||||||
|
</root>
|
||||||
BIN
B4A/TimePicker.jar
Normal file
BIN
B4A/TimePicker.jar
Normal file
Binary file not shown.
149
B4A/TimePicker.xml
Normal file
149
B4A/TimePicker.xml
Normal file
@@ -0,0 +1,149 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<root>
|
||||||
|
<doclet-version-NOT-library-version>1.04</doclet-version-NOT-library-version>
|
||||||
|
<class>
|
||||||
|
<name>de.donmanfred.TimePickerWrapper</name>
|
||||||
|
<shortname>TimePicker</shortname>
|
||||||
|
<objectwrapper>com.erz.TimePicker</objectwrapper>
|
||||||
|
<owner>process</owner>
|
||||||
|
<event>timechanged(date as Long)</event>
|
||||||
|
<method>
|
||||||
|
<name>DesignerCreateView</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>base</name>
|
||||||
|
<type>anywheresoftware.b4a.objects.PanelWrapper</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>lw</name>
|
||||||
|
<type>anywheresoftware.b4a.objects.LabelWrapper</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>props</name>
|
||||||
|
<type>anywheresoftware.b4a.objects.collections.Map</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>AddToParent</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Parent</name>
|
||||||
|
<type>android.view.ViewGroup</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>left</name>
|
||||||
|
<type Pixel="true">int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>top</name>
|
||||||
|
<type Pixel="true">int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>width</name>
|
||||||
|
<type Pixel="true">int</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>height</name>
|
||||||
|
<type Pixel="true">int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>enableTwentyFourHour</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>twentyFour</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>disableTouch</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>disableTouch</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>IsInitialized</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Initialize</name>
|
||||||
|
<comment></comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EventName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>Left</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>left</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Top</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>top</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Color</name>
|
||||||
|
<parameter>
|
||||||
|
<name>color</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>DialColor</name>
|
||||||
|
<parameter>
|
||||||
|
<name>dialColor</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>ClockColor</name>
|
||||||
|
<parameter>
|
||||||
|
<name>clockColor</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Time</name>
|
||||||
|
<returntype>long</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>date</name>
|
||||||
|
<type>long</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>TextColor</name>
|
||||||
|
<parameter>
|
||||||
|
<name>textColor</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
<comment></comment>
|
||||||
|
</property>
|
||||||
|
</class>
|
||||||
|
<version>1.0</version>
|
||||||
|
</root>
|
||||||
BIN
B4A/ToggleLibrary.jar
Normal file
BIN
B4A/ToggleLibrary.jar
Normal file
Binary file not shown.
265
B4A/ToggleLibrary.xml
Normal file
265
B4A/ToggleLibrary.xml
Normal file
@@ -0,0 +1,265 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<root>
|
||||||
|
<doclet-version-NOT-library-version>1.00</doclet-version-NOT-library-version>
|
||||||
|
<class>
|
||||||
|
<name>com.rootsoft.togglelibrary.ToggleLibrary</name>
|
||||||
|
<shortname>Toggle</shortname>
|
||||||
|
<owner>process</owner>
|
||||||
|
<permission>android.permission.WRITE_SECURE_SETTINGS</permission>
|
||||||
|
<permission>android.permission.REBOOT</permission>
|
||||||
|
<permission>android.permission.WRITE_SETTINGS</permission>
|
||||||
|
<permission>android.permission.BLUETOOTH</permission>
|
||||||
|
<permission>android.permission.BLUETOOTH_ADMIN</permission>
|
||||||
|
<permission>android.permission.CHANGE_WIFI_STATE</permission>
|
||||||
|
<permission>android.permission.ACCESS_WIFI_STATE</permission>
|
||||||
|
<permission>android.permission.UPDATE_DEVICE_STATS</permission>
|
||||||
|
<permission>android.permission.MODIFY_PHONE_STATE</permission>
|
||||||
|
<method>
|
||||||
|
<name>userActivity</name>
|
||||||
|
<comment>User activity happened.
|
||||||
|
Turns the device from whatever state it's in to full on, and resets the auto-off timer.
|
||||||
|
when: is used to order this correctly with the wake lock calls. This time should be in the SystemClock.uptimeMillis() time base.
|
||||||
|
noChangeLights: should be true if you don't want the lights to turn on because of this event. This is set when the power key goes down. We want the device to stay on while the button is down, but we're about to turn off. Otherwise the lights flash on and then off and it looks weird.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>when</name>
|
||||||
|
<type>long</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>noChangeLights</name>
|
||||||
|
<type>boolean</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>TurnGPSOn</name>
|
||||||
|
<comment>Turns the GPS on. Note that this method actually activate the GPS immediately (unlike most other methods that
|
||||||
|
goes to the Settings Screen.).</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>TurnAirplaneModeOn</name>
|
||||||
|
<comment>Turns the airplane modus on.
|
||||||
|
status: </comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>TurnRingerOff</name>
|
||||||
|
<comment>Sets the RingerMode off.
|
||||||
|
RingerMode: </comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>TurnAirplaneModeOff</name>
|
||||||
|
<comment>Turns the airplane modus off
|
||||||
|
status: </comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>TurnGPSOff</name>
|
||||||
|
<comment>Turns the GPS off. Note that this method actually disables the GPS immediately (unlike most other methods that
|
||||||
|
goes to the Settings Screen.).</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>TurnDataConnectionOff</name>
|
||||||
|
<comment>Turns the Mobile Data Connection off.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>TurnRingerOn</name>
|
||||||
|
<comment>Sets the RingerMode on.
|
||||||
|
RingerMode: </comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>TurnStreamVolumeOn</name>
|
||||||
|
<comment>Sets the Media Volume to the maximum
|
||||||
|
value: </comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Reboot</name>
|
||||||
|
<comment>Reboots the device</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ToggleDataConnection</name>
|
||||||
|
<comment>Toggles the Mobile Data Connection.
|
||||||
|
There are notifications that it doesn't work on some devices and the emulator</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>TurnDataConnectionOn</name>
|
||||||
|
<comment>Turns the Mobile Data Connection on.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>TurnBluetoothOn</name>
|
||||||
|
<comment>Turns Bluetooth on.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Initialize</name>
|
||||||
|
<comment>Initializes the ToggleLibrary.
|
||||||
|
ba: </comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>isScreenOn</name>
|
||||||
|
<comment>Returns whether the screen is currently on. The screen could be bright or dim.</comment>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ToggleAudio</name>
|
||||||
|
<comment>Toggles the RingerMode automatically in the following order:
|
||||||
|
Silent -> Vibrate
|
||||||
|
Vibrate -> Normal
|
||||||
|
Normal -> Silent</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>goToSleep</name>
|
||||||
|
<comment>Force the device to go to sleep. Overrides all the wake locks that are held.
|
||||||
|
time: is used to order this correctly with the wake lock calls. The time should be in the SystemClock.uptimeMillis() time base.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>time</name>
|
||||||
|
<type>long</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>TurnRingerMode</name>
|
||||||
|
<comment>Sets the RingerMode to:
|
||||||
|
NORMAL, VIBRRATE or SILENT
|
||||||
|
RingerMode: </comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>RingerMode</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>TurnBrightnessOn</name>
|
||||||
|
<comment>Turns the brightness on</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ToggleWiFi</name>
|
||||||
|
<comment>Toggles the Wifi. If it's enabled, it sets it disabled and vice-versa.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ToggleGPS</name>
|
||||||
|
<comment>Toggles the GPS. Note that this method actually activate the GPS immediately (unlike most other methods that
|
||||||
|
goes to the Settings Screen.).</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ToggleAirplaneMode</name>
|
||||||
|
<comment>Toggles the AirplaneMode.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>TurnStreamVolumeOff</name>
|
||||||
|
<comment>Turns the Media Volume off.
|
||||||
|
value: </comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>ToggleBluetooth</name>
|
||||||
|
<comment>Toggles the bluetooth. If it's enabled, it sets it disabled and vice-versa.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>TurnBrightness</name>
|
||||||
|
<comment>Turns the brightness.
|
||||||
|
0 to 255</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>value</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>TurnWiFiOff</name>
|
||||||
|
<comment>Turns WiFi off.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>TurnWiFiOn</name>
|
||||||
|
<comment>Turns WiFi on.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>TurnBluetoothOff</name>
|
||||||
|
<comment>Turns Bluetooth off.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>TurnBrightnessOff</name>
|
||||||
|
<comment>Turns the brightness off</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>TurnStreamVolume</name>
|
||||||
|
<comment>Sets the Media Volume
|
||||||
|
value: </comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>value</name>
|
||||||
|
<type>int</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>WiFi</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<comment>Checks if Wifi is enabled or disabled</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>RingerMode</name>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
<comment>Gets the ringer mode.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>Bluetooth</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<comment>Checks if bluetooth is enabled or disabled</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>DataConnection</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<comment>Checks if the Mobile Data Connection is enabled or disabled.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>GPS</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<comment>Checks if the GPS is enabled or disabled.</comment>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>AirplaneMode</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<comment>Checks if the airplane mode is enabled or disabled.</comment>
|
||||||
|
</property>
|
||||||
|
<field>
|
||||||
|
<name>RINGER_MODE_SILENT</name>
|
||||||
|
<comment>Ringer mode that will be silent and will not vibrate.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>RINGER_MODE_NORMAL</name>
|
||||||
|
<comment>Ringer mode that may be audible and may vibrate.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>RINGER_MODE_VIBRATE</name>
|
||||||
|
<comment>Ringer mode that will be silent and will vibrate.</comment>
|
||||||
|
<returntype>int</returntype>
|
||||||
|
</field>
|
||||||
|
</class>
|
||||||
|
<version>1.0</version>
|
||||||
|
<author>XverhelstX</author>
|
||||||
|
</root>
|
||||||
BIN
B4A/WebSocket.jar
Normal file
BIN
B4A/WebSocket.jar
Normal file
Binary file not shown.
56
B4A/WebSocket.xml
Normal file
56
B4A/WebSocket.xml
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<root>
|
||||||
|
<doclet-version-NOT-library-version>1.04</doclet-version-NOT-library-version>
|
||||||
|
<class>
|
||||||
|
<name>anywheresoftware.b4a.objects.WebSocketWrapper</name>
|
||||||
|
<shortname>WebSocket</shortname>
|
||||||
|
<comment>Implementation of a WebSocket client.</comment>
|
||||||
|
<owner>process</owner>
|
||||||
|
<event>Connected</event>
|
||||||
|
<event>Closed (Reason As String)</event>
|
||||||
|
<event>TextMessage (Message As String)</event>
|
||||||
|
<permission>android.permission.INTERNET</permission>
|
||||||
|
<method>
|
||||||
|
<name>Connect</name>
|
||||||
|
<comment>Tries to connect to the given Url. The Url should start with ws:// or wss://</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Url</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Initialize</name>
|
||||||
|
<comment>Initializes the object and sets the subs that will handle the events.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>ba</name>
|
||||||
|
<type>anywheresoftware.b4a.BA</type>
|
||||||
|
</parameter>
|
||||||
|
<parameter>
|
||||||
|
<name>EventName</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>SendText</name>
|
||||||
|
<comment>Sends a text message.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
<parameter>
|
||||||
|
<name>Text</name>
|
||||||
|
<type>java.lang.String</type>
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method>
|
||||||
|
<name>Close</name>
|
||||||
|
<comment>Closes the connection.</comment>
|
||||||
|
<returntype>void</returntype>
|
||||||
|
</method>
|
||||||
|
<property>
|
||||||
|
<name>Connected</name>
|
||||||
|
<returntype>boolean</returntype>
|
||||||
|
<comment>Checks whether the connection is open.</comment>
|
||||||
|
</property>
|
||||||
|
</class>
|
||||||
|
<version>1.01</version>
|
||||||
|
</root>
|
||||||
BIN
B4A/WobbleMenu.b4xlib
Normal file
BIN
B4A/WobbleMenu.b4xlib
Normal file
Binary file not shown.
BIN
B4A/WobbleMenu.b4xlib.bak
Normal file
BIN
B4A/WobbleMenu.b4xlib.bak
Normal file
Binary file not shown.
BIN
B4A/X2.b4xlib
Normal file
BIN
B4A/X2.b4xlib
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user