Runtime API Examples
This page demonstrates usage of some of the runtime APIs provided by VitePress.
The main useData()
API can be used to access site, theme, and page data for the current page. It works in both .md
and .vue
files:
md
<script setup>
import { useData } from 'vitepress'
const { theme, page, frontmatter } = useData()
</script>
## Results
### Theme Data
<pre>{{ theme }}</pre>
### Page Data
<pre>{{ page }}</pre>
### Page Frontmatter
<pre>{{ frontmatter }}</pre>
Results
Theme Data
{ "search": { "provider": "local" }, "outline": "deep", "lastUpdated": { "text": "最近更新", "formatOptions": { "dateStyle": "full", "timeStyle": "medium" } }, "logo": "/logo.svg", "docFooter": { "prev": "上一页", "next": "下一页" }, "editLink": { "pattern": "https://github.com/starrylixu/StarAndroid/edit/main/docs/:path", "text": "Edit this page on GitHub" }, "nav": [ { "text": "主页", "link": "/" }, { "text": "Android", "items": [ { "text": "快速入门", "link": "/Android基础知识/A-快速入门/1.Android第一课" }, { "text": "四大组件", "link": "/Android基础知识/B-四大组件/四大组件之ContentProvider" }, { "text": "Fragment", "link": "/Android基础知识/C-Fragment/Fragment简单使用" }, { "text": "View", "link": "/Android基础知识/D-View/1.ViewPager和ViewPager2的区别" }, { "text": "多线程", "link": "/Android基础知识/E-多线程/1.实现多线程" }, { "text": "常用控件", "link": "/Android控件/1.(待完善)BRV的简单使用" } ] }, { "text": "New Android", "link": "/Android/多线程/1.实现多线程" }, { "text": "Flutter", "link": "/Flutter/1.控件" }, { "text": "语言学习", "items": [ { "text": "Markdown Examples", "link": "/markdown-examples" }, { "text": "Runtime API Examples", "link": "/api-examples" }, { "text": "Dart", "link": "/dart/Dart基础" }, { "text": "Java", "link": "/Java/2.Java特性" }, { "text": "Kotlin", "link": "/Kotlin/协程" } ] }, { "text": "开发工具", "link": "/开发工具/Git使用指南" }, { "text": "说明", "link": "README.md" } ], "sidebar": { "/Android/": [ { "text": "Android", "items": [ { "text": "😊 Android 基础", "collapsed": true, "items": [ { "text": "# 简介", "link": "/Android/A-Android基础/1.第一课Android系统简介.md" }, { "text": "# 1.控制面板卸软件", "link": "/Android/A-Android基础/2.怎么把androidStudio卸载干净.md" }, { "text": "3.TextView实现走马灯的效果", "link": "/Android/A-Android基础/3.TextView实现走马灯的效果.md" }, { "text": "4.如何为组件添加响应", "link": "/Android/A-Android基础/4.如何为组件添加响应.md" }, { "text": "# 引言", "link": "/Android/A-Android基础/5.如何实现页面的跳转,并传输参数.md" }, { "text": "# 引言", "link": "/Android/A-Android基础/6.如何实现界面间的数据传输.md" }, { "text": "# 简介", "link": "/Android/A-Android基础/7.Fragment的使用.md" }, { "text": "# 简介", "link": "/Android/A-Android基础/8.RecyclerView列表组件.md" }, { "text": "# 官网简介", "link": "/Android/A-Android基础/9.SharedPreferences简单数据存储.md" }, { "text": "# 🍁简介", "link": "/Android/A-Android基础/10.复杂数据的存储SQLite.md" }, { "text": "网络请求权限", "link": "/Android/A-Android基础/11.网络请求数据与JSON解析.md" }, { "text": "【Android】网络编程之OKHTTP与Retrofit框架", "link": "/Android/A-Android基础/12.网络编程之网络请求.md" }, { "text": "# 注册阿里云账号", "link": "/Android/A-Android基础/13.网络编程实战-天气请求.md" }, { "text": "# 1. 视图绑定", "link": "/Android/A-Android基础/14.视图绑定与网络编程webView.md" }, { "text": "# 1. 上期回顾", "link": "/Android/A-Android基础/15.技术发展与学习路线.md" }, { "text": "# MVC(最经典)", "link": "/Android/A-Android基础/16.MVC,MVP,MVVM的优缺点.md" }, { "text": "# 1.前期准备", "link": "/Android/A-Android基础/17.dataBinding的使用.md" }, { "text": "# 1.网络编程", "link": "/Android/A-Android基础/18.网络编程+RecyclerView+databinding.md" }, { "text": "# 背景知识", "link": "/Android/A-Android基础/19.EventBus实现总线数据分发.md" }, { "text": "1.官方服务", "link": "/Android/A-Android基础/20.百度地图.md" }, { "text": "# 动态权限", "link": "/Android/A-Android基础/20.相机权限使用.md" }, { "text": "1.App发布到应用市场", "link": "/Android/A-Android基础/21.APP打包发布.md" }, { "text": "1.权限设置", "link": "/Android/A-Android基础/21.权限请求框架-手电筒.md" }, { "text": "自然语言处理", "link": "/Android/A-Android基础/2022谷歌 IO大会直播开发者大会主题演讲!持续努力,创建未来.md" }, { "text": "Android最新版本号与API级别对应关系(更新到android13)", "link": "/Android/A-Android基础/Android最新版本号与API级别对应关系(更新到android13).md" }, { "text": "Unity与Android", "items": [ { "text": "1.数据库表", "link": "/Android/A-Android基础/Unity与Android/Android课设后台添加后台接口.md" }, { "text": "安卓与Unity通信(1)", "link": "/Android/A-Android基础/Unity与Android/Unity与安卓通信1(图文详细).md" }, { "text": "Unity与安卓通信(2)", "link": "/Android/A-Android基础/Unity与Android/Unity与安卓通信2(图文详细).md" }, { "text": "【Android】Android与Unity安卓AR通信(3)", "link": "/Android/A-Android基础/Unity与Android/Unity与安卓通信3(报错记录).md" }, { "text": "Unity怎么通过WIFI连接真机调试", "link": "/Android/A-Android基础/Unity与Android/Unity怎么通过WIFI真机调试.md" } ] } ] }, { "text": "B-四大组件", "items": [ { "text": "# Application的oncreate方法会执行几次,会不会多次执行?", "link": "/Android/B-四大组件/Application.md" }, { "text": "startActivityForResult是什么", "link": "/Android/B-四大组件/startActivityForResult被弃用.md" }, { "text": "什么是Activity", "link": "/Android/B-四大组件/『初入茅庐』- Android四大组件之Activity.md" }, { "text": "什么是Context", "link": "/Android/B-四大组件/『初入茅庐』- Context.md" }, { "text": "什么是广播接收器", "link": "/Android/B-四大组件/『初入茅庐』- 四大组件之BroadcastReceiver.md" }, { "text": "什么是ContentProvider", "link": "/Android/B-四大组件/『初入茅庐』- 四大组件之ContentProvider.md" }, { "text": "什么是Service", "link": "/Android/B-四大组件/『初入茅庐』- 四大组件之Service.md" } ] }, { "text": "D-View", "items": [ { "text": "# ViewPager2 和 ViewPager 的区别", "link": "/Android/D-View/1.ViewPager和ViewPager2的区别.md" }, { "text": "什么是预拉取", "link": "/Android/D-View/2.RecyclerView的预拉取机制(转载总结).md" }, { "text": "为什么要设计成View在播放属性动画是默认不能被回收", "link": "/Android/D-View/3.RecyclerView缓存失效的情况.md" }, { "text": "控件使用", "link": "/Android/D-View/4.(未发)ListView与RecyclerView的区别.md" }, { "text": "5.问题", "link": "/Android/D-View/5.嵌套RecyclerView的缓存池共用.md" }, { "text": "1.分类", "link": "/Android/D-View/6.自定义View.md" }, { "text": "Window的概念", "link": "/Android/D-View/7.Window.md" }, { "text": "8.xml文件是如何转换成View对象的", "link": "/Android/D-View/8.xml文件是如何转换成View对象的.md" }, { "text": "# 常见的滑动冲突场景", "link": "/Android/D-View/9.滑动冲突.md" }, { "text": "事件分发的事件是什么?", "link": "/Android/D-View/10.View的事件分发.md" }, { "text": "11.动画", "link": "/Android/D-View/11.动画.md" }, { "text": "12android:layout_gravity和android:gravity的使用区别", "link": "/Android/D-View/12.布局常见问题.md" }, { "text": "13.WebView", "link": "/Android/D-View/13.WebView使用简介.md" }, { "text": "UI绘制流程", "link": "/Android/D-View/UI绘制流程.md" } ] }, { "text": "Fragment", "items": [ { "text": "Activity传递数据到Fragment", "link": "/Android/Fragment/Activity和Fragment的通信方式.md" }, { "text": "FragmentManager简介", "link": "/Android/Fragment/FragmentManager.md" }, { "text": "什么是Fragment", "link": "/Android/Fragment/Fragment的生命周期.md" }, { "text": "创建一个Fragment类", "link": "/Android/Fragment/Fragment简单使用.md" } ] }, { "text": "IPC进程间通信", "items": [ { "text": "进程的状态(操作系统层面)", "link": "/Android/IPC进程间通信/1.进程基础知识.md" }, { "text": "Binder机制", "link": "/Android/IPC进程间通信/Binder机制.md" } ] }, { "text": "多线程", "items": [ { "text": "进阶之路-Java与Android中多线程的实现", "link": "/Android/多线程/1.实现多线程.md" }, { "text": "什么是线程", "link": "/Android/多线程/2.线程创建的开销.md" }, { "text": "3.线程池中提交一个任务的流程是怎样的?", "link": "/Android/多线程/3.Java线程池.md" }, { "text": "ThreadPoolExecutor", "link": "/Android/多线程/5.Android中的线程池.md" }, { "text": "进阶之路-揭开ThreadLocal神秘面纱", "link": "/Android/多线程/6.ThreadLocal.md" }, { "text": "什么是Handler", "link": "/Android/多线程/7.Handler异步消息机制.md" }, { "text": "8为什么需要HandlerThread", "link": "/Android/多线程/8.HandlerThread.md" } ] }, { "text": "性能优化", "items": [ { "text": "什么是ANR", "link": "/Android/性能优化/ANR(转载).md" }, { "text": "RecyclerView加载图片出现内存溢出", "link": "/Android/性能优化/Crash.md" }, { "text": "一张图片100x100在内存中的大小", "link": "/Android/性能优化/内存优化.md" }, { "text": "卡顿优化", "link": "/Android/性能优化/卡顿优化.md" }, { "text": "布局优化", "link": "/Android/性能优化/布局优化.md" }, { "text": "什么是断点续传", "link": "/Android/性能优化/网络优化.md" } ] }, { "text": "面试宝典", "items": [ { "text": "View动画", "link": "/Android/面试宝典/Android动画深入分析.md" }, { "text": "Drawable简介", "link": "/Android/面试宝典/Android的Drawable.md" }, { "text": "IPC", "link": "/Android/面试宝典/IPC.md" }, { "text": "RemoteViews的应用", "link": "/Android/面试宝典/RemoteViews跨进程View.md" }, { "text": "View基础知识", "link": "/Android/面试宝典/View的事件体系.md" }, { "text": "ViewRoot和DecorView", "link": "/Android/面试宝典/View的工作原理.md" }, { "text": "理解Window和WindowManager", "link": "/Android/面试宝典/理解Window和WindowManager.md" }, { "text": "知识点梳理", "link": "/Android/面试宝典/面试知识点梳理.md" } ] } ] } ], "/Android基础知识/": [ { "text": "Android基础知识", "items": [ { "text": "😊 Android 基础", "collapsed": true, "items": [ { "text": "1.第一课Android系统简介", "link": "/Android基础知识/A-快速入门/1.Android第一课.md" }, { "text": "2.Android Stduio工具使用", "link": "/Android基础知识/A-快速入门/2.怎么把androidStudio卸载干净.md" }, { "text": "3.TextView实现走马灯的效果", "link": "/Android基础知识/A-快速入门/3.TextView如何实现走马灯的效果.md" }, { "text": "4.组件响应事件", "link": "/Android基础知识/A-快速入门/4.如何为组件添加响应.md" }, { "text": "5.实现页面的跳转", "link": "/Android基础知识/A-快速入门/5.如何实现页面的跳转,并传输参数.md" }, { "text": "6.界面间的数据传输", "link": "/Android基础知识/A-快速入门/6.如何实现界面间的数据传输.md" }, { "text": "7.Fragment的使用", "link": "/Android基础知识/A-快速入门/7.Fragment的使用.md" }, { "text": "8.RecyclerView列表组件", "link": "/Android基础知识/A-快速入门/8.RecyclerView列表组件.md" }, { "text": "9.SharedPreferences简单数据存储", "link": "/Android基础知识/A-快速入门/9.SharedPreferences简单数据存储.md" }, { "text": "11.网络请求数据与JSON解析", "link": "/Android基础知识/A-快速入门/11.网络请求数据与JSON解析.md" }, { "text": "12.1.OkhttpPlus", "link": "/Android基础知识/A-快速入门/12.1网络请求之Retrofit.md" }, { "text": "12.网络编程之OKHTTP与Retrofit框架", "link": "/Android基础知识/A-快速入门/12.网络编程之网络请求.md" }, { "text": "13.网络编程实战-天气App", "link": "/Android基础知识/A-快速入门/13.网络编程实战-天气请求.md" }, { "text": "14.视图绑定与网络编程", "link": "/Android基础知识/A-快速入门/14.视图绑定与网络编程webView.md" }, { "text": "16.MVC、MVP、MVVM", "link": "/Android基础知识/A-快速入门/16.MVC,MVP,MVVM的优缺点.md" }, { "text": "17.databinding使用", "link": "/Android基础知识/A-快速入门/17.dataBinding的使用.md" }, { "text": "19.EventBus实现总线数据分发", "link": "/Android基础知识/A-快速入门/19.EventBus实现总线数据分发.md" }, { "text": "20.百度地图", "link": "/Android基础知识/A-快速入门/20.百度地图.md" }, { "text": "20.相机权限", "link": "/Android基础知识/A-快速入门/20.相机权限使用.md" }, { "text": "21.XXPermissions请求相机权限实现手电筒", "link": "/Android基础知识/A-快速入门/21.权限请求框架-手电筒.md" }, { "text": "自然语言处理", "link": "/Android基础知识/A-快速入门/2022谷歌 IO大会直播开发者大会主题演讲_持续努力,创建未来.md" }, { "text": "2023年谷歌开发者大会", "link": "/Android基础知识/A-快速入门/2023年谷歌开发者大会.md" } ] }, { "text": "😊 四大组件", "collapsed": true, "items": [ { "text": "什么是Activity", "link": "/Android基础知识/B-四大组件/1.Android四大组件之Activity.md" }, { "text": "Application的oncreate方法会执行几次,会不会多次执行?", "link": "/Android基础知识/B-四大组件/Application.md" }, { "text": "什么是Context", "link": "/Android基础知识/B-四大组件/Context.md" }, { "text": "startActivityForResult是什么", "link": "/Android基础知识/B-四大组件/startActivityForResult被弃用.md" }, { "text": "什么是广播接收器", "link": "/Android基础知识/B-四大组件/四大组件之BroadcastReceiver.md" }, { "text": "什么是ContentProvider", "link": "/Android基础知识/B-四大组件/四大组件之ContentProvider.md" }, { "text": "什么是Service", "link": "/Android基础知识/B-四大组件/四大组件之Service.md" } ] }, { "text": "😊 Fragment", "collapsed": true, "items": [ { "text": "Activity传递数据到Fragment", "link": "/Android基础知识/C-Fragment/Activity和Fragment的通信方式.md" }, { "text": "FragmentManager简介", "link": "/Android基础知识/C-Fragment/FragmentManager.md" }, { "text": "什么是Fragment", "link": "/Android基础知识/C-Fragment/Fragment的生命周期.md" }, { "text": "创建一个Fragment类", "link": "/Android基础知识/C-Fragment/Fragment简单使用.md" } ] }, { "text": "😊 View视图", "collapsed": true, "items": [ { "text": "# ViewPager2 和 ViewPager 的区别", "link": "/Android基础知识/D-View/1.ViewPager和ViewPager2的区别.md" }, { "text": "什么是预拉取", "link": "/Android基础知识/D-View/2.RecyclerView的预拉取机制(转载总结).md" }, { "text": "为什么要设计成View在播放属性动画是默认不能被回收", "link": "/Android基础知识/D-View/3.RecyclerView缓存失效的情况.md" }, { "text": "问题", "link": "/Android基础知识/D-View/5.嵌套RecyclerView的缓存池共用.md" }, { "text": "1.分类", "link": "/Android基础知识/D-View/6.自定义View.md" }, { "text": "Window的概念", "link": "/Android基础知识/D-View/7.Window.md" }, { "text": "8.xml文件是如何转换成View对象的", "link": "/Android基础知识/D-View/8.xml文件是如何转换成View对象的.md" }, { "text": "# 常见的滑动冲突场景", "link": "/Android基础知识/D-View/9.滑动冲突.md" }, { "text": "事件分发的事件是什么?", "link": "/Android基础知识/D-View/10.View的事件分发.md" }, { "text": "11.动画", "link": "/Android基础知识/D-View/11.动画.md" }, { "text": "android:layout_gravity和android:gravity的使用区别", "link": "/Android基础知识/D-View/12.布局常见问题.md" }, { "text": "WebView", "link": "/Android基础知识/D-View/13.WebView使用简介.md" } ] }, { "text": "😊 多线程", "collapsed": true, "items": [ { "text": "进阶之路-Java与Android中多线程的实现", "link": "/Android基础知识/E-多线程/1.实现多线程.md" }, { "text": "什么是线程", "link": "/Android基础知识/E-多线程/2.线程创建的开销.md" }, { "text": "线程池中提交一个任务的流程是怎样的?", "link": "/Android基础知识/E-多线程/3.Java线程池.md" }, { "text": "Thread的run和start方法有什么不同", "link": "/Android基础知识/E-多线程/4.线程相关问题.md" }, { "text": "ThreadPoolExecutor", "link": "/Android基础知识/E-多线程/5.Android中的线程池.md" }, { "text": "进阶之路-揭开ThreadLocal神秘面纱", "link": "/Android基础知识/E-多线程/6.ThreadLocal.md" }, { "text": "应用场景", "link": "/Android基础知识/E-多线程/7.1Handler的常见应用场景.md" }, { "text": "产生背景", "link": "/Android基础知识/E-多线程/7.2同步消息屏障.md" }, { "text": "什么是Handler", "link": "/Android基础知识/E-多线程/7.Handler异步消息机制.md" }, { "text": "为什么需要HandlerThread", "link": "/Android基础知识/E-多线程/8.HandlerThread.md" } ] }, { "text": "😊 IPC进程通信", "collapsed": true, "items": [ { "text": "进程的状态(操作系统层面)", "link": "/Android基础知识/F-IPC/1.进程基础知识.md" } ] }, { "text": "# 个人项目", "link": "/Android基础知识/Android学习路线.md" }, { "text": "无标题", "link": "/Android基础知识/无标题.md" }, { "text": "无标题文档", "link": "/Android基础知识/无标题文档.md" }, { "text": "无标题文档_wgqir1hanw7cf5n5", "link": "/Android基础知识/无标题文档_wgqir1hanw7cf5n5.md" } ] } ], "/api-examples.md/": [ { "text": "Runtime API Examples", "items": [] } ], "/markdown-examples.md/": [ { "text": "Markdown Extension Examples", "items": [] } ], "/目录大纲.md/": [ { "text": "绘画基础", "items": [] } ], "/Android控件/": [ { "text": "Android控件", "items": [ { "text": "1.笔者前言", "link": "/Android控件/1.通过Lottie渲染JSON格式动画.md" }, { "text": "1.(待完善)BRV的简单使用", "link": "/Android控件/1.(待完善)BRV的简单使用.md" }, { "text": "🍀【Android开源控件】Banner广告图片轮播控件", "link": "/Android控件/2.Banner广告图片轮播控件.md" }, { "text": "2.(待完善)ConcatAdapter的使用", "link": "/Android控件/2.(待完善)ConcatAdapter的使用.md" }, { "text": "【Android开源控件】 drawerlayout侧滑菜单(抽屉效果)", "link": "/Android控件/3.drawerlayout侧滑菜单(抽屉效果).md" }, { "text": "3.BRVAH简介", "link": "/Android控件/3.(未发)BRVAH(最好用的数据适配器).md" }, { "text": "前言", "link": "/Android控件/4.(未发)侧滑列表SwipeRecyclerView.md" }, { "text": "1.前言", "link": "/Android控件/4.(未发)自定义view控件画一个五彩斑斓的黑圈圈.md" }, { "text": "『Android基础入门』悬浮按钮", "link": "/Android控件/5.FloatingActionsMenu悬浮按钮.md" }, { "text": "RecyclerView item间距", "link": "/Android控件/6.(未发)常用工具包.md" }, { "text": "(未发)ListView的简介", "link": "/Android控件/7.(未发)ListView的基本使用.md" }, { "text": "Glide图片加载库", "link": "/Android控件/9.Glide图片加载库.md" }, { "text": "🍀【Android开源控件】ImmersionBar沉浸式状态栏(刘海屏)", "link": "/Android控件/10.ImmersionBar沉浸式状态栏(刘海屏).md" }, { "text": "🍀SmartRefreshLayout实现下拉刷新,上划加载", "link": "/Android控件/11.SmartRefreshLayout实现下拉刷新,上划加载.md" }, { "text": "ViewPager实现引导动画的效果", "link": "/Android控件/12.1viewpager实现引导动画的效果.md" }, { "text": "ViewPager与Fragment结合实现多页面滑动", "link": "/Android控件/12.2viewpager实现滑动fragment.md" }, { "text": "ViewPager+Fragment+BottomNavigationView实现底部导航", "link": "/Android控件/12.3viewpager与ButtonnavigationView.md" }, { "text": "Fragment+ViewPager+TabLayout实现主页的顶部页面导航", "link": "/Android控件/12.4viewpager与tablayout.md" }, { "text": "Toolbar+DrawerLayout+NavigationView实现类似QQ侧边栏效果", "link": "/Android控件/13.Toolbar+DrawerLayout+NavigationView实现类似QQ侧边栏效果.md" }, { "text": "悬浮按钮", "link": "/Android控件/14.Snackbar+CoordinatorLayout.md" }, { "text": "1.collapse可折叠标题栏", "link": "/Android控件/15.CollapsingToolbarLayout可折叠标题栏.md" } ] } ], "/Compose/": [ { "text": "Compose", "items": [ { "text": "什么是compose", "link": "/Compose/8.1Compose入门.md" }, { "text": "标准布局", "link": "/Compose/8.2Compose布局.md" }, { "text": "什么是CompositionLocal", "link": "/Compose/8.4Compose的隐式传参.md" }, { "text": "Material Design是什么", "link": "/Compose/8.5Compose的主题(未完).md" } ] } ], "/Flutter/": [ { "text": "Flutter", "items": [ { "text": "AppBar标题栏", "link": "/Flutter/1.Scaffold的实践.md" }, { "text": "Scaffold", "link": "/Flutter/1.控件.md" }, { "text": "成员变", "link": "/Flutter/2.顶部多Tab的实践.md" }, { "text": "线性布局", "link": "/Flutter/3.布局.md" }, { "text": "# onTap点击", "link": "/Flutter/4.手势.md" }, { "text": "5.组件化开发", "link": "/Flutter/5.组件化开发.md" }, { "text": "6.导包", "link": "/Flutter/6.导包.md" }, { "text": "添加依赖", "link": "/Flutter/7.Retrofit.md" }, { "text": "Dio官方地址", "link": "/Flutter/8.dio框架.md" }, { "text": "9.跳转和生命周期", "link": "/Flutter/9.跳转和生命周期.md" }, { "text": "怎么设置按钮适应父控件大小", "link": "/Flutter/10.开发技巧.md" }, { "text": "Widget的概念", "link": "/Flutter/11.Widget.md" }, { "text": "12.1SingleChildScrollView", "link": "/Flutter/12.1SingleChildScrollView.md" }, { "text": "什么是CustomScollView", "link": "/Flutter/12.2CustomScrollView.md" }, { "text": "12.可滚动组件", "link": "/Flutter/12.可滚动组件.md" }, { "text": "添加依赖", "link": "/Flutter/13.sqlLite数据持久化.md" }, { "text": "框架官方", "link": "/Flutter/14.Json数据解析json_serializable.md" }, { "text": "白天主题", "link": "/Flutter/16.主题.md" }, { "text": "项目准备", "link": "/Flutter/17.Flutter脚手架.md" }, { "text": "ViewModel", "link": "/Flutter/18.1provider状态管理.md" }, { "text": "介绍", "link": "/Flutter/18.2flutter_swiper_view轮播图.md" }, { "text": "18.3dio_cookie_manager", "link": "/Flutter/18.3dio_cookie_manager.md" }, { "text": "引入依赖", "link": "/Flutter/18.4flutter_inappwebview网页加载.md" }, { "text": "原生加载", "link": "/Flutter/18.5cached_network_image图片加载.md" }, { "text": "简介", "link": "/Flutter/18.6flutter_screenutil屏幕适配.md" }, { "text": "添加依赖", "link": "/Flutter/18.7path_provider文件读写.md" }, { "text": "接口", "link": "/Flutter/18.B站课程笔记.md" }, { "text": "初始化", "link": "/Flutter/19.1GetX初步使用.md" }, { "text": "Snacker", "link": "/Flutter/19.2GetX之美化组件与实用工具.md" }, { "text": "19.3GetX之网络请求", "link": "/Flutter/19.3GetX之网络请求.md" } ] } ], "/Java/": [ { "text": "Java", "items": [ { "text": "面向对象", "link": "/Java/2.Java特性.md" }, { "text": "[Carson带你学Java:关于数据类型的那些必知必会](https://www.jianshu.com/p/9e31d5214666)", "link": "/Java/3.Java数据类型.md" }, { "text": "什么是序列化", "link": "/Java/5.Java序列化.md" }, { "text": "什么是内部类", "link": "/Java/6.Java内部类(转载).md" }, { "text": "谈谈Java中List、Set以及Map的区别", "link": "/Java/7.1Java集合.md" }, { "text": "Java集合框架", "link": "/Java/7.2Java集合框架.md" }, { "text": "Java集合概述(上)", "link": "/Java/7.3Java集合概述(上).md" }, { "text": "Java常见面试题题总结(下)", "link": "/Java/7.4Java常见面试题题总结(下).md" }, { "text": "Set接口常用方法", "link": "/Java/7.5HashMap的实现原理.md" }, { "text": "讲一下ConcurrentHashMap为什么快", "link": "/Java/7.6ConcurrentHashMap.md" }, { "text": "为什么要有集合", "link": "/Java/7.Java集合体系.md" }, { "text": "异常体系架构", "link": "/Java/8.Java中的异常体系.md" }, { "text": "9.1Java Memory Model", "link": "/Java/9.1Java Memory Model.md" }, { "text": "JDK JRE JVM区别", "link": "/Java/9.2Java虚拟机.md" }, { "text": "Java的内存结构", "link": "/Java/9.3Java虚拟机的内存结构.md" }, { "text": "什么是类的加载", "link": "/Java/9.4Java的类加载机制(转载总结).md" }, { "text": "类加载器是什么", "link": "/Java/9.5Java的类加载器.md" }, { "text": "什么是垃圾回收(GC)", "link": "/Java/10.JavaGC回收机制.md" }, { "text": "为什么需要多线程", "link": "/Java/11.1Java多线程理论基础.md" }, { "text": "线程的状态", "link": "/Java/11.2Java多线程基础知识.md" }, { "text": "synchronized的作用对象", "link": "/Java/11.3Java多线程之详解synchronized关键字.md" }, { "text": "什么是CAS", "link": "/Java/11.4Java多线程之详解CAS.md" }, { "text": "什么是线程死锁", "link": "/Java/11.5Java多线程死锁与死锁的避免.md" }, { "text": "volatile", "link": "/Java/11.Java多线程.md" }, { "text": "12.Java的强软弱虚", "link": "/Java/12.Java的强软弱虚.md" }, { "text": "Java中的注解", "link": "/Java/13.Java注解.md" }, { "text": "抽象类", "link": "/Java/Java的抽象类和接口.md" } ] } ], "/Kotlin/": [ { "text": "Kotlin", "items": [ { "text": "什么是协程", "link": "/Kotlin/协程.md" }, { "text": "泛型", "link": "/Kotlin/泛型.md" } ] } ], "/dart/": [ { "text": "dart", "items": [ { "text": "官方的描述", "link": "/dart/Dart中的factory关键字.md" }, { "text": "变量", "link": "/dart/Dart基础.md" }, { "text": "资源网站", "link": "/dart/Dart环境安装.md" }, { "text": "泛型", "link": "/dart/Dart语言进阶.md" }, { "text": "mac下flutter环境配置", "link": "/dart/mac下flutter环境配置.md" }, { "text": "回调地狱", "link": "/dart/异步支持.md" } ] } ], "/学习路线/": [ { "text": "学习路线", "items": [ { "text": "[https://gitee.com/starry_lixu/jia-ju-android](https://gitee.com/starry_lixu/jia-ju-android)", "link": "/学习路线/Android学习资料.md" }, { "text": "学长推荐学习路线", "link": "/学习路线/学长推荐学习路线.md" } ] } ], "/开发工具/": [ { "text": "开发工具", "items": [ { "text": "git修改用户名和邮箱", "link": "/开发工具/Git使用指南.md" } ] } ], "/开源框架/": [ { "text": "开源框架", "items": [ { "text": "简介", "link": "/开源框架/MPAndroidChart图表库之折线图.md" }, { "text": "基本用法", "link": "/Android/开源框架/EventBus源码分析.md" }, { "text": "With()源码", "link": "/Android/开源框架/Glide图片加载框架.md" }, { "text": "网络开源框架", "link": "/Android/开源框架/网络开源框架.md" }, { "text": "RxJava", "items": [ { "text": "学习大纲", "link": "/开源框架/RxJava/1.RxJava2简介与使用.md" }, { "text": "观察者模式", "link": "/开源框架/RxJava/2.RxJava2核心实现-操作符.md" }, { "text": "参考资料", "link": "/开源框架/RxJava/3.RxJava2核心实现-线程调度.md" }, { "text": "课程需要的依赖库", "link": "/开源框架/RxJava/4.RxJava2框架设计.md" }, { "text": "内存泄漏的情况", "link": "/开源框架/RxJava/5.RxJava2内存泄漏.md" }, { "text": "Subject", "link": "/开源框架/RxJava/6.RxJava2手写RxBus.md" }, { "text": "RxPermissions", "link": "/开源框架/RxJava/7.RxJava2之衍生框架.md" } ] }, { "text": "网络请求", "items": [ { "text": "网络请求权限", "link": "/开源框架/网络请求/网络请求与JSON解析.md" }, { "text": "上期回顾", "link": "/开源框架/网络请求/网络请求之okhttp框架.md" }, { "text": "HttpURLConnection", "link": "/开源框架/网络请求/网络请求的历史渊源.md" } ] } ] } ] }, "socialLinks": [ { "icon": "github", "link": "https://github.com/starrylixu" }, { "icon": { "svg": "<?xml version=\"1.0\" standalone=\"no\"?><!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"><svg t=\"1724673088386\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"4297\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"32\" height=\"32\"><path d=\"M512 1024C229.2224 1024 0 794.7776 0 512 0 229.2224 229.2224 0 512 0c282.7776 0 512 229.2224 512 512 0 282.7776-229.2224 512-512 512z m17.066667-413.525333c34.850133 4.352 68.778667 5.12 102.741333 2.0992 23.04-2.048 44.817067-8.362667 64.170667-21.9136 38.212267-26.794667 49.783467-85.1968 24.251733-123.050667-14.626133-21.7088-36.8128-30.344533-60.757333-35.498667-35.054933-7.543467-70.4512-5.751467-105.847467-3.413333-5.666133 0.3584-6.7584 3.072-7.236267 8.209067-3.072 32.682667-6.536533 65.314133-9.813333 97.962666-2.5088 24.814933-4.932267 49.629867-7.509333 75.605334z m53.4016-33.928534c1.962667-20.906667 3.6352-39.338667 5.4272-57.770666 1.553067-15.906133 3.413333-31.778133 4.727466-47.701334 0.3584-4.283733 1.553067-6.656 5.956267-6.382933 15.616 1.041067 31.709867 0.034133 46.728533 3.652267 36.488533 8.823467 48.725333 54.306133 23.3472 83.029333-15.8208 17.902933-36.7616 23.586133-59.255466 25.088-8.465067 0.546133-17.015467 0.085333-26.9312 0.085333zM512 434.295467c-2.184533-0.648533-3.5328-1.1776-4.932267-1.4336-37.717333-6.877867-75.690667-8.328533-113.646933-2.816-20.974933 3.037867-41.0112 9.489067-57.480533 23.330133-22.9888 19.319467-21.640533 46.848 4.4032 62.0032 13.056 7.594667 28.023467 12.509867 42.5984 17.288533 14.08 4.608 28.996267 6.826667 43.144533 11.264 12.5952 3.925333 14.011733 14.318933 3.584 22.306134-3.345067 2.56-7.441067 5.085867-11.537067 5.751466-11.195733 1.826133-22.698667 4.386133-33.826133 3.566934-24.098133-1.774933-48.042667-5.461333-72.5504-8.430934-1.365333 10.615467-2.935467 23.0912-4.5568 35.9424 4.181333 1.365333 7.68 2.730667 11.264 3.618134 33.9456 8.4992 68.386133 9.608533 102.912 5.12 20.087467-2.6112 39.4752-7.901867 56.695467-19.029334 28.603733-18.4832 36.693333-57.1904-4.676267-75.383466-14.506667-6.382933-30.190933-10.410667-45.482667-15.086934-11.4176-3.4816-23.313067-5.614933-34.525866-9.5232-9.7792-3.413333-11.144533-12.202667-3.037867-18.397866 4.6592-3.549867 10.717867-6.997333 16.384-7.3728a480.853333 480.853333 0 0 1 53.384533-0.853334c15.377067 0.699733 30.651733 3.549867 46.4896 5.5296L512 434.295467z m257.143467 2.048L750.933333 614.2976h54.152534c4.778667-45.636267 9.710933-90.7264 14.062933-135.8848 0.6144-6.365867 2.3552-8.840533 8.686933-9.0112 11.434667-0.273067 22.8864-1.979733 34.286934-1.570133 23.722667 0.853333 42.3936 9.728 38.4 43.264-2.901333 24.2688-5.597867 48.571733-8.2432 72.874666-1.092267 10.069333-1.826133 20.189867-2.730667 30.4128h55.330133c3.584-35.259733 7.9872-70.058667 10.496-104.994133 3.413333-47.4624-17.7664-73.3184-64.682666-80.213333-40.96-6.007467-81.339733-0.341333-121.5488 7.133866z m-483.498667 134.6048c-8.738133 1.297067-16.384 2.798933-24.098133 3.4816-25.6512 2.235733-51.319467 3.9424-76.305067-4.266667-13.909333-4.590933-24.6784-12.578133-29.7984-25.9584-7.901867-20.701867 0.887467-47.104 19.831467-60.3136 17.373867-12.117333 37.717333-15.9232 58.453333-15.9232 22.545067-0.017067 45.090133 2.423467 68.232533 3.84L307.2 432.298667c-15.069867-1.723733-29.4912-3.925333-43.997867-4.9152-41.0112-2.798933-80.64 2.6112-117.469866 20.462933-30.020267 14.557867-52.053333 36.010667-58.6752 68.130133-7.850667 38.144 11.537067 69.495467 51.7632 85.845334 19.1488 7.765333 39.287467 12.509867 60.0064 12.5952 24.746667 0.1024 49.493333-1.570133 74.205866-2.952534 3.106133-0.170667 8.311467-2.901333 8.669867-5.034666 1.979733-11.554133 2.730667-23.278933 3.9424-35.464534z\" fill=\"#DD1700\" p-id=\"4298\"></path></svg>" }, "link": "https://ahoy-starry.blog.csdn.net" }, { "icon": { "svg": "<svg id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" width=\"96px\" height=\"96px\" viewBox=\"0 0 96 96\" enable-background=\"new 0 0 96 96\" xml:space=\"preserve\"> <image id=\"image0\" width=\"96\" height=\"96\" x=\"0\" y=\"0\"\n href=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAMAAADVRocKAAAABGdBTUEAALGPC/xhBQAAACBjSFJN\nAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAA+VBMVEVMaXEpyHMox3Iox3Io\nx3Iox3Iox3Iox3Iox3Iox3IoyHIoyHIoyHIoyHMoyHIoyHIpyHMsy3gsynIpyHRN1nUoyHMoyHJp\n6YG8/8gsy3UoyHMqyXQpyXRm21he2mMoyHJs4WB45WOF7WRp3Flp3Ftr3Fxr3F1r3F9r3mFq3WBr\n3VuJ6GJE0GmS512Q5lyT51yU6F+U51yT5lyT5lyV512W6V+T512T51yT5lyU51yT5l2U5l2U51yT\n5lyT5lyT5lwox3I7zWxW1mFg2Vxj2lhh2ldf2Vc3zG0tyXBN02RE0Gdb115131l74FqB4lqF41uK\n5FuT5lz///+r7OK9AAAAQHRSTlMAXubt8/j+3dXOwrinmod7RBZROgxlcQYBH54yKP1ckUUsE/jw\n2sGlhGPqJ+to/rFAhO/nTh2h18V7kZ6W0rvcWkLQpwAAAAFiS0dEUg1gLZAAAAAHdElNRQfnAgoL\nDAEFD6LlAAADEUlEQVRo3u2Z6ULaUBCFWRKBhF0gqFgptmhrWSJQtChGSFLp3vd/mbJIheZmltzQ\nX5wH+A53Zs6dJEQie+31/xWNxRX1YCFViccSyZSmpzPZXDRfCMuhqFpiJTKH4Tjk/RzmHrlSGA5l\ny1+xYhgOGcDB0kM4RCEOOaRCaHcFMrAS8g6GAjpoVWmHNGhg5aQNorCBeiRrcAQbWMfSTUAM1HK0\nmD+pFYKPrEWRmqnt6gRL6RLjWiPwczLDWiTwJfDIbbRURopvxDB+TO7Kq6AHKEvxCwrGV+QOcIwe\nQC7Jhwe7rVApic+o1PpP43zrRIJfJvBlDGoqxSAamF9IUPjBp8jQSPzAOahSGixTo6xlPU6mtuM6\ntj2dfAYMUoH45aeJ7W7Inj35OuQD8IuzLfxCzsTPQAvAP3UFsr+EFYVXtiuWzyHOmPy6H9/PIcZb\nya9PXX/N5GvUgPiuIxzYCoNvnLugpiKDNMPgjYtIdARG1t5ifPerwEAl85so37VFNaJeeBc4X1wj\n4kvCpUMxEE0qbU7f2RS+MGykzV+n8YVdppwADPCmREkgvH00zol84QnwKcICDPcgjvKr78l80RTh\nKwcP8IsEayeL8ZsMvitYznmETwrwWo6gBQbMvyQGYCXBlCIrkxhgoMdwzOrUgD1XyNsCHeSTA+xf\nIfAiogf4WY8ePrgvGQH2O4AC7QJOgFfybhvw4ZoT4KW8Fx0Y4iaXb3tGSIce6i5IG3JTnmsoCd3T\nvAAv5Lmok1CDmQF2BQ8s4KdlZoBFDTiD6n/F5jv/REwF55MdYE+DdXDPG+gjrkfbl2gS/u+AH+At\n/oFWRF5p2AF2Xuqjajn0QbTJ5n9IzJXU9EwlT3iObn1b6/tf/Vjq50q/1mqv1Gng0A112795Mpnv\nkNc8fK/PwkcGPR7/I688kcZwpz8/Urrh4K9vud+ajA4D3/7ErM5cI8avvxuw8RGTjB+2gnyIa1E7\nO+oGoM/Vve3gM3pvdqX+2xv0zbFf0npjsx+g8AKVrrotczS+Hz489OYa3nTuzFZI7L32ktIfTxcr\nDiV1H4cAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjMtMDItMTBUMTE6MTI6MDErMDA6MDDlYzq6AAAA\nJXRFWHRkYXRlOm1vZGlmeQAyMDIzLTAyLTEwVDExOjEyOjAxKzAwOjAwlD6CBgAAACh0RVh0ZGF0\nZTp0aW1lc3RhbXAAMjAyMy0wMi0xMFQxMToxMjowMSswMDowMMMro9kAAAAASUVORK5CYII=\" />\n</svg>" }, "link": "https://www.yuque.com/starryluli" } ], "footer": { "message": "Powered by <a href=\"https://www.yuque.com/starryluli\" target=\"_blank\">语雀</a> & <a href=\"https://vitepress.dev\" target=\"_blank\">VitePress</a> with <a href=\"https://github.com/LetTTGACO/elog\" target=\"_blank\">Elog</a>", "copyright": "Copyright © 2024-present" } }
Page Data
{ "title": "Runtime API Examples", "description": "", "frontmatter": { "outline": "deep" }, "headers": [], "relativePath": "api-examples.md", "filePath": "api-examples.md", "lastUpdated": 1724598105000 }
Page Frontmatter
{ "outline": "deep" }
More
Check out the documentation for the full list of runtime APIs.