ActivityControllerFactory

In package com.nhaarman.acorn.android.presentation

class com.nhaarman.acorn.android.presentation.ActivityControllerFactory

A factory interface that can create ActivityController instances for Scenes.

Methods

abstract fun supports(sceneKey: SceneKey): Boolean

Returns true when this ActivityControllerFactory can create an ActivityController when activityControllerFor is called. If this method returns false for a specific SceneKey, no calls to activityControllerFor with the same SceneKey must be made.

Parameters:
abstract fun activityControllerFor(scene: Scene, context: ): ActivityController

Creates an ActivityController for given Scene key.

Parameters:
  • scene: Scene

    The Scene instance for which the corresponding ActivityController should be created.

  • context:

    A Context instance.