PageSourceSearch

https://flutterads.top/static/js/async/1986.b8504671.js

js flutterads.top collected 2026-10-05 06:58:40 UTC 4,546 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkrspress_doc_template=self.webpackChunkrspress_doc_template||[]).push([["1986"],{8156:function(e,s,r){r.r(s),r.d(s,{default:()=>o});var n=r(8663),a=r(3664),i=r(6305);function l(e){let s={a:"a",code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",span:"span",...(0,a.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.h1,{id:"-历史纪录",children:[(0,n.jsx)(s.a,{className:"header-anchor","aria-hidden":"true",href:"#-历史纪录",children:"#"}),"\uD83D\uDCFD 历史纪录"]}),"\n",(0,n.jsxs)(s.h2,{id:"介绍",children:[(0,n.jsx)(s.a,{className:"header-anchor","aria-hidden":"true",href:"#介绍",children:"#"}),"介绍"]}),"\n",(0,n.jsx)(s.p,{children:"获取到历史纪录是数据列表形式,可自定义页面布局(如:在个人中心直接展示观看历史纪录),Flutter 层业务逻辑相同仅需一套代码实现高度自定义。"}),"\n",(0,n.jsxs)(s.h2,{id:"示例",children:[(0,n.jsx)(s.a,{className:"header-anchor","aria-hidden":"true",href:"#示例",children:"#"}),"示例"]}),"\n",(0,n.jsx)("img",{src:(0,i.i6)("/imgs/adcontent/img_theater_14.webp"),width:"240"}),"\n",(0,n.jsxs)(s.h2,{id:"获取观看历史记录",children:[(0,n.jsx)(s.a,{className:"header-anchor","aria-hidden":"true",href:"#获取观看历史记录",children:"#"}),"获取观看历史记录"]}),"\n",(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(s.pre,{className:"shiki css-variables",style:{backgroundColor:"var(--shiki-background)",color:"var(--shiki-foreground)"},tabIndex:"0",children:(0,n.jsxs)(s.code,{className:"language-dart",children:[(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"/// [page] 页数,从1开始,小于1时全量获取"})}),"\n",(0,n.jsx)(s.span,{className:"line",children:(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"/// [count] 每页个数,小于1时全量获取"})}),"\n",(0,n.jsxs)(s.span,{className:"line",children:[(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"List"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-foreground)"},children:"<"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"Drama"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-foreground)"},children:"> list "}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:" await"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:" FlutterAdcontent"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-foreground)"},children:"."}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getDramaHistory"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-foreground)"},children:"();"})]})]})})}),"\n",(0,n.jsxs)(s.h2,{id:"清除观看历史纪录",children:[(0,n.jsx)(s.a,{className:"header-anchor","aria-hidden":"true",href:"#清除观看历史纪录",children:"#"}),"清除观看历史纪录"]}),"\n",(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(s.pre,{className:"shiki css-variables",style:{backgroundColor:"var(--shiki-background)",color:"var(--shiki-foreground)"},tabIndex:"0",children:(0,n.jsx)(s.code,{className:"language-dart",children:(0,n.jsxs)(s.span,{className:"line",children:[(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bool"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-foreground)"},children:" result "}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:" await"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:" FlutterAdcontent"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-foreground)"},children:"."}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"clearDramaHistory"}),(0,n.jsx)(s.span,{style:{color:"var(--shiki-foreground)"},children:"();"})]})})})})]})}function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}={...(0,a.a)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}o.__RSPRESS_PAGE_META={},o.__RSPRESS_PAGE_META["start%2Fguide%2Fadcontent%2Fhistory.mdx"]={toc:[{id:"介绍",text:"介绍",depth:2},{id:"示例",text:"示例",depth:2},{id:"获取观看历史记录",text:"获取观看历史记录",depth:2},{id:"清除观看历史纪录",text:"清除观看历史纪录",depth:2}],title:"\uD83D\uDCFD 历史纪录",headingTitle:"\uD83D\uDCFD 历史纪录",frontmatter:{}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.