Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
benyuz authored Jul 2, 2023
1 parent ccd3b62 commit aab2555
Show file tree
Hide file tree
Showing 60 changed files with 35,992 additions and 0 deletions.
50 changes: 50 additions & 0 deletions docs/b4a/_sidebar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
* [Accessibility](libs/Accessibility.md)
* [Administrator](libs/Administrator.md)
* [Animation](libs/Animation.md)
* [AppCompat](libs/AppCompat.md)
* [Audio](libs/Audio.md)
* [B4XEncryption](libs/B4XEncryption.md)
* [BitmapCreator](libs/BitmapCreator.md)
* [BLE2](libs/BLE2.md)
* [ByteConverter](libs/ByteConverter.md)
* [Camera](libs/Camera.md)
* [Camera2](libs/Camera2.md)
* [ContentResolver](libs/ContentResolver.md)
* [Core](libs/Core.md)
* [DateUtils](libs/DateUtils.md)
* [FirebaseAdMob](libs/FirebaseAdMob.md)
* [FirebaseAdMob2](libs/FirebaseAdMob2.md)
* [FirebaseAnalytics](libs/FirebaseAnalytics.md)
* [FirebaseAuth](libs/FirebaseAuth.md)
* [FirebaseNotifications](libs/FirebaseNotifications.md)
* [FirebaseStorage](libs/FirebaseStorage.md)
* [GameView](libs/GameView.md)
* [Gestures](libs/Gestures.md)
* [GooglePlayBilling](libs/GooglePlayBilling.md)
* [GPS](libs/GPS.md)
* [IME](libs/IME.md)
* [JavaObject](libs/JavaObject.md)
* [JSON](libs/JSON.md)
* [KeyValueStore2](libs/KeyValueStore2.md)
* [LiveWallpaper](libs/LiveWallpaper.md)
* [Network](libs/Network.md)
* [NFC](libs/NFC.md)
* [OkHttp](libs/OkHttp.md)
* [Phone](libs/Phone.md)
* [PreferenceActivity](libs/PreferenceActivity.md)
* [RandomAccessFile](libs/RandomAccessFile.md)
* [Reflection](libs/Reflection.md)
* [RuntimePermissions](libs/RuntimePermissions.md)
* [Serial](libs/Serial.md)
* [Sip](libs/Sip.md)
* [SQL](libs/SQL.md)
* [StringUtils](libs/StringUtils.md)
* [TabStripViewPager](libs/TabStripViewPager.md)
* [TTS](libs/TTS.md)
* [USB](libs/USB.md)
* [ViewsEx](libs/ViewsEx.md)
* [xCustomListView](libs/xCustomListView.md)
* [XMLBuilder](libs/XMLBuilder.md)
* [XmlSax](libs/XmlSax.md)
* [XUI](libs/XUI.md)
* [XUI2D](libs/XUI2D.md)
51 changes: 51 additions & 0 deletions docs/b4a/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!DOCTYPE html>
<html>
<head>
<title>B4A类库中文文档</title>
<link rel="icon" href="favicon.ico">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta charset="UTF-8">
<link rel="stylesheet" href="theme/vue.css">
<style>
.markdown-section h2{
font-size:1.5em;
}
.markdown-section h1 a span{
color: #42b983;
}
</style>
</head>
<body>
<div id="app">加载中...</div>
<script>
window.$docsify = {
//...
auto2top: true,
loadSidebar: true,
subMaxLevel: 6,
name: 'B4A类库中文文档',
homepage: 'index.md',
//coverpage: true,
// 搜索功能相关
search: {
maxAge: 86400000, // 过期时间,单位毫秒,默认一天
paths: 'auto',
placeholder: '输入关键字搜索',
noData: '没有搜到',
depth: 6 // 搜索标题的最大程级, 1 - 6
},
// 代码块点击复制
copyCode: {
buttonText: '复制',
errorText: '出错了',
successText: '已复制'
}
}
</script>
<script src="theme/docsify.min.js"></script>
<script src="theme/search.min.js"></script>
<script src="theme/docsify-copy-code.min.js"></script>
<script src="theme/docsify-sidebar-collapse.min.js"></script>
</body>
</html>
3 changes: 3 additions & 0 deletions docs/b4a/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# !> **b4a类库中文文档**

