123b3eb3cSopenharmony_ci/* 223b3eb3cSopenharmony_ci * Copyright (c) 2024 Huawei Device Co., Ltd. 323b3eb3cSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 423b3eb3cSopenharmony_ci * you may not use this file except in compliance with the License. 523b3eb3cSopenharmony_ci * You may obtain a copy of the License at 623b3eb3cSopenharmony_ci * 723b3eb3cSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 823b3eb3cSopenharmony_ci * 923b3eb3cSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 1023b3eb3cSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 1123b3eb3cSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1223b3eb3cSopenharmony_ci * See the License for the specific language governing permissions and 1323b3eb3cSopenharmony_ci * limitations under the License. 1423b3eb3cSopenharmony_ci */ 1523b3eb3cSopenharmony_ci 1623b3eb3cSopenharmony_ciconst __MovingPhotoView__ = requireInternal("multimedia.movingphotoview"); 1723b3eb3cSopenharmony_ci 1823b3eb3cSopenharmony_ciclass MovingPhotoView extends JSViewAbstract { 1923b3eb3cSopenharmony_ci static create(value) { 2023b3eb3cSopenharmony_ci __MovingPhotoView__.create(value); 2123b3eb3cSopenharmony_ci } 2223b3eb3cSopenharmony_ci 2323b3eb3cSopenharmony_ci static muted(value) { 2423b3eb3cSopenharmony_ci __MovingPhotoView__.muted(value); 2523b3eb3cSopenharmony_ci } 2623b3eb3cSopenharmony_ci 2723b3eb3cSopenharmony_ci static objectFit(value) { 2823b3eb3cSopenharmony_ci __MovingPhotoView__.objectFit(value); 2923b3eb3cSopenharmony_ci } 3023b3eb3cSopenharmony_ci 3123b3eb3cSopenharmony_ci static onComplete(value) { 3223b3eb3cSopenharmony_ci __MovingPhotoView__.onComplete(value); 3323b3eb3cSopenharmony_ci } 3423b3eb3cSopenharmony_ci 3523b3eb3cSopenharmony_ci static onStart(value) { 3623b3eb3cSopenharmony_ci __MovingPhotoView__.onStart(value); 3723b3eb3cSopenharmony_ci } 3823b3eb3cSopenharmony_ci 3923b3eb3cSopenharmony_ci static onStop(value) { 4023b3eb3cSopenharmony_ci __MovingPhotoView__.onStop(value); 4123b3eb3cSopenharmony_ci } 4223b3eb3cSopenharmony_ci 4323b3eb3cSopenharmony_ci static onPause(value) { 4423b3eb3cSopenharmony_ci __MovingPhotoView__.onPause(value); 4523b3eb3cSopenharmony_ci } 4623b3eb3cSopenharmony_ci 4723b3eb3cSopenharmony_ci static onFinish(value) { 4823b3eb3cSopenharmony_ci __MovingPhotoView__.onFinish(value); 4923b3eb3cSopenharmony_ci } 5023b3eb3cSopenharmony_ci 5123b3eb3cSopenharmony_ci static onError(value) { 5223b3eb3cSopenharmony_ci __MovingPhotoView__.onError(value); 5323b3eb3cSopenharmony_ci } 5423b3eb3cSopenharmony_ci 5523b3eb3cSopenharmony_ci static onClick(value) { 5623b3eb3cSopenharmony_ci __Common__.onClick(value); 5723b3eb3cSopenharmony_ci } 5823b3eb3cSopenharmony_ci 5923b3eb3cSopenharmony_ci static onAppear(value) { 6023b3eb3cSopenharmony_ci __Common__.onAppear(value); 6123b3eb3cSopenharmony_ci } 6223b3eb3cSopenharmony_ci 6323b3eb3cSopenharmony_ci static onDisAppear(value) { 6423b3eb3cSopenharmony_ci __Common__.onDisAppear(value); 6523b3eb3cSopenharmony_ci } 6623b3eb3cSopenharmony_ci 6723b3eb3cSopenharmony_ci static onTouch(value) { 6823b3eb3cSopenharmony_ci __Common__.onTouch(value); 6923b3eb3cSopenharmony_ci } 7023b3eb3cSopenharmony_ci 7123b3eb3cSopenharmony_ci static onHover(value) { 7223b3eb3cSopenharmony_ci __Common__.onHover(value); 7323b3eb3cSopenharmony_ci } 7423b3eb3cSopenharmony_ci 7523b3eb3cSopenharmony_ci static onKeyEvent(value) { 7623b3eb3cSopenharmony_ci __Common__.onKeyEvent(value); 7723b3eb3cSopenharmony_ci } 7823b3eb3cSopenharmony_ci 7923b3eb3cSopenharmony_ci static onDeleteEvent(value) { 8023b3eb3cSopenharmony_ci __Common__.onDeleteEvent(value); 8123b3eb3cSopenharmony_ci } 8223b3eb3cSopenharmony_ci 8323b3eb3cSopenharmony_ci static remoteMessage(value) { 8423b3eb3cSopenharmony_ci __Common__.remoteMessage(value); 8523b3eb3cSopenharmony_ci } 8623b3eb3cSopenharmony_ci 8723b3eb3cSopenharmony_ci static autoPlayPeriod(startTime, endTime) { 8823b3eb3cSopenharmony_ci __MovingPhotoView__.autoPlayPeriod(startTime, endTime); 8923b3eb3cSopenharmony_ci } 9023b3eb3cSopenharmony_ci 9123b3eb3cSopenharmony_ci static autoPlay(value) { 9223b3eb3cSopenharmony_ci __MovingPhotoView__.autoPlay(value); 9323b3eb3cSopenharmony_ci } 9423b3eb3cSopenharmony_ci 9523b3eb3cSopenharmony_ci static repeatPlay(value) { 9623b3eb3cSopenharmony_ci __MovingPhotoView__.repeatPlay(value); 9723b3eb3cSopenharmony_ci } 9823b3eb3cSopenharmony_ci 9923b3eb3cSopenharmony_ci static enableAnalyzer(value) { 10023b3eb3cSopenharmony_ci __MovingPhotoView__.enableAnalyzer(value); 10123b3eb3cSopenharmony_ci } 10223b3eb3cSopenharmony_ci} 10323b3eb3cSopenharmony_ci 10423b3eb3cSopenharmony_ciexport default { 10523b3eb3cSopenharmony_ci MovingPhotoView, 10623b3eb3cSopenharmony_ci MovingPhotoViewController: __MovingPhotoView__.MovingPhotoViewController, 10723b3eb3cSopenharmony_ci}; 108