winter-androidx / io.jentz.winter.androidx / DependencyGraphContextWrapper

DependencyGraphContextWrapper

class DependencyGraphContextWrapper : ContextWrapper

A ContextWrapper that holds a reference to a Graph and creates a clone of LayoutInflater that is bound to this.

This is useful if you need to provide a specific dependency graph to a view hierarchy other than your Activity graph.

Constructors

<init>

DependencyGraphContextWrapper(base: Context, graph: Graph)

A ContextWrapper that holds a reference to a Graph and creates a clone of LayoutInflater that is bound to this.

Properties

graph

val graph: Graph

Functions

getSystemService

fun getSystemService(name: String?): Any?

Companion Object Properties

WINTER_GRAPH

const val WINTER_GRAPH: String

Use with getSystemService to retrieve the Graph instance.