1/* 2 * Copyright (c) 2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16const __MovingPhotoView__ = requireInternal("multimedia.movingphotoview"); 17 18class MovingPhotoView extends JSViewAbstract { 19 static create(value) { 20 __MovingPhotoView__.create(value); 21 } 22 23 static muted(value) { 24 __MovingPhotoView__.muted(value); 25 } 26 27 static objectFit(value) { 28 __MovingPhotoView__.objectFit(value); 29 } 30 31 static onComplete(value) { 32 __MovingPhotoView__.onComplete(value); 33 } 34 35 static onStart(value) { 36 __MovingPhotoView__.onStart(value); 37 } 38 39 static onStop(value) { 40 __MovingPhotoView__.onStop(value); 41 } 42 43 static onPause(value) { 44 __MovingPhotoView__.onPause(value); 45 } 46 47 static onFinish(value) { 48 __MovingPhotoView__.onFinish(value); 49 } 50 51 static onError(value) { 52 __MovingPhotoView__.onError(value); 53 } 54 55 static onClick(value) { 56 __Common__.onClick(value); 57 } 58 59 static onAppear(value) { 60 __Common__.onAppear(value); 61 } 62 63 static onDisAppear(value) { 64 __Common__.onDisAppear(value); 65 } 66 67 static onTouch(value) { 68 __Common__.onTouch(value); 69 } 70 71 static onHover(value) { 72 __Common__.onHover(value); 73 } 74 75 static onKeyEvent(value) { 76 __Common__.onKeyEvent(value); 77 } 78 79 static onDeleteEvent(value) { 80 __Common__.onDeleteEvent(value); 81 } 82 83 static remoteMessage(value) { 84 __Common__.remoteMessage(value); 85 } 86 87 static autoPlayPeriod(startTime, endTime) { 88 __MovingPhotoView__.autoPlayPeriod(startTime, endTime); 89 } 90 91 static autoPlay(value) { 92 __MovingPhotoView__.autoPlay(value); 93 } 94 95 static repeatPlay(value) { 96 __MovingPhotoView__.repeatPlay(value); 97 } 98 99 static enableAnalyzer(value) { 100 __MovingPhotoView__.enableAnalyzer(value); 101 } 102} 103 104export default { 105 MovingPhotoView, 106 MovingPhotoViewController: __MovingPhotoView__.MovingPhotoViewController, 107}; 108