Builder
๊ฐ๋
BuilderBase๋ ScreenSystem์ ๊ธฐ๋ฅ ์ค ํ๋๋ก, DI Container์ ์ฐ๋ํ์ฌ ํ๋ฉด์ ์์ฑํ๊ณ Page์ Modal์ ์์ฑํฉ๋๋ค.
๋ค์ ํ๋ฉด์์ ์ฌ์ฉํ ์์๋ Parameter๋ก ์ ์ํ์ฌ ์ ๋ฌํ ์ ์์ต๋๋ค.
์๋ฅผ ๋ค์ด ์ธ๋ฒคํ ๋ฆฌ์์ ์์ดํ ์ ๋๋ฌ ์์ธ ์์ดํ ํ์ด์ง๋ก ๋์ด๊ฐ๋ UI๋ผ๊ณ ํด ๋ด ์๋ค.
์ ํํ ์์ดํ ์ ID๋ฅผ ๋ค์ ํ๋ฉด์ผ๋ก ํ๋ผ๋ฏธํฐ๋ฅผ ํตํด ์ ๋ฌํ ์ ์์ต๋๋ค.
์์ ์ฝ๋
public class TestPageBuilder : PageBuilderBase<TestLifecycle, TestPageView>
{
public TestBuilder(bool playAnimation = true, bool stack = true) : base(playAnimation, stack) { }
}
// ๋ค์ ํ๋ฉด์ ํ๋ผ๋ฏธํฐ๋ฅผ ์ ๋ฌํ๋ ๊ฒฝ์ฐ
public class TestPageBuilder : PageBuilderBase<TestLifecycle, TestView, TestPageParameter>
{
public TestBuilder(TestParameter parameter, bool playAnimation = true, bool stack = true) : base(parameter, playAnimation, stack) { }
}
Last updated