We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
companion object{ fun newInstance(title: String) = FragmentChat().apply { arguments = Bundle().apply { putString("title", title) } } fun arguments(title: String): Bundle { return Bundler() .putString("title", title) .get() } }
override fun onAttach(context: Context?) { super.onAttach(context) callbacks = activity as OnFragmentCallbacks title = arguments?.getString("title") }
fragmentItems.add(FragmentPagerItem.of("Chat1", FragmentChat::class.java, FragmentChat.arguments("Chat1"))) adapter.notifyDataSetChanged()
It is working but i am still concerned as there is no kotlin way mentioned? Please respond ASAP
The text was updated successfully, but these errors were encountered:
any updates on this?
Sorry, something went wrong.
No branches or pull requests
companion object{ fun newInstance(title: String) = FragmentChat().apply { arguments = Bundle().apply { putString("title", title) } } fun arguments(title: String): Bundle { return Bundler() .putString("title", title) .get() } }
override fun onAttach(context: Context?) { super.onAttach(context) callbacks = activity as OnFragmentCallbacks title = arguments?.getString("title") }
fragmentItems.add(FragmentPagerItem.of("Chat1", FragmentChat::class.java, FragmentChat.arguments("Chat1"))) adapter.notifyDataSetChanged()
It is working but i am still concerned as there is no kotlin way mentioned? Please respond ASAP
The text was updated successfully, but these errors were encountered: