From b1e88135350e5f595bad974fc9ee7d0665ab4c38 Mon Sep 17 00:00:00 2001 From: dongsug-song <35130733+dongsug-song@users.noreply.github.com> Date: Mon, 9 Sep 2019 14:03:49 +0900 Subject: [PATCH] [NUI] Open VectorAnimationView API (#1003) --- .../public/BaseComponents/VectorAnimationView.cs | 96 +++++++++++----------- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/src/Tizen.NUI/src/public/BaseComponents/VectorAnimationView.cs b/src/Tizen.NUI/src/public/BaseComponents/VectorAnimationView.cs index c6e189c..75f1b1c 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/VectorAnimationView.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/VectorAnimationView.cs @@ -26,37 +26,37 @@ namespace Tizen.NUI.BaseComponents /// /// VectorAnimationView is a class for displaying a vector resource. /// - // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API) + // InhouseAPI (HiddenAPI) [EditorBrowsable(EditorBrowsableState.Never)] - public class VectorAnimationViewTBD : AnimatedVectorImageView + public class VectorAnimationView : AnimatedVectorImageView { #region Constructor, Distructor, Dispose /// /// Construct VectorAnimationView. /// - // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API) + // InhouseAPI (HiddenAPI) [EditorBrowsable(EditorBrowsableState.Never)] - public VectorAnimationViewTBD() : base() + public VectorAnimationView() : base() { - tlog.Fatal(tag, $"<<< VectorAnimationView() constuctor objId={GetId()} >>>"); + tlog.Fatal(tag, $"VectorAnimationView() constuctor objId={GetId()} "); } /// /// Construct VectorAnimationView. /// /// Set scaling factor for Vector Animation, while creating. - // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API) + // InhouseAPI (HiddenAPI) [EditorBrowsable(EditorBrowsableState.Never)] - public VectorAnimationViewTBD(float scale) : base(scale) + public VectorAnimationView(float scale) : base(scale) { - tlog.Fatal(tag, $"<<< VectorAnimationView(scale={scale}) constuctor objId={GetId()}>>>"); + tlog.Fatal(tag, $"VectorAnimationView(scale={scale}) constuctor objId={GetId()}"); } /// /// You can override it to clean-up your own resources /// /// DisposeTypes - // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API) + // InhouseAPI (HiddenAPI) [EditorBrowsable(EditorBrowsableState.Never)] protected override void Dispose(DisposeTypes type) { @@ -64,7 +64,7 @@ namespace Tizen.NUI.BaseComponents { return; } - tlog.Fatal(tag, $"<<< [{GetId()}] VectorAnimationView.Dispose(type={type})"); + tlog.Fatal(tag, $"[{GetId()}] VectorAnimationView.Dispose(type={type})"); if (type == DisposeTypes.Explicit) { @@ -79,7 +79,7 @@ namespace Tizen.NUI.BaseComponents base.Dispose(type); - tlog.Fatal(tag, $"[{GetId()}] VectorAnimationView.Dispose() >>>"); + tlog.Fatal(tag, $"[{GetId()}] VectorAnimationView.Dispose() "); } #endregion Constructor, Distructor, Dispose @@ -88,13 +88,13 @@ namespace Tizen.NUI.BaseComponents /// /// Set Resource URL /// - // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API) + // InhouseAPI (HiddenAPI) [EditorBrowsable(EditorBrowsableState.Never)] public string ResourceURL { set { - tlog.Fatal(tag, $"<<< [{GetId()}] VectorAnimationView.ResourceURL SET"); + tlog.Fatal(tag, $"[{GetId()}] VectorAnimationView.ResourceURL SET"); if (value == mResourceURL) { @@ -105,7 +105,7 @@ namespace Tizen.NUI.BaseComponents URL = mResourceURL; mIsMinMaxSet = false; - tlog.Fatal(tag, $" [{GetId()}] VectorAnimationView.ResourceURL SET mResourceURL={mResourceURL}) >>>"); + tlog.Fatal(tag, $" [{GetId()}] VectorAnimationView.ResourceURL SET mResourceURL={mResourceURL}) "); } get => mResourceURL; } @@ -117,19 +117,19 @@ namespace Tizen.NUI.BaseComponents /// If the RepeatCount is greater than 0, the repeat mode will be taken into account. /// If RepeatCount is -1, animation is infinite loops. /// - // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API) + // InhouseAPI (HiddenAPI) [EditorBrowsable(EditorBrowsableState.Never)] public int RepeatCount { set { - tlog.Fatal(tag, $"<<< [{GetId()}] VectorAnimationView.RepeatCount SET"); + tlog.Fatal(tag, $"[{GetId()}] VectorAnimationView.RepeatCount SET"); mRepeatCount = (value < -1) ? -1 : value; //LoopCount = mRepeatCount; LoopCount = (mRepeatCount < 0) ? mRepeatCount : mRepeatCount + 1; - tlog.Fatal(tag, $"[{GetId()}] VectorAnimationView.RepeatCount SET mRepeatCount={mRepeatCount} >>>"); + tlog.Fatal(tag, $"[{GetId()}] VectorAnimationView.RepeatCount SET mRepeatCount={mRepeatCount} "); } get => mRepeatCount; } @@ -137,7 +137,7 @@ namespace Tizen.NUI.BaseComponents /// /// TotalFrame of animation. /// - // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API) + // InhouseAPI (HiddenAPI) [EditorBrowsable(EditorBrowsableState.Never)] public int TotalFrame { @@ -148,13 +148,13 @@ namespace Tizen.NUI.BaseComponents /// CurrentFrame of animation. /// /// Returns user set value for the current frame. Cannot provide actual playing current frame. - // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API) + // InhouseAPI (HiddenAPI) [EditorBrowsable(EditorBrowsableState.Never)] public int CurrentFrame { set { - tlog.Fatal(tag, $"<<< [{GetId()}] VectorAnimationView.CurrentFrame SET"); + tlog.Fatal(tag, $"[{GetId()}] VectorAnimationView.CurrentFrame SET"); if (mResourceURL == null || mResourceURL == String.Empty) { @@ -178,7 +178,7 @@ namespace Tizen.NUI.BaseComponents SetPlayRange(mCurrentFrame, mCurrentFrame); CurrentFrameNumber = mCurrentFrame; - tlog.Fatal(tag, $" [{GetId()}] VectorAnimationView.CurrentFrame SET mCurrentFrame={mCurrentFrame}) >>>"); + tlog.Fatal(tag, $" [{GetId()}] VectorAnimationView.CurrentFrame SET mCurrentFrame={mCurrentFrame}) "); } get => mCurrentFrame; } @@ -186,13 +186,13 @@ namespace Tizen.NUI.BaseComponents /// /// RepeatMode of animation. /// - // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API) + // InhouseAPI (HiddenAPI) [EditorBrowsable(EditorBrowsableState.Never)] public RepeatModes RepeatMode { set { - tlog.Fatal(tag, $"<<< [{GetId()}] VectorAnimationView.RepeatMode SET"); + tlog.Fatal(tag, $"[{GetId()}] VectorAnimationView.RepeatMode SET"); mRepeatMode = value; switch (mRepeatMode) @@ -208,7 +208,7 @@ namespace Tizen.NUI.BaseComponents break; } - tlog.Fatal(tag, $" [{GetId()}] VectorAnimationView.RepeatMode SET mRepeatMode={mRepeatMode}) >>>"); + tlog.Fatal(tag, $" [{GetId()}] VectorAnimationView.RepeatMode SET mRepeatMode={mRepeatMode}) "); } get => mRepeatMode; } @@ -216,7 +216,7 @@ namespace Tizen.NUI.BaseComponents /// /// Get state of animation. /// - // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API) + // InhouseAPI (HiddenAPI) [EditorBrowsable(EditorBrowsableState.Never)] public AnimationStates AnimationState { @@ -232,11 +232,11 @@ namespace Tizen.NUI.BaseComponents /// /// minimum frame. /// maximum frame. - // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API) + // InhouseAPI (HiddenAPI) [EditorBrowsable(EditorBrowsableState.Never)] public void SetMinAndMaxFrame(int minFrame, int maxFrame) { - tlog.Fatal(tag, $"<<< [{GetId()}] VectorAnimationView.SetMinAndMaxFrame({minFrame}, {maxFrame})"); + tlog.Fatal(tag, $"[{GetId()}] VectorAnimationView.SetMinAndMaxFrame({minFrame}, {maxFrame})"); mMinFrame = (minFrame) > 0 ? minFrame : 0; mMaxFrame = (maxFrame) > 0 ? maxFrame : 0; @@ -262,17 +262,17 @@ namespace Tizen.NUI.BaseComponents SetPlayRange(mMinFrame, mMaxFrame); CurrentFrameNumber = mMinFrame; - tlog.Fatal(tag, $" [{GetId()}] VectorAnimationView.SetMinAndMaxFrame(m: {mMinFrame}, {mMaxFrame}) >>>"); + tlog.Fatal(tag, $" [{GetId()}] VectorAnimationView.SetMinAndMaxFrame(m: {mMinFrame}, {mMaxFrame}) "); } /// /// Play Animation. /// - // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API) + // InhouseAPI (HiddenAPI) [EditorBrowsable(EditorBrowsableState.Never)] public new void Play() { - tlog.Fatal(tag, $"<<< [{GetId()}] VectorAnimationView.Play()"); + tlog.Fatal(tag, $"[{GetId()}] VectorAnimationView.Play()"); if (mResourceURL == null || mResourceURL == String.Empty) { @@ -295,17 +295,17 @@ namespace Tizen.NUI.BaseComponents base.Play(); AnimationState = AnimationStates.Playing; - tlog.Fatal(tag, $" [{GetId()}] VectorAnimationView.Play(mIsMinMaxSet={mIsMinMaxSet}) >>>"); + tlog.Fatal(tag, $" [{GetId()}] VectorAnimationView.Play(mIsMinMaxSet={mIsMinMaxSet}) "); } /// /// Pause Animation. /// - // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API) + // InhouseAPI (HiddenAPI) [EditorBrowsable(EditorBrowsableState.Never)] public new void Pause() { - tlog.Fatal(tag, $"<<< [{GetId()}] VectorAnimationView.Pause() AnimationState={AnimationState}"); + tlog.Fatal(tag, $"[{GetId()}] VectorAnimationView.Pause() AnimationState={AnimationState}"); if (mResourceURL == null || mResourceURL == String.Empty) { @@ -315,7 +315,7 @@ namespace Tizen.NUI.BaseComponents base.Pause(); AnimationState = AnimationStates.Paused; - tlog.Fatal(tag, $" [{GetId()}] VectorAnimationView.Pause() >>>"); + tlog.Fatal(tag, $" [{GetId()}] VectorAnimationView.Pause() "); } /// @@ -326,11 +326,11 @@ namespace Tizen.NUI.BaseComponents /// End action is Discard, Animation Stops at the Min Frame /// End action is StopFinal, Animation Stops at the Max Frame /// - // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API) + // InhouseAPI (HiddenAPI) [EditorBrowsable(EditorBrowsableState.Never)] public void Stop(EndActions endAction = EndActions.Cancel) { - tlog.Fatal(tag, $"<<< [{GetId()}] VectorAnimationView.Stop({endAction})"); + tlog.Fatal(tag, $"[{GetId()}] VectorAnimationView.Stop({endAction})"); if (mResourceURL == null || mResourceURL == String.Empty) { @@ -373,7 +373,7 @@ namespace Tizen.NUI.BaseComponents base.Stop(); - tlog.Fatal(tag, $" [{GetId()}] VectorAnimationView.Stop(endaction={endAction}) >>>"); + tlog.Fatal(tag, $" [{GetId()}] VectorAnimationView.Stop(endaction={endAction}) "); } #endregion Method @@ -382,20 +382,20 @@ namespace Tizen.NUI.BaseComponents /// /// RepeatMode of animation. /// - // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API) + // InhouseAPI (HiddenAPI) [EditorBrowsable(EditorBrowsableState.Never)] public enum RepeatModes { /// /// When the animation reaches the end and RepeatCount is nonZero, the animation restarts from the beginning. /// - // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API) + // InhouseAPI (HiddenAPI) [EditorBrowsable(EditorBrowsableState.Never)] Restart = LoopModes.Forward, /// /// When the animation reaches the end and RepeatCount nonZero, the animation reverses direction on every animation cycle. /// - // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API) + // InhouseAPI (HiddenAPI) [EditorBrowsable(EditorBrowsableState.Never)] Reverse = LoopModes.Backward } @@ -403,20 +403,20 @@ namespace Tizen.NUI.BaseComponents /// /// EndActions of animation. /// - // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API) + // InhouseAPI (HiddenAPI) [EditorBrowsable(EditorBrowsableState.Never)] public enum EndActions { /// End action is Cancel, Animation Stops at the Current Frame. - // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API) + // InhouseAPI (HiddenAPI) [EditorBrowsable(EditorBrowsableState.Never)] Cancel = 0, /// End action is Discard, Animation Stops at the Min Frame - // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API) + // InhouseAPI (HiddenAPI) [EditorBrowsable(EditorBrowsableState.Never)] Discard = 1, /// End action is StopFinal, Animation Stops at the Max Frame - // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API) + // InhouseAPI (HiddenAPI) [EditorBrowsable(EditorBrowsableState.Never)] StopFinal = 2 } @@ -424,20 +424,20 @@ namespace Tizen.NUI.BaseComponents /// /// AnimationStates of animation. /// - // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API) + // InhouseAPI (HiddenAPI) [EditorBrowsable(EditorBrowsableState.Never)] public enum AnimationStates { /// The animation has stopped. - // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API) + // InhouseAPI (HiddenAPI) [EditorBrowsable(EditorBrowsableState.Never)] Stopped = PlayStateType.Stopped, /// The animation is playing. - // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API) + // InhouseAPI (HiddenAPI) [EditorBrowsable(EditorBrowsableState.Never)] Playing = PlayStateType.Playing, /// The animation is paused. - // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API) + // InhouseAPI (HiddenAPI) [EditorBrowsable(EditorBrowsableState.Never)] Paused = PlayStateType.Paused } -- 2.7.4