Home
last modified time | relevance | path

Searched refs:Track (Results 1 – 25 of 45) sorted by relevance

12

/ohos5.0/docs/zh-cn/application-dev/quick-start/
H A Darkts-track.md1 # \@Track装饰器:class对象属性级更新
4 \@Track应用于class对象的属性级更新。\@Track装饰的属性变化时,只会触发该属性关联的UI更新。
16 \@Track是class对象的属性装饰器。当一个class对象是状态变量时,\@Track装饰的属性发生变化,只会触发该属性关联的UI更新;如果class类中使用了\@Track装饰器,则未被\@
34 > 当class对象中没有一个属性被标记\@Track,行为与原先保持不变。\@Track没有深度观测的功能。
36 使用\@Track装饰器可以避免冗余刷新。
40 @Track str1: string;
41 @Track str2: string;
118 - 建议开发者不要混用包含\@Track的class对象和不包含\@Track的class对象,如联合类型中、类继承中等。
125 以下示例展示组件更新和\@Track的处理步骤。对象log是\@State装饰的状态变量,logInfo是\@Track的成员属性,其余成员属性都是非\@Track装饰的,而且也不准备在UI中更新它…
192 // id被@Track装饰
[all …]
H A Darkts-other-state-mgmt-functions-overview.md4 除了前面章节提到的组件状态管理和应用状态管理,ArkTS还提供了\@Watch、$$运算符和\@Track来为开发者提供更多功能:
11 - [\@Track](arkts-track.md):应用于class对象的属性级更新。\@Track装饰的属性变化时,只会触发该属性关联的UI更新。
H A Dproperly-use-state-management-to-develope.md608 @Track translateX: number = 0;
610 @Track scaleX: number = 0.3;
611 @Track scaleY: number = 0.3;
612 @Track width: number = 336;
613 @Track height: number = 178;
614 @Track posX: number = 10;
615 @Track posY: number = 50;
616 @Track alpha: number = 0.5;
622 @Track fontSize: number = 20;
1310 @Track message: string;
[all …]
H A Darkts-custom-component-mixed-scenarios.md40 | 类相关装饰器 | \@Observed、\@Track |
234 @Track trackId: number = 1; // @Track作为V1的装饰器,不能在@ObservedV2中使用,编译时报错;消除编译错误请去掉@Track
297 * \@Track不可以在\@ObservedV2中使用。
306 @Track myId: number; // 无观测能力,只能防止因其他属性改变而导致的连带刷新
367 不建议开发者在V2中使用\@Observed装饰的Class,因为\@Observed和\@Track仅能对类属性做区分,无观测能力,使用\@Observed和\@ObjectLink拆分嵌套数据才…
372 * \@Observed和\@Track无任何观测能力,只能用于防止Class中一个类属性改变而导致整个Class的刷新。
864 @Track info: Info; // 防止messageId改变导致info的连带刷新
865 @Track messageId: number; // 防止messageId改变导致info的连带刷新
952 * \@Track是用来防止MessageInfo类中的info被messageId改变而连带刷新,开发者去掉\@Track可观测到,当messageId改变时,info的连带改变,但是这并不是\@…
970 @Track info: Info; // 防止messageId改变导致info的连带刷新
[all …]
H A Darkts-new-observedV2-and-trace.md290 - \@ObservedV2、\@Trace不能与[\@Observed](arkts-observed-and-objectlink.md)、[\@Track](arkts-track.md)混合…
300 @Track name: string = "Jack"; // 错误用法,编译时报错
391 \@Trace装饰器与现有状态管理框架的[\@Track](arkts-track.md)与[\@State](arkts-state.md)装饰器的能力不同,@Track使class具有属性级更新…
/ohos5.0/docs/en/application-dev/quick-start/
H A Darkts-track.md1 # \@Track Decorator: Class Object Property-level Update
21 | \@Track Decorator | Description |
32 … no property in the class object is decorated with \@Track, the behavior remains unchanged. \@Trac…
34 Using the @Track decorator can avoid redundant updates.
38 @Track str1: string;
39 @Track str2: string;
121 ### \@Track and Custom Component Updates
128 @Track logInfo: string;
190 // id is decorated by @Track.
191 @Track id: number;
[all …]
H A Darkts-other-state-mgmt-functions-overview.md4 …ement mentioned in previous topics, ArkTS also provides \@Watch, $$ and \@Track for state manageme…
11 - [\@Track](arkts-track.md) applies to attribute-level updates of class objects. When a property de…
H A Dproperly-use-state-management-to-develope.md608 @Track translateX: number = 0;
610 @Track scaleX: number = 0.3;
611 @Track scaleY: number = 0.3;
612 @Track width: number = 336;
613 @Track height: number = 178;
614 @Track posX: number = 10;
615 @Track posY: number = 50;
616 @Track alpha: number = 0.5;
622 @Track fontSize: number = 20;
1310 @Track message: string;
[all …]
H A Darkts-custom-component-mixed-scenarios.md40 | Class-related decorator| \@Observed, \@Track |
234Track trackId: number = 1; // As a decorator of V1, @Track cannot be used in @ObservedV2. Otherwi…
297 * \@Track cannot be used in \@ObservedV2.
306 …@Track myId: number; // Not observable. Only associated update caused by other property chan…
367 You are not advised to use \@Observed decorated classes in V2 because \@Observed and \@Track decora…
372 * \@Observed and \@Track decorated classes are not observable and you can use the decorators only t…
864 @Track info: Info; // Prevent the info from being updated when the messageId is changed.
865 @Track messageId: number; // Prevent the info from being updated when the messageId is changed.
952 * \@Track is used to prevent the **info** in the **MessageInfo** class from being updated when the …
970 @Track info: Info; // Prevent the info from being updated when the messageId is changed.
[all …]
/ohos5.0/foundation/multimedia/camera_framework/services/deferred_processing_service/src/media_manager/
H A Dtrack.cpp21 void Track::SetFormat(const TrackFormat &format, TrackType type) in SetFormat()
27 const TrackFormat& Track::GetFormat() in GetFormat()
32 Track::~Track() in ~Track()
H A Dtrack_factory.cpp35 std::shared_ptr<Track> TrackFactory::CreateTrack(const std::shared_ptr<AVSource>& source, int track… in CreateTrack()
47 auto track = std::make_shared<Track>(); in CreateTrack()
H A Ddemuxer.cpp34 const std::map<TrackType, const std::shared_ptr<Track>>& tracks) in Create()
H A Dwriter.cpp28 …Writer::Create(int32_t outputFd, const std::map<TrackType, const std::shared_ptr<Track>>& trackMap) in Create()
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.23/
H A Dchangelogs-arkui.md152 ## cl.arkui.5 @Observed/@Track/@ObservedV2新增校验变更
168 - 在@ObservedV2修饰的class内使用@Track
172 > 因为新的@ObservedV2采用了和@Observed不同的实现逻辑,因此不能在@ObservedV2修饰的class内使用@Track。@Track可以和@Observed一起使用,@Tra…
185 // @Track不能使用在@ObservedV2修饰的class内
188 @Track value: string = "hello"
199 @Track value: string = "hello"
212 @Track value: string = "hello"
/ohos5.0/foundation/multimedia/camera_framework/services/deferred_processing_service/include/media_manager/
H A Dtrack.h37 class Track {
39 Track() = default;
40 virtual ~Track();
H A Dreader.h37 inline const std::map<TrackType, const std::shared_ptr<Track>>& GetTracks() const in GetTracks()
55 std::map<TrackType, const std::shared_ptr<Track>> tracks_ {};
H A Dtrack_factory.h29 std::shared_ptr<Track> CreateTrack(const std::shared_ptr<AVSource>& source, int trackIndex);
H A Ddemuxer.h33 const std::map<TrackType, const std::shared_ptr<Track>>& tracks);
H A Dmuxer.h34 MediaManagerError AddTracks(const std::map<TrackType, const std::shared_ptr<Track>>& trackMap);
H A Dwriter.h30 …rError Create(int32_t outputFd, const std::map<TrackType, const std::shared_ptr<Track>>& trackMap);
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/modules/muxer/
H A Dmedia_muxer.h64 class Track : public IConsumerListener {
66 Track() {}; in Track() function
67 virtual ~Track() {}; in ~Track()
92 std::vector<sptr<Track>> tracks_;
H A Dmedia_muxer.cpp196 sptr<Track> track = new Track(); in AddTrack()
390 std::shared_ptr<AVBuffer> MediaMuxer::Track::GetBuffer() in GetBuffer()
404 void MediaMuxer::Track::ReleaseBuffer() in ReleaseBuffer()
414 void MediaMuxer::Track::SetBufferAvailableListener(MediaMuxer *listener) in SetBufferAvailableListener()
419 void MediaMuxer::Track::OnBufferAvailable() in OnBufferAvailable()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_profiler/
H A Drs_profiler_file.h124 template<typename Track>
125 void LayerWriteHeaderOfTrack(const Track& track) in LayerWriteHeaderOfTrack()
139 template<typename Track>
140 void LayerReadHeaderOfTrack(Track& track) in LayerReadHeaderOfTrack()
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_5.0.0.23/
H A Dchangelogs-arkui.md152 ## cl.arkui.5 @Observed/@Track/@ObservedV2 Validation Change
168 - Using @Track within a class decorated by @ObservedV2
172 …ent implementation logic from @Observed, @Track cannot be used within a class decorated by @Observ…
185 // @Track cannot be used within a class decorated by @ObservedV2.
188 @Track value: string = "hello"
199 @Track value: string = "hello"
212 @Track value: string = "hello"
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/src/lib/partial_update/
H A Dpu_tracked_object.ts18 function Track(target: Object, property: string) {

12