Package-level declarations
Functions
Link copied to clipboard
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
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을 반환하고 에러를 로깅합니다.