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