C# Class MvvmCross.Droid.FullFragging.Caching.MvxCachingFragmentActivity

Inheritance: Views.MvxActivity, IFragmentCacheableActivity, IMvxFragmentHost
Afficher le fichier Open project: MvvmCross/MvvmCross

Méthodes publiques

Méthode Description
BuildFragmentCacheConfiguration ( ) : IFragmentCacheConfiguration
Close ( IMvxViewModel viewModel ) : bool
OnBackPressed ( ) : void
OnBeforeFragmentChanging ( IMvxCachedFragmentInfo fragmentInfo, FragmentTransaction transaction ) : void
OnFragmentChanged ( IMvxCachedFragmentInfo fragmentInfo ) : void
OnFragmentChanging ( IMvxCachedFragmentInfo fragmentInfo, FragmentTransaction transaction ) : void
OnFragmentCreated ( IMvxCachedFragmentInfo fragmentInfo, FragmentTransaction transaction ) : void
OnFragmentPopped ( IList currentFragmentsInfo ) : void
Show ( MvxViewModelRequest request, Bundle bundle, Type fragmentType, MvxFragmentAttribute fragmentAttribute ) : bool

Méthodes protégées

Méthode Description
CloseFragment ( string tag, int contentId ) : void

Close Fragment with a specific tag at a specific placeholder

FragmentJavaName ( Type fragmentType ) : string
GetCurrentCacheableFragments ( ) : IEnumerable
GetCurrentCacheableFragmentsInfo ( ) : List
GetFragmentInfoByTag ( string tag ) : IMvxCachedFragmentInfo
GetFragmentTag ( MvxViewModelRequest request, Bundle bundle, Type fragmentType ) : string
GetLastFragmentInfo ( ) : IMvxCachedFragmentInfo
GetTagFromFragment ( Fragment fragment ) : string
MvxCachingFragmentActivity ( ) : System
MvxCachingFragmentActivity ( IntPtr javaReference, JniHandleOwnership transfer ) : System
OnCreate ( Bundle bundle ) : void
OnPostCreate ( Bundle savedInstanceState ) : void
OnSaveInstanceState ( Bundle outState ) : void
ReplaceFragment ( FragmentTransaction ft, IMvxCachedFragmentInfo fragInfo ) : void
ShouldReplaceCurrentFragment ( IMvxCachedFragmentInfo newFragment, IMvxCachedFragmentInfo currentFragment, Bundle replacementBundle ) : FragmentReplaceMode
ShowFragment ( string tag, int contentId, Bundle bundle, bool forceAddToBackStack = false, bool forceReplaceFragment = false ) : void

Show Fragment with a specific tag at a specific placeholder

Private Methods

Méthode Description
CreateFragmentTypesDictionary ( Bundle outState ) : Type>.Dictionary
RestoreFragmentsCache ( ) : void
RestoreViewModelsFromBundle ( IMvxJsonConverter serializer, Bundle savedInstanceState ) : void

Method Details

BuildFragmentCacheConfiguration() public méthode

public BuildFragmentCacheConfiguration ( ) : IFragmentCacheConfiguration
Résultat IFragmentCacheConfiguration

Close() public méthode

public Close ( IMvxViewModel viewModel ) : bool
viewModel IMvxViewModel
Résultat bool

CloseFragment() protected méthode

Close Fragment with a specific tag at a specific placeholder
protected CloseFragment ( string tag, int contentId ) : void
tag string The tag for the fragment to lookup
contentId int Where you want to close the Fragment
Résultat void

FragmentJavaName() protected méthode

protected FragmentJavaName ( Type fragmentType ) : string
fragmentType System.Type
Résultat string

GetCurrentCacheableFragments() protected méthode

protected GetCurrentCacheableFragments ( ) : IEnumerable
Résultat IEnumerable

GetCurrentCacheableFragmentsInfo() protected méthode

protected GetCurrentCacheableFragmentsInfo ( ) : List
Résultat List

GetFragmentInfoByTag() protected méthode

protected GetFragmentInfoByTag ( string tag ) : IMvxCachedFragmentInfo
tag string
Résultat IMvxCachedFragmentInfo

GetFragmentTag() protected méthode

protected GetFragmentTag ( MvxViewModelRequest request, Bundle bundle, Type fragmentType ) : string
request MvvmCross.Core.ViewModels.MvxViewModelRequest
bundle Bundle
fragmentType System.Type
Résultat string

GetLastFragmentInfo() protected méthode

protected GetLastFragmentInfo ( ) : IMvxCachedFragmentInfo
Résultat IMvxCachedFragmentInfo

GetTagFromFragment() protected méthode

protected GetTagFromFragment ( Fragment fragment ) : string
fragment Fragment
Résultat string

MvxCachingFragmentActivity() protected méthode

protected MvxCachingFragmentActivity ( ) : System
Résultat System

MvxCachingFragmentActivity() protected méthode

protected MvxCachingFragmentActivity ( IntPtr javaReference, JniHandleOwnership transfer ) : System
javaReference System.IntPtr
transfer JniHandleOwnership
Résultat System

OnBackPressed() public méthode

public OnBackPressed ( ) : void
Résultat void

OnBeforeFragmentChanging() public méthode

public OnBeforeFragmentChanging ( IMvxCachedFragmentInfo fragmentInfo, FragmentTransaction transaction ) : void
fragmentInfo IMvxCachedFragmentInfo
transaction FragmentTransaction
Résultat void

OnCreate() protected méthode

protected OnCreate ( Bundle bundle ) : void
bundle Bundle
Résultat void

OnFragmentChanged() public méthode

public OnFragmentChanged ( IMvxCachedFragmentInfo fragmentInfo ) : void
fragmentInfo IMvxCachedFragmentInfo
Résultat void

OnFragmentChanging() public méthode

public OnFragmentChanging ( IMvxCachedFragmentInfo fragmentInfo, FragmentTransaction transaction ) : void
fragmentInfo IMvxCachedFragmentInfo
transaction FragmentTransaction
Résultat void

OnFragmentCreated() public méthode

public OnFragmentCreated ( IMvxCachedFragmentInfo fragmentInfo, FragmentTransaction transaction ) : void
fragmentInfo IMvxCachedFragmentInfo
transaction FragmentTransaction
Résultat void

OnFragmentPopped() public méthode

public OnFragmentPopped ( IList currentFragmentsInfo ) : void
currentFragmentsInfo IList
Résultat void

OnPostCreate() protected méthode

protected OnPostCreate ( Bundle savedInstanceState ) : void
savedInstanceState Bundle
Résultat void

OnSaveInstanceState() protected méthode

protected OnSaveInstanceState ( Bundle outState ) : void
outState Bundle
Résultat void

ReplaceFragment() protected méthode

protected ReplaceFragment ( FragmentTransaction ft, IMvxCachedFragmentInfo fragInfo ) : void
ft FragmentTransaction
fragInfo IMvxCachedFragmentInfo
Résultat void

ShouldReplaceCurrentFragment() protected méthode

protected ShouldReplaceCurrentFragment ( IMvxCachedFragmentInfo newFragment, IMvxCachedFragmentInfo currentFragment, Bundle replacementBundle ) : FragmentReplaceMode
newFragment IMvxCachedFragmentInfo
currentFragment IMvxCachedFragmentInfo
replacementBundle Bundle
Résultat FragmentReplaceMode

Show() public méthode

public Show ( MvxViewModelRequest request, Bundle bundle, Type fragmentType, MvxFragmentAttribute fragmentAttribute ) : bool
request MvvmCross.Core.ViewModels.MvxViewModelRequest
bundle Bundle
fragmentType System.Type
fragmentAttribute MvvmCross.Droid.Shared.Attributes.MvxFragmentAttribute
Résultat bool

ShowFragment() protected méthode

Show Fragment with a specific tag at a specific placeholder
protected ShowFragment ( string tag, int contentId, Bundle bundle, bool forceAddToBackStack = false, bool forceReplaceFragment = false ) : void
tag string The tag for the fragment to lookup
contentId int Where you want to show the Fragment
bundle Bundle Bundle which usually contains a Serialized MvxViewModelRequest
forceAddToBackStack bool If you want to force add the fragment to the backstack so on backbutton it will go back to it. Note: This will override IMvxCachedFragmentInfo.AddToBackStack configuration.
forceReplaceFragment bool If you want the fragment to be re-created
Résultat void