最新发布第13页
排序
How to create and run a task 如何创建和运行任务
Swift’s Task struct lets us start running some work immediately, and optionally wait for the result to be returned. And it is optional: sometimes you don’t ca...
Emby 套件设置 HTTP 网络代理
文件位置 /var/packages/EmbyServer/scripts/start-stop-status。 start-stop-status 文件 代码内容,如下 case '$1' in start) if [ -f $PID_FILE ] && kill -0 '$(cat $PID_FILE)'; t...
Plex 设置 HTTP 网络代理
文件的位置 /var/packages/PlexMediaServer/scripts/start-stop-status。 start-stop-status 文件 代码内容如下 # Set proxy export HTTP_PROXY='http://192.168.50.1:3333' export HTTPS_PROXY...
Activity 生命周期
Activity 的生命周期,如下图所示 onCreate() 调用时机:当 Activity 第一次被创建 时调用(只会调用一次)。常用操作:• 初始化界面(调用 setContentView() 加载布局)• 初始化数据、变量、...
Widgets
CheckBox 复选框的样式 <CheckBox android:id='@+id/check_box' android:layout_width='0dp' android:layout_height='wrap_content' android:layout_marginTop='101dp' android:text='苹果🍎...
Paging Library
基本介绍 Paging Library 是 Android Jetpack 中用于 高效加载大型数据集的一套组件。它能够让你的应用以 分页(Page) 的方式逐步加载数据,而不是一次性加载全部,尤其适用于: 数据量很大(...
What is a synchronous function? 什么是同步函数?
By default, all Swift functions are synchronous, but what does that mean? A synchronous function is one that executes all its work in a simple, straight line on a single threa...
How to make parts of an actor nonisolated 如何使 actor 的各个部分非隔离
All methods and mutable properties inside an actor are isolated to that actor by default, which means they cannot be accessed directly from code that’s external to the actor. Acce...
Understanding how global actor inference works 了解全局参与者推理的工作原理
Apple explicitly annotates many of its types as being @MainActor, including most UIKit types such as UIView and UIButton. However, for a while the Swift team da...






