Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
carlpoole committed Apr 5, 2024
1 parent 869bf11 commit 0db5b6d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ open class PortalFragment : Fragment {
this.onBridgeAvailable = onBridgeAvailable
}

/**
* Extends the Android Fragment `onCreate` lifecycle event.
*/
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
portal?.let { portal ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ package io.ionic.portals
import androidx.lifecycle.ViewModel
import kotlinx.coroutines.flow.MutableStateFlow

/**
* ViewModel containing a Portal.
*/
open class PortalViewModel: ViewModel() {

/**
* MutableStateFlow for the Portal.
*/
val state = MutableStateFlow<Portal?>(null)
}

0 comments on commit 0db5b6d

Please sign in to comment.