Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MiEcosystem/NewXmPluginSDK
/ functions
Functions
2,065 in github.com/MiEcosystem/NewXmPluginSDK
⨍
Functions
2,065
◇
Types & classes
278
↓ 6 callers
Method
setCheckedStateForView
(int viewId, boolean checked)
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/XmRadioGroup.java:228
↓ 6 callers
Method
setOnCancelListener
Sets the callback that will be called if the dialog is canceled. @return This Builder object to allow for chaining of calls to set methods @s
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/dialog/MLAlertDialog.java:600
↓ 6 callers
Method
setSelection
(int position)
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/viewflow/ViewFlow.java:676
↓ 6 callers
Method
setValueInternal
Sets the current value of this NumberPicker. @param current The new value of the NumberPicker. @param notifyChange Whether to notify if the current v
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/NumberPicker.java:1468
↓ 6 callers
Method
validate
(DataValue value)
pluglib/src/main/java/com/xiaomi/smarthome/device/api/spec/definitions/data/ConstraintValue.java:5
↓ 5 callers
Method
connectDevice
(final Activity context, final String mac, final String did, final Response.BleConnectResponse response)
plugProject/BleMeshDemo/src/main/java/com/xiaomi/blemeshdemo/MeshManager.java:71
↓ 5 callers
Method
createAccessibilityNodeInfo
(int virtualViewId)
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/NumberPicker.java:2056
↓ 5 callers
Method
formatNumber
(int value)
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/NumberPicker.java:1647
↓ 5 callers
Method
getActions
()
pluglib/src/main/java/com/xiaomi/smarthome/device/api/spec/instance/SpecService.java:59
↓ 5 callers
Method
getCurrentHour
@return The current hour in the range (0-23).
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/TimePicker.java:353
↓ 5 callers
Method
getMaxValue
Returns the max value of the picker. @return The max value.
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/NumberPicker.java:1227
↓ 5 callers
Method
getMinValue
Returns the min value of the picker. @return The min value
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/NumberPicker.java:1189
↓ 5 callers
Method
getObjectValue
()
pluglib/src/main/java/com/xiaomi/smarthome/device/api/spec/definitions/data/value/Vint8.java:68
↓ 5 callers
Method
getPropertyController
ApiLevel 79 获取propertyController @param siid @param piid @return
pluglib/src/main/java/com/xiaomi/smarthome/device/api/spec/operation/controller/DeviceController.java:152
↓ 5 callers
Method
getWindowManager
()
pluglib/src/main/java/com/xiaomi/smarthome/device/api/XmPluginBaseActivity.java:274
↓ 5 callers
Method
hasMethod
(String className, String methodName, Class<?>... parameterTypes)
common_ui/src/main/java/com/xiaomi/smarthome/common/plug/utils/ApiHelper.java:103
↓ 5 callers
Method
loadWebView
ApiLevel:2 打开webview @param url @param title
pluglib/src/main/java/com/xiaomi/smarthome/device/api/IXmPluginHostActivity.java:169
↓ 5 callers
Method
notifyStateChanged
()
pluglib/src/main/java/com/xiaomi/smarthome/device/api/BaseDevice.java:77
↓ 5 callers
Method
onClick
(View v)
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/dialog/MLAlertController.java:152
↓ 5 callers
Method
onProgressChanged
()
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/dialog/XQProgressDialog.java:251
↓ 5 callers
Method
onScrollStateChange
Handles transition to a given <code>scrollState</code>
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/NumberPicker.java:1559
↓ 5 callers
Method
read
ApiLevel: 15 读设备
pluglib/src/main/java/com/xiaomi/smarthome/bluetooth/XmBluetoothManager.java:48
↓ 5 callers
Method
setChecked
(boolean checked)
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/SwitchButton.java:192
↓ 5 callers
Method
setCheckedId
(int id)
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/XmRadioGroup.java:221
↓ 5 callers
Method
setIndeterminate
(boolean indeterminate)
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/dialog/XQProgressDialog.java:201
↓ 5 callers
Method
setPositiveButton
Set a listener to be invoked when the positive button of the dialog is pressed. @param textId The resource id of the text to display in the positive
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/dialog/MLAlertDialog.java:489
↓ 5 callers
Method
setProgress
(int progress)
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/dialog/XQProgressDialog.java:181
↓ 5 callers
Method
setValue
Set the current value for the number picker. <p> If the argument is less than the {@link NumberPicker#getMinValue()} and {@link NumberPicker#getWrapSe
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/NumberPicker.java:1080
↓ 5 callers
Method
snapToDestination
()
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/viewflow/ViewFlow.java:532
↓ 5 callers
Method
snapToScreen
(int whichScreen)
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/viewflow/ViewFlow.java:540
↓ 5 callers
Method
toast
(Context context, String text)
plugProject/xiaomi_bledemov2/src/main/java/com/xiaomi/bledemov2/CommonUtils.java:12
↓ 5 callers
Method
write
ApiLevel: 15 写设备
pluglib/src/main/java/com/xiaomi/smarthome/bluetooth/XmBluetoothManager.java:54
↓ 4 callers
Method
addListener
(MyEditTextListener listener)
plugProject/PluginDemo/src/main/java/com/xiaomi/xmplugindemo/widget/MyEditText.java:30
↓ 4 callers
Method
addStateChangedListener
添加状态监听 @param listener
pluglib/src/main/java/com/xiaomi/smarthome/device/api/BaseDevice.java:47
↓ 4 callers
Method
apply
(MLAlertController dialog)
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/dialog/MLAlertController.java:810
↓ 4 callers
Method
byteArrayToShort
(byte byt[], int nBeginPos, boolean bigOrder)
pluglib/src/main/java/com/xiaomi/smarthome/camera/AVFrame.java:243
↓ 4 callers
Method
clearAllFocus
()
plugProject/PluginDemo/src/main/java/com/xiaomi/xmplugindemo/ControlActivity.java:129
↓ 4 callers
Method
context
ApiLevel:1
pluglib/src/main/java/com/xiaomi/smarthome/device/api/XmPluginHostApi.java:92
↓ 4 callers
Method
findAccessibilityNodeInfosByTextInChild
(String searchedLowerCase, int virtualViewId, List<AccessibilityNodeInfo> outResult)
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/NumberPicker.java:2296
↓ 4 callers
Method
findRadioButton
(ViewGroup group)
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/XmRadioGroup.java:178
↓ 4 callers
Method
getAccountId
ApiLevel:2 获取当前登录的账号id @return
pluglib/src/main/java/com/xiaomi/smarthome/device/api/XmPluginHostApi.java:1064
↓ 4 callers
Method
getApiLevel
插件sdk版本号,插件开发如果必须要与之前api兼容,需要通过SDK_VERSION判断兼容性
pluglib/src/main/java/com/xiaomi/smarthome/device/api/XmPluginHostApi.java:75
↓ 4 callers
Method
getCurrentMinute
@return The current minute.
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/TimePicker.java:420
↓ 4 callers
Method
getDevice
(DeviceStat deviceStat)
plugProject/xiaomi_bledemov2/src/main/java/com/xiaomi/bledemov2/Device.java:24
↓ 4 callers
Method
getDevice
(DeviceStat deviceStat)
plugProject/BleMeshDemo/src/main/java/com/xiaomi/blemeshdemo/Device.java:24
↓ 4 callers
Method
getDeviceFirmwareVersion
(final VersionCallback callback)
plugProject/BleMeshDemo/src/main/java/com/xiaomi/blemeshdemo/BleMeshFirmwareUpgrader.java:80
↓ 4 callers
Method
getDid
返回设备id @return
pluglib/src/main/java/com/xiaomi/smarthome/device/api/BaseDevice.java:143
↓ 4 callers
Method
getHtmlLicenseContent
()
plugProject/PluginDemo/src/main/java/com/xiaomi/xmplugindemo/MainActivity.java:235
↓ 4 callers
Method
getPropertyDefinition
()
pluglib/src/main/java/com/xiaomi/smarthome/device/api/spec/instance/SpecProperty.java:28
↓ 4 callers
Method
getValue
ApiLevel: 13 @return
pluglib/src/main/java/com/xiaomi/smarthome/device/api/KeyValuePair.java:39
↓ 4 callers
Method
getWrappedSelectorIndex
@return The wrapped index <code>selectorIndex</code> value.
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/NumberPicker.java:1587
↓ 4 callers
Method
init
(DataFormat format, Object min, Object max, Object step)
pluglib/src/main/java/com/xiaomi/smarthome/device/api/spec/definitions/data/ValueRange.java:34
↓ 4 callers
Method
isFinishing
()
pluglib/src/main/java/com/xiaomi/smarthome/device/api/XmPluginBaseActivity.java:594
↓ 4 callers
Method
onCheckedChanged
<p> Called when the checked radio button has changed. When the selection is cleared, checkedId is -1. </p> @param group the group in which
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/XmRadioGroup.java:420
↓ 4 callers
Method
onSuccess
(String version)
plugProject/BleMeshDemo/src/main/java/com/xiaomi/blemeshdemo/BleMeshFirmwareUpgrader.java:375
↓ 4 callers
Method
onSwitched
This method is called when a new View has been scrolled to. @param view the {@link View} currently in focus. @param position The position in
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/viewflow/ViewFlow.java:117
↓ 4 callers
Method
onViewLazyInitialize
(View view, int position)
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/viewflow/ViewFlow.java:122
↓ 4 callers
Method
openRechargePage
ApiLevel:24 跳转水电燃气缴费页面 @param type 0:水电燃气缴费主页面 1:水 2:电 3:燃气 @param latitude 纬度 @param longitude 经度
pluglib/src/main/java/com/xiaomi/smarthome/device/api/IXmPluginHostActivity.java:693
↓ 4 callers
Method
overridePendingTransition
ApiLevel:3 设置插件Activity动画 public final String ANIM_SLIDE_IN_LEFT = "slide_in_left"; public final String ANIM_SLIDE_IN_RIGHT = "slide_in_right"; public
pluglib/src/main/java/com/xiaomi/smarthome/device/api/IXmPluginHostActivity.java:191
↓ 4 callers
Method
parse
解析方法 @param result @return @throws JSONException
pluglib/src/main/java/com/xiaomi/smarthome/device/api/Parser.java:18
↓ 4 callers
Method
parseList
(JSONArray array)
pluglib/src/main/java/com/xiaomi/smarthome/device/api/PluginRecommendSceneInfo.java:147
↓ 4 callers
Method
readFromParcel
(Parcel in)
pluglib/src/main/java/com/xiaomi/smarthome/device/api/RecommendSceneItem.java:67
↓ 4 callers
Method
removeStateChangedListener
移除状态监听 @param listener
pluglib/src/main/java/com/xiaomi/smarthome/device/api/BaseDevice.java:64
↓ 4 callers
Method
setButton
Set a message to be sent when a button is pressed. @param whichButton Which button to set the message for, can be one of {@link DialogInte
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/dialog/MLAlertDialog.java:243
↓ 4 callers
Method
setCancelable
Sets whether the dialog is cancelable or not. Default is true. @return This Builder object to allow for chaining of calls to set methods
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/dialog/MLAlertDialog.java:588
↓ 4 callers
Method
setMaxValue
Sets the max value of the picker. @param maxValue The max value inclusive. <strong>Note:</strong> The length of the displayed values array set via {
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/NumberPicker.java:1241
↓ 4 callers
Method
setMinValue
Sets the min value of the picker. @param minValue The min value inclusive. <strong>Note:</strong> The length of the displayed values array set via {
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/NumberPicker.java:1203
↓ 4 callers
Method
setOnCheckedChangeListener
<p> Register a callback to be invoked when the checked radio button changes in this group. </p> @param listener the callback to call on ch
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/XmRadioGroup.java:280
↓ 4 callers
Method
setOnValueChangedListener
Sets the listener to be notified on change of the current value. @param onValueChangedListener The listener.
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/NumberPicker.java:1019
↓ 4 callers
Method
setSpecProperty
ApiLevel 79 设置设备属性值 @param context @param propertyParam @param callback
pluglib/src/main/java/com/xiaomi/smarthome/device/api/spec/operation/controller/DeviceController.java:109
↓ 4 callers
Method
start
(Context context, String m3u8Url, String mp4FilePath)
pluglib/src/main/java/com/xiaomi/smarthome/camera/HLSDownloader.java:9
↓ 4 callers
Method
updateVoice
(Object value)
plugProject/SpecDemo/src/main/java/com/xiaomi/specdemo/MainActivity.java:285
↓ 4 callers
Method
writeString
(String str, Parcel dest)
pluglib/src/main/java/com/xiaomi/smarthome/device/api/ProductInfo.java:52
↓ 3 callers
Method
animateToState
(final boolean isChecked)
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/SwitchButton.java:294
↓ 3 callers
Method
centerButton
(TextView button)
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/dialog/MLAlertController.java:609
↓ 3 callers
Method
create
Creates a {@link android.app.AlertDialog} with the arguments supplied to this builder. It does not {@link Dialog#show()} the dialog. This allows the u
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/dialog/MLAlertDialog.java:1036
↓ 3 callers
Method
drawBitmap
ApiLevel: 63 添加一个贴图水印 @param listener 回调 @param bitmap 需要贴图的图片 @param rectF 贴图的范围 @return
pluglib/src/main/java/com/xiaomi/smarthome/camera/XmVideoViewGl.java:152
↓ 3 callers
Method
ensureCachedScrollSelectorValue
Ensures we have a cached string representation of the given <code> selectorIndex</code> to avoid multiple instantiations of the same string.
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/NumberPicker.java:1628
↓ 3 callers
Method
execute
在后台线程池中执行runnable所代表的任务。 目前只持续一些独立的,彼此间没有依赖和同步关系的任务。 @param runnable
common_ui/src/main/java/com/xiaomi/smarthome/common/plug/utils/ThreadPool.java:22
↓ 3 callers
Method
finishParent
ApiLevel:14 按照调用栈一直回退finish,直到lastActivityClass为止,当lastActivityClass为null会一直回退到设备列表 @param lastActivityClass
pluglib/src/main/java/com/xiaomi/smarthome/device/api/XmPluginBaseActivity.java:119
↓ 3 callers
Method
getAddress
()
pluglib/src/main/java/com/xiaomi/smarthome/bluetooth/XmBluetoothDevice.java:74
↓ 3 callers
Method
getAssets
()
pluglib/src/main/java/com/xiaomi/smarthome/device/api/XmPluginBaseActivity.java:217
↓ 3 callers
Method
getBleMeshFirmwareVersion
(final Activity context, final String mac, final String did, final Response.BleReadFirmwareVersionResponse res
plugProject/BleMeshDemo/src/main/java/com/xiaomi/blemeshdemo/MeshManager.java:117
↓ 3 callers
Method
getDeviceController
ApiLevel 79 @param did @return
pluglib/src/main/java/com/xiaomi/smarthome/device/api/spec/operation/controller/DeviceController.java:45
↓ 3 callers
Method
getHeightPadding
()
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/viewflow/ViewFlow.java:235
↓ 3 callers
Method
getPackageName
ApiLevel:6 @return
pluglib/src/main/java/com/xiaomi/plugin/core/XmPluginPackage.java:140
↓ 3 callers
Method
getProgress
()
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/dialog/XQProgressDialog.java:193
↓ 3 callers
Method
getResultCode
()
pluglib/src/main/java/com/xiaomi/smarthome/device/api/spec/operation/ActionParam.java:64
↓ 3 callers
Method
getServerFirmwareVersion
(final VersionCallback callback)
plugProject/BleMeshDemo/src/main/java/com/xiaomi/blemeshdemo/BleMeshFirmwareUpgrader.java:109
↓ 3 callers
Method
getSharedPreferences
(String name, int mode)
pluglib/src/main/java/com/xiaomi/smarthome/device/api/XmPluginBaseActivity.java:256
↓ 3 callers
Method
getSpecProperties
ApiLevel 79 从服务器获取设备属性值 @param context @param propertyParamList
pluglib/src/main/java/com/xiaomi/smarthome/device/api/spec/operation/controller/DeviceController.java:65
↓ 3 callers
Method
getVirtualDecrementButtonText
()
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/NumberPicker.java:2444
↓ 3 callers
Method
getVirtualIncrementButtonText
()
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/NumberPicker.java:2456
↓ 3 callers
Method
getWidthPadding
()
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/viewflow/ViewFlow.java:227
↓ 3 callers
Method
handleMessage
所有插件必须实现该接口,并且在type=LAUNCHER时,启动入口页面 比如下MiTVPageActivity为入口activity switch (type) { case LAUNCHER: {// 启动入口 XmPluginHostApi.instance().startActivity(x
pluglib/src/main/java/com/xiaomi/smarthome/device/api/IXmPluginMessageReceiver.java:160
↓ 3 callers
Method
init
()
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/SwitchButtonLocked.java:34
↓ 3 callers
Method
init
()
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/CustomPullDownRefreshListView.java:234
↓ 3 callers
Method
init
()
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/viewflow/ViewFlow.java:147
↓ 3 callers
Method
initialMenuButton
(int id)
plugProject/xiaomi_bledemov2/src/main/java/com/xiaomi/bledemov2/MenuActivity.java:61
↓ 3 callers
Method
logBuffer
()
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/widget/viewflow/ViewFlow.java:863
← previous
next →
101–200 of 2,065, ranked by callers