Android SDK Version


public class FragmentWrapper
Field Summary
Modifier and TypeFieldDescription
private FragmentsupportFragment
private FragmentnativeFragment
Constructor Summary
ConstructorDescription
FragmentWrapper(Fragment fragment)
FragmentWrapper(Fragment fragment)
Method Summary
Modifier and TypeMethodDescription
FragmentgetSupportFragment()
FragmentgetNativeFragment()
voidstartActivityForResult(Intent intent, int requestCode) Call startActivityForResult from the fragment's containingActivity.
final ActivitygetActivity() Return the FragmentActivity this fragment is currently associated with.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

FragmentWrapper

FragmentWrapper(Fragment fragment)

FragmentWrapper

FragmentWrapper(Fragment fragment)
Method Detail

getSupportFragment

FragmentgetSupportFragment()

getNativeFragment

FragmentgetNativeFragment()

startActivityForResult

 void startActivityForResult(Intent intent, int requestCode)
Call startActivityForResult from the fragment's containingActivity.

getActivity

 final ActivitygetActivity()
Return the FragmentActivity this fragment is currently associated with. May return {@code null} if the fragment is associated with a Context instead.