RootFragment

Root Fragment class providing runtime permission management.
Serves as the foundation for all Fragment classes in the library.

런타임 권한 관리를 제공하는 루트 Fragment 클래스입니다.
라이브러리의 모든 Fragment 클래스의 기반이 됩니다.

See also

BaseFragment

For simple layout-based Fragment.

간단한 레이아웃 기반 Fragment.

ParentsBindingFragment

For binding-enabled Fragment base class.

바인딩을 지원하는 Fragment 기본 클래스.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val context: Context?
Link copied to clipboard
Link copied to clipboard
open var exitTransition: Any?
Link copied to clipboard
Link copied to clipboard
val host: Any?
Link copied to clipboard
val id: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tag: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val view: View?
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun consumeOrphanedDeniedResults(): List<OrphanedDeniedRequestResult>

Returns and clears denied results that lost their callbacks after process restore.
Call this in onCreate to handle results from requests that were interrupted by process kill.

프로세스 복원 후 콜백을 잃은 거부 결과를 반환하고 비웁니다.
프로세스 킬로 중단된 요청의 결과를 처리하려면 onCreate에서 호출하세요.

Link copied to clipboard
open fun dump(@NonNull prefix: String, @Nullable fd: FileDescriptor?, @NonNull writer: PrintWriter, @Nullable args: Array<out String?>??)
Link copied to clipboard
fun getString(@StringRes resId: Int, @Nullable vararg formatArgs: Any?): String
Link copied to clipboard
Link copied to clipboard
open fun onActivityCreated(@Nullable savedInstanceState: Bundle?)
Link copied to clipboard
open fun onActivityResult(requestCode: Int, resultCode: Int, @Nullable data: Intent?)
Link copied to clipboard
Link copied to clipboard
open fun onAttachFragment(@NonNull childFragment: Fragment)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onCreate(savedInstanceState: Bundle?)
Link copied to clipboard
open fun onCreateAnimation(transit: Int, enter: Boolean, nextAnim: Int): Animation?
Link copied to clipboard
open fun onCreateAnimator(transit: Int, enter: Boolean, nextAnim: Int): Animator?
Link copied to clipboard
Link copied to clipboard
open fun onCreateView(@NonNull inflater: LayoutInflater, @Nullable container: ViewGroup?, @Nullable savedInstanceState: Bundle?): View?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onGetLayoutInflater(@Nullable savedInstanceState: Bundle?): LayoutInflater
Link copied to clipboard
Link copied to clipboard
open fun onInflate(@NonNull activity: Activity, @NonNull attrs: AttributeSet, @Nullable savedInstanceState: Bundle?)
open fun onInflate(@NonNull context: Context, @NonNull attrs: AttributeSet, @Nullable savedInstanceState: Bundle?)
Link copied to clipboard
Link copied to clipboard
open fun onMultiWindowModeChanged(isInMultiWindowMode: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onPictureInPictureModeChanged(isInPictureInPictureMode: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun onPrimaryNavigationFragmentChanged(isPrimaryNavigationFragment: Boolean)
Link copied to clipboard
open fun onRequestPermissionsResult(requestCode: Int, @NonNull permissions: Array<out String?>, @NonNull grantResults: IntArray)
Link copied to clipboard
Link copied to clipboard
open override fun onSaveInstanceState(outState: Bundle)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onViewCreated(@NonNull view: View, @Nullable savedInstanceState: Bundle?)
Link copied to clipboard
open fun onViewStateRestored(@Nullable savedInstanceState: Bundle?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun requestPermissions(@NonNull permissions: Array<out String?>, requestCode: Int)

override fun requestPermissions(permissions: List<String>, onDeniedResult: (List<PermissionDeniedItem>) -> Unit)
override fun requestPermissions(permissions: List<String>, onDeniedResult: (List<PermissionDeniedItem>) -> Unit, onRationaleNeeded: (PermissionRationaleRequest) -> Unit?, onNavigateToSettings: (PermissionSettingsRequest) -> Unit?)

Requests permissions using the delegate.
Call only after the Fragment is attached (isAdded == true).

델리게이트를 사용하여 권한을 요청합니다.
Fragment가 attach된 이후(isAdded == true)에만 호출하세요.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setHasOptionsMenu(hasMenu: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun setMenuVisibility(menuVisible: Boolean)
Link copied to clipboard
open fun setTargetFragment(@Nullable fragment: Fragment?, requestCode: Int)
Link copied to clipboard
fun Fragment.snackBarShowIndefinite(msg: CharSequence, snackBarOption: SnackBarOption? = null)

Creates and shows an indefinite duration Snackbar from a Fragment.
Logs an error if the Fragment's view is null.

Fragment에서 무제한 시간 Snackbar를 생성하고 표시합니다.
Fragment의 view가 null이면 에러를 로깅합니다.

Link copied to clipboard
fun Fragment.snackBarShowLong(msg: CharSequence, snackBarOption: SnackBarOption? = null)

Creates and shows a long duration Snackbar from a Fragment.
Logs an error if the Fragment's view is null.

Fragment에서 긴 시간 Snackbar를 생성하고 표시합니다.
Fragment의 view가 null이면 에러를 로깅합니다.

Link copied to clipboard
fun Fragment.snackBarShowShort(msg: CharSequence, snackBarOption: SnackBarOption? = null)

Creates and shows a short duration Snackbar from a Fragment.
Logs an error if the Fragment's view is null.

Fragment에서 짧은 시간 Snackbar를 생성하고 표시합니다.
Fragment의 view가 null이면 에러를 로깅합니다.

Link copied to clipboard
open fun startActivity(intent: Intent?)
open fun startActivity(intent: Intent?, @Nullable options: Bundle?)
Link copied to clipboard
open fun startActivityForResult(intent: Intent?, requestCode: Int)
open fun startActivityForResult(intent: Intent?, requestCode: Int, @Nullable options: Bundle?)
Link copied to clipboard
open fun startIntentSenderForResult(intent: IntentSender?, requestCode: Int, @Nullable fillInIntent: Intent?, flagsMask: Int, flagsValues: Int, extraFlags: Int, @Nullable options: Bundle?)
Link copied to clipboard
Link copied to clipboard

Creates and shows a long duration Toast message from a Fragment.
Logs an error if the Fragment's context is null.

Fragment에서 긴 시간 Toast 메시지를 생성하고 표시합니다.
Fragment의 context가 null이면 에러를 로깅합니다.

Link copied to clipboard

Creates and shows a short duration Toast message from a Fragment.
Logs an error if the Fragment's context is null.

Fragment에서 짧은 시간 Toast 메시지를 생성하고 표시합니다.
Fragment의 context가 null이면 에러를 로깅합니다.

Link copied to clipboard
Link copied to clipboard
inline fun Fragment.withContext(errorMessage: String = "Fragment context is null", block: (Context) -> Unit): Boolean

Executes the given block if the Fragment's context is not null.
Logs an error if the context is null.

Fragment의 context가 null이 아닌 경우 주어진 블록을 실행합니다.
context가 null이면 에러를 로깅합니다.

Link copied to clipboard
inline fun <T> Fragment.withContextResult(errorMessage: String = "Fragment context is null", block: (Context) -> T): T?

Executes the given block and returns a result if the Fragment's context is not null.
Returns null and logs an error if the context is null.

Fragment의 context가 null이 아닌 경우 주어진 블록을 실행하고 결과를 반환합니다.
context가 null이면 null을 반환하고 에러를 로깅합니다.

Link copied to clipboard
inline fun Fragment.withView(errorMessage: String = "Fragment view is null", block: (View) -> Unit): Boolean

Executes the given block if the Fragment's view is not null.
Logs an error if the view is null.

Fragment의 view가 null이 아닌 경우 주어진 블록을 실행합니다.
view가 null이면 에러를 로깅합니다.

Link copied to clipboard
inline fun <T> Fragment.withViewResult(errorMessage: String = "Fragment view is null", block: (View) -> T): T?

Executes the given block and returns a result if the Fragment's view is not null.
Returns null and logs an error if the view is null.

Fragment의 view가 null이 아닌 경우 주어진 블록을 실행하고 결과를 반환합니다.
view가 null이면 null을 반환하고 에러를 로깅합니다.