Android UIは基本的にシングルスレッドで動作します。そのため、この影響を考慮して開発しなければアプリケーションの性能が低下することがあります。したがって、メインスレッドで時間のかかる処理をするのを避けるために、他のスレッドを使用しなければなりません。他のスレッドからUIスレッドにアクセスするためのAndroidが提供するスレッド間通信の方法を紹介します。 イントロダクション Androidのアプリケーションを実行すると、システムはメインアクティビティをメモリに読み込んでプロセスを作ります。この時メインスレッドが自動的に生成されます。メインスレッドはAndroidの主要コンポーネントを実行するところであり、UIを描いたり更新する仕事を担当できる唯一のスレッドであるためUIスレッドとも呼ばれます。 Androidの画面を構成するビューやビューグループに対する操作を一つのスレッドのみが担
About the content This content has been published here with the express permission of the author. ログイン方法が1つしか用意されていないアプリは、ユーザーの選択肢を制限していて低いレビューに繋がることが多いです。一方で、ログイン方法が複数あるとコードが非常に複雑になってしまいます。 David EastはSwiftのEnumを使うことで、簡単に複雑さを取り除くことができることと、ビューコントローラーやログイン処理のコードをキレイで分かりやすい状態に保つ方法をデモします。 Swiftの第1級オブジェクトであるEnumの強力さと、信頼できる認証フローを構築する方法を学びましょう。 私の名前はDavid Eastです。私はGoogle社のFirebaseチームに所属しているDeveloper Adv
About the content This content has been published here with the express permission of the author. So you’ve got a huge view controller that knows about everything. It’s become a puppeteer mastermind whose responsibilities have somehow grown to simultaneously encompass disk I/O and navigation bar styling. Andy Matuschak live codes solutions to reduce the size of the beast, and refactors out its res
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く