[Accessibility](libs/Accessibility.md) | [Administrator](libs/Administrator.md) | [Animation](libs/Animation.md) | [AppCompat](libs/AppCompat.md) | [Audio](libs/Audio.md) | [B4XEncryption](libs/B4XEncryption.md) | [BitmapCreator](libs/BitmapCreator.md) | [BLE2](libs/BLE2.md) | [ByteConverter](libs/ByteConverter.md) | [Camera](libs/Camera.md) | [Camera2](libs/Camera2.md) | [ContentResolver](libs/ContentResolver.md) | [Core](libs/Core.md) | [DateUtils](libs/DateUtils.md) | [FirebaseAdMob](libs/FirebaseAdMob.md) | [FirebaseAdMob2](libs/FirebaseAdMob2.md) | [FirebaseAnalytics](libs/FirebaseAnalytics.md) | [FirebaseAuth](libs/FirebaseAuth.md) | [FirebaseNotifications](libs/FirebaseNotifications.md) | [FirebaseStorage](libs/FirebaseStorage.md) | [GameView](libs/GameView.md) | [Gestures](libs/Gestures.md) | [GooglePlayBilling](libs/GooglePlayBilling.md) | [GPS](libs/GPS.md) | [IME](libs/IME.md) | [JavaObject](libs/JavaObject.md) | [JSON](libs/JSON.md) | [KeyValueStore2](libs/KeyValueStore2.md) | [LiveWallpaper](libs/LiveWallpaper.md) | [Network](libs/Network.md) | [NFC](libs/NFC.md) | [OkHttp](libs/OkHttp.md) | [Phone](libs/Phone.md) | [PreferenceActivity](libs/PreferenceActivity.md) | [RandomAccessFile](libs/RandomAccessFile.md) | [Reflection](libs/Reflection.md) | [RuntimePermissions](libs/RuntimePermissions.md) | [Serial](libs/Serial.md) | [Sip](libs/Sip.md) | [SQL](libs/SQL.md) | [StringUtils](libs/StringUtils.md) | [TabStripViewPager](libs/TabStripViewPager.md) | [TTS](libs/TTS.md) | [USB](libs/USB.md) | [ViewsEx](libs/ViewsEx.md) | [xCustomListView](libs/xCustomListView.md) | [XMLBuilder](libs/XMLBuilder.md) | [XmlSax](libs/XmlSax.md) | [XUI](libs/XUI.md) | [XUI2D](libs/XUI2D.md)
144 changes: 144 additions & 0 deletions docs/b4a/libs/Accessibility.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
# Accessibility

版本:1.02
[BBS View](https://www.b4x.com/android/forum/pages/results/?query=Accessibility)

# Accessibility
完整类名:anywheresoftware.b4a.objects.Accessibility
> 所有者:process
?> 说明:此库包括几个与可访问性相关的方法。
## GetUserFontScale方法
**GetUserFontScale()**

?> 说明:返回用户设置的字体比例。用户可以在设备设置中调整此比例。
>
> 返回值:float
## SetNextFocusDown方法
**SetNextFocusDown(ThisView,NextView)**

?> 说明:设置当用户按下向下键时将获得焦点的下一个视图(并且ThisView处于焦点状态)。
```vbnet

Dim Access As Accessibility
Access.SetNextFocusDown(Button1, Button2) 'When the focus is on Button1 and the user presses on the down key,
'the focus will move to Button2.

```

>
> 参数:ThisView,类型:android.view.View
>
> 参数:NextView,类型:android.view.View
>
> 返回值:void
## SetNextFocusLeft方法
**SetNextFocusLeft(ThisView,NextView)**

?> 说明:设置当用户按下左键时将获得焦点的下一个视图(并且ThisView处于焦点状态)。
>
> 参数:ThisView,类型:android.view.View
>
> 参数:NextView,类型:android.view.View
>
> 返回值:void
## SetContentDescription方法
**SetContentDescription(View,Content)**

?> 说明:设置视图的描述。辅助功能服务将使用此文本来描述视图。
>
> 参数:View,类型:android.view.View
>
> 参数:Content,类型:java.lang.CharSequence
>
> 返回值:void
## SetNextFocusUp方法
**SetNextFocusUp(ThisView,NextView)**

?> 说明:设置当用户按下向上键时将获得焦点的下一个视图(并且ThisView处于焦点状态)。
>
> 参数:ThisView,类型:android.view.View
>
> 参数:NextView,类型:android.view.View
>
> 返回值:void
## SetNextFocusRight方法
**SetNextFocusRight(ThisView,NextView)**

?> 说明:设置下一个视图,该视图将在用户按下右键时获得焦点(并且ThisView处于焦点状态)。
>
> 参数:ThisView,类型:android.view.View
>
> 参数:NextView,类型:android.view.View
>
> 返回值:void
# Accessiblity
完整类名:anywheresoftware.b4a.objects.Accessibility.Accessibility2
> 所有者:process
?> 说明:与辅助功能类型相同,但有拼写错误。。。请改用辅助功能。
## GetUserFontScale方法
**GetUserFontScale()**

?> 说明:返回用户设置的字体比例。用户可以在设备设置中调整此比例。
>
> 返回值:float
## SetNextFocusDown方法
**SetNextFocusDown(ThisView,NextView)**

?> 说明:设置当用户按下向下键时将获得焦点的下一个视图(并且ThisView处于焦点状态)。
```vbnet

Dim Access As Accessibility
Access.SetNextFocusDown(Button1, Button2) 'When the focus is on Button1 and the user presses on the down key,
'the focus will move to Button2.

```

>
> 参数:ThisView,类型:android.view.View
>
> 参数:NextView,类型:android.view.View
>
> 返回值:void
## SetNextFocusLeft方法
**SetNextFocusLeft(ThisView,NextView)**

?> 说明:设置当用户按下左键时将获得焦点的下一个视图(并且ThisView处于焦点状态)。
>
> 参数:ThisView,类型:android.view.View
>
> 参数:NextView,类型:android.view.View
>
> 返回值:void
## SetContentDescription方法
**SetContentDescription(View,Content)**

?> 说明:设置视图的描述。辅助功能服务将使用此文本来描述视图。
>
> 参数:View,类型:android.view.View
>
> 参数:Content,类型:java.lang.CharSequence
>
> 返回值:void
## SetNextFocusUp方法
**SetNextFocusUp(ThisView,NextView)**

?> 说明:设置当用户按下向上键时将获得焦点的下一个视图(并且ThisView处于焦点状态)。
>
> 参数:ThisView,类型:android.view.View
>
> 参数:NextView,类型:android.view.View
>
> 返回值:void
## SetNextFocusRight方法
**SetNextFocusRight(ThisView,NextView)**

?> 说明:设置下一个视图,该视图将在用户按下右键时获得焦点(并且ThisView处于焦点状态)。
>
> 参数:ThisView,类型:android.view.View
>
> 参数:NextView,类型:android.view.View
>
> 返回值:void
92 changes: 92 additions & 0 deletions docs/b4a/libs/Administrator.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# Administrator

版本:1.1
[BBS View](https://www.b4x.com/android/forum/pages/results/?query=Administrator)

# AdminManager
完整类名:anywheresoftware.b4a.objects.AdminManager
> 所有者:process
?> 说明:有关详细信息,请参阅此链接。
## ResetPassword方法
**ResetPassword(NewPassword)**

?> 说明:将给定的密码设置为设备密码。
>
> 参数:NewPassword,类型:java.lang.String
>
> 返回值:boolean
## Disable方法
**Disable()**

?> 说明:禁用管理策略。
>
> 返回值:void
## Enable方法
**Enable(ba,Explanation)**

?> 说明:启用管理策略。用户将看到一个具有所需功能的对话框。
>
> 参数:ba,类型:anywheresoftware.b4a.BA
>
> 参数:Explanation,类型:java.lang.String
>
> 返回值:void
## RequestNewPassword方法
**RequestNewPassword(ba)**

?> 说明:显示新密码活动。请注意,用户可能会取消更改。
>
> 参数:ba,类型:anywheresoftware.b4a.BA
>
> 返回值:void
## SetPasswordQuality方法
**SetPasswordQuality(QualityFlag,MinimumLength)**

?> 说明:设置设备密码允许的最小长度和质量。
```vbnet

manager.SetPasswordQuality(manager.PASSWORD_QUALITY_ALPHANUMERIC, 4)
```

>
> 参数:QualityFlag,类型:int
>
> 参数:MinimumLength,类型:int
>
> 返回值:void
## LockScreen方法
**LockScreen()**

?> 说明:立即锁定屏幕。需要策略文件中的强制锁定标记。
>
> 返回值:void
## Enabled属性

?> 说明:如果管理策略处于活动状态,则返回true。
>
> 返回值:boolean
## PasswordSufficient属性

?> 说明:测试当前密码是否符合要求。
>
> 返回值:boolean
## MaximumTimeToLock属性

?> 说明:设置设备锁定前的最长时间(以毫秒为单位)。
>
> 参数:value,类型:long
>
> 返回值:
## PASSWORD_QUALITY_UNSPECIFIED字段
>
> 返回值:int
## PASSWORD_QUALITY_ALPHABETIC字段
>
> 返回值:int
## PASSWORD_QUALITY_ALPHANUMERIC字段
>
> 返回值:int
## PASSWORD_QUALITY_NUMERIC字段
>
> 返回值:int
Loading

0 comments on commit aab2555

Please sign in to comment.