NoopActivityControllerFactory

In package com.nhaarman.acorn.android.presentation

class com.nhaarman.acorn.android.presentation.NoopActivityControllerFactory

A No-op ActivityControllerFactory that does not create any instances.

Methods

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:
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.