পরিধান করুন
androidx.wear.activity
androidx.wear.ambient
androidx.wear.input
androidx.wear.utils
androidx.wear.widget
androidx.wear.widget.drawer
( সকল ওয়্যার প্যাকেজের জন্য রেফারেন্স ডকুমেন্টেশন দেখুন )
এই সারণিতে androidx.wear গ্রুপের অন্তর্গত সমস্ত আর্টিফ্যাক্ট তালিকাভুক্ত করা হয়েছে।
| প্রত্নবস্তু | স্থিতিশীল রিলিজ | রিলিজ প্রার্থী | বিটা রিলিজ | আলফা রিলিজ |
|---|---|---|---|---|
| পরিধান | ১.৪.০ | - | - | - |
| পরিধান-ইনপুট | ১.২.০ | - | - | - |
| পরিধান-ইনপুট-পরীক্ষা | ১.২.০ | - | - | - |
| পরিধান-চলমান | ১.১.০ | - | - | - |
| ফোন পরিধানের মিথস্ক্রিয়া | ১.১.০ | - | - | - |
| পরিধান-রিমোট-ইন্টারঅ্যাকশন | ১.২.০ | - | - | ১.৩.০-আলফা০১ |
নির্ভরতা ঘোষণা করা
Wear-এর উপর নির্ভরতা যোগ করতে হলে, আপনাকে আপনার প্রজেক্টে Google Maven রিপোজিটরি যোগ করতে হবে। আরও তথ্যের জন্য Google-এর Maven রিপোজিটরি পড়ুন।
আপনার অ্যাপ বা মডিউলের build.gradle ফাইলে প্রয়োজনীয় আর্টিফ্যাক্টগুলোর ডিপেন্ডেন্সি যোগ করুন:
গ্রোভি
dependencies { implementation "androidx.wear:wear:1.4.0" // Add support for wearable specific inputs implementation "androidx.wear:wear-input:1.2.0" implementation "androidx.wear:wear-input-testing:1.2.0" // Use to implement wear ongoing activities implementation "androidx.wear:wear-ongoing:1.1.0" // Use to implement support for interactions from the Wearables to Phones implementation "androidx.wear:wear-phone-interactions:1.1.0" // Use to implement support for interactions between the Wearables and Phones implementation "androidx.wear:wear-remote-interactions:1.2.0" }
কোটলিন
dependencies { implementation("androidx.wear:wear:1.4.0") // Add support for wearable specific inputs implementation("androidx.wear:wear-input:1.2.0") implementation("androidx.wear:wear-input-testing:1.2.0") // Use to implement wear ongoing activities implementation("androidx.wear:wear-ongoing:1.1.0") // Use to implement support for interactions from the Wearables to Phones implementation("androidx.wear:wear-phone-interactions:1.1.0") // Use to implement support for interactions between the Wearables and Phones implementation("androidx.wear:wear-remote-interactions:1.2.0") }
নির্ভরতা সম্পর্কে আরও তথ্যের জন্য, 'বিল্ড নির্ভরতা যোগ করুন ' দেখুন।
প্রতিক্রিয়া
আপনার মতামত জেটপ্যাককে আরও উন্নত করতে সাহায্য করে। আপনি যদি নতুন কোনো সমস্যা খুঁজে পান অথবা এই লাইব্রেরিটি উন্নত করার জন্য কোনো ধারণা থাকে, তবে আমাদের জানান। নতুন কোনো সমস্যা তৈরি করার আগে অনুগ্রহ করে এই লাইব্রেরির বিদ্যমান সমস্যাগুলো দেখে নিন। আপনি তারকা বোতামে ক্লিক করে কোনো বিদ্যমান সমস্যায় আপনার ভোট যোগ করতে পারেন।
আরও তথ্যের জন্য ইস্যু ট্র্যাকার ডকুমেন্টেশন দেখুন।
পরিধান-কেন্দ্র
সংস্করণ ১.১
সংস্করণ ১.১.০
০৩ জুন, ২০২৬
androidx.wear:wear-core:1.1.0 প্রকাশিত হয়েছে। সংস্করণ 1.1.0-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
1.1.0-এর প্রধান বৈশিষ্ট্য: * SDK 37-এর সাথে API সামঞ্জস্যতা যাচাই করার জন্য WearApiVersionHelper এ CINNAMON_BUN যোগ করা হয়েছে।
সংস্করণ 1.1.0-rc01
১৯ মে, ২০২৬
পূর্ববর্তী রিলিজ থেকে কোনো পরিবর্তন ছাড়াই androidx.wear:wear-core:1.1.0-rc01 প্রকাশ করা হয়েছে। সংস্করণ 1.1.0-rc01-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
সংস্করণ 1.1.0-beta01
০৬ মে, ২০২৬
androidx.wear:wear-core:1.1.0-beta01 প্রকাশিত হয়েছে। সংস্করণ 1.1.0-beta01-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
এপিআই পরিবর্তন
- SDK 37-এর সাথে API সামঞ্জস্যতা যাচাই করার জন্য
WearApiVersionHelperএCINNAMON_BUNযোগ করা হয়েছে।
সংস্করণ 1.1.0-alpha02
০৮ এপ্রিল, ২০২৬
androidx.wear:wear-core:1.1.0-alpha02 প্রকাশিত হয়েছে। সংস্করণ 1.1.0-alpha02-এ এই কমিটগুলো রয়েছে।
নতুন বৈশিষ্ট্য
-
WearApiVersionHelperজন্য নতুনVersionCodesযোগ করুন ( I86bc1 , b/487264133 )
সংস্করণ 1.1.0-alpha-01
২৫ মার্চ, ২০২৬
androidx.wear:wear-core:1.1.0-alpha-01 প্রকাশিত হয়েছে। সংস্করণ 1.1.0-alpha-01-এ এই কমিটগুলো রয়েছে।
এপিআই পরিবর্তন
-
WearApiVersionHelperএCINNAMON_BUN(SDK 37) যোগ করা হয়েছে। ( Id1ee0 , b/487264133 )
সংস্করণ ১.০
সংস্করণ ১.০.০
১৭ ডিসেম্বর, ২০২৫
androidx.wear:wear-core:1.0.0 প্রকাশিত হয়েছে। সংস্করণ 1.0.0-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
১.০.০ এর প্রধান বৈশিষ্ট্যসমূহ:
- Wear-এ রানটাইম এপিআই সামঞ্জস্যতা যাচাইয়ে সহায়তা করার জন্য
WearApiVersionHelperযোগ করা হয়েছে। ক্লায়েন্টরা এই স্ট্যাটিক হেল্পার ক্লাস এবং প্রদত্ত মেথড(#isApiVersionAtLeast(VERSION))ব্যবহার করে সামঞ্জস্যতা যাচাই করতে পারেন।
সংস্করণ 1.0.0-rc01
০৮ অক্টোবর, ২০২৫
androidx.wear:wear-core:1.0.0-rc01 কোনো পরিবর্তন ছাড়াই প্রকাশ করা হয়েছে। সংস্করণ 1.0.0-rc01-এ এই কমিটগুলো রয়েছে।
সংস্করণ 1.0.0-beta02
১০ সেপ্টেম্বর, ২০২৫
androidx.wear:wear-core:1.0.0-beta02 প্রকাশিত হয়েছে। সংস্করণ 1.0.0-beta02-এ এই কমিটগুলো রয়েছে।
বাগ সংশোধন
- নতুন এপিআই পরীক্ষা করার সময় পুরোনো ডিভাইসগুলিতে
WearApiVersionHelperত্রুটি প্রতিরোধ করুন।
সংস্করণ 1.0.0-beta01
৩০ জুলাই, ২০২৫
শেষ আলফার পর থেকে কোনো উল্লেখযোগ্য পরিবর্তন ছাড়াই androidx.wear:wear-core:1.0.0-beta01 প্রকাশ করা হয়েছে। সংস্করণ 1.0.0-beta01-এ এই কমিটগুলো রয়েছে।
সংস্করণ 1.0.0-alpha02
১৬ জুলাই, ২০২৫
androidx.wear:wear-core:1.0.0-alpha02 প্রকাশিত হয়েছে। সংস্করণ 1.0.0-alpha02-এ এই কমিটগুলো রয়েছে।
এপিআই পরিবর্তন
- VIC/Baklava অন্তর্ভুক্ত করার জন্য
WearApiVersionHelperআপডেট করা হয়েছে ( I4676d )
বাগ সংশোধন
- এই লাইব্রেরিটি এখন JSpecify নালনেস অ্যানোটেশন ব্যবহার করে, যা টাইপ-ইউজ। সঠিক ব্যবহার নিশ্চিত করতে কোটলিন ডেভেলপারদের নিম্নলিখিত কম্পাইলার আর্গুমেন্টগুলো ব্যবহার করা উচিত:
-Xjspecify-annotations=strict,-Xtype-enhancement-improvements-strict-mode( Icbfb9 , b/326456246 )
সংস্করণ 1.0.0-alpha01
২৯ মে, ২০২৪
androidx.wear:wear-core:1.0.0-alpha01 প্রকাশিত হয়েছে। সংস্করণ 1.0.0-alpha01-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
এপিআই পরিবর্তন
- Wear-এ রানটাইম এপিআই সামঞ্জস্যতা যাচাইয়ে সহায়তা করার জন্য
WearApiVersionhelperএকটি নতুন ক্লাস যোগ করা হয়েছে। ক্লায়েন্টরা এই স্ট্যাটিক হেল্পার ক্লাস এবং প্রদত্ত মেথডটি (#isApiVersionAtLeast(VERSION)) ব্যবহার করে সামঞ্জস্যতা যাচাই করতে পারবে।
পরিধান করুন
সংস্করণ ১.৪
সংস্করণ ১.৪.০
২৫শে ফেব্রুয়ারি, ২০২৬
androidx.wear:wear:1.4.0 প্রকাশিত হয়েছে। সংস্করণ 1.4.0-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
১.৩.০ সংস্করণ থেকে গুরুত্বপূর্ণ পরিবর্তনসমূহ:
- কোনো বার্তা না থাকলে
ConfirmationOverlayআইকনটিকে উল্লম্বভাবে কেন্দ্রে আনার বাগ সংশোধন। I496d8
সংস্করণ 1.4.0-rc01
২৮ জানুয়ারী, ২০২৬
androidx.wear:wear:1.4.0-rc01 প্রকাশিত হয়েছে। সংস্করণ 1.4.0-rc01-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
- beta01 এবং rc01-এর মধ্যে কোনো নতুন পরিবর্তন নেই।
সংস্করণ 1.4.0-beta01
১৭ ডিসেম্বর, ২০২৫
androidx.wear:wear:1.4.0-beta01 প্রকাশিত হয়েছে। সংস্করণ 1.4.0-beta01-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
- পূর্ববর্তী আলফা রিলিজের পর থেকে কোনো উল্লেখযোগ্য নতুন পরিবর্তন নেই।
সংস্করণ 1.4.0-alpha02
১৬ জুলাই, ২০২৫
androidx.wear:wear:1.4.0-alpha02 প্রকাশিত হয়েছে। সংস্করণ 1.4.0-alpha02-এ এই কমিটগুলো রয়েছে।
বাগ সংশোধন
- এই লাইব্রেরিটি এখন JSpecify নালনেস অ্যানোটেশন ব্যবহার করে, যা টাইপ-ইউজ। সঠিক ব্যবহার নিশ্চিত করতে কোটলিন ডেভেলপারদের নিম্নলিখিত কম্পাইলার আর্গুমেন্টগুলো ব্যবহার করা উচিত:
-Xjspecify-annotations=strict,-Xtype-enhancement-improvements-strict-mode( If4b1a , b/326456246 )
সংস্করণ 1.4.0-alpha01
১৫ নভেম্বর, ২০২৩
androidx.wear:wear:1.4.0-alpha01 প্রকাশিত হয়েছে। সংস্করণ 1.4.0-alpha01-এ এই কমিটগুলো রয়েছে।
বাগ সংশোধন
- যখন কোনো বার্তা থাকে না, তখন
ConfirmationOverlayআইকনটিকে উল্লম্বভাবে কেন্দ্রে আনুন। ( I496d8 )
সংস্করণ ১.৩
সংস্করণ ১.৩.০
৯ আগস্ট, ২০২৩
androidx.wear:wear:1.3.0 1.3.0-rc01 এর পর থেকে কোনো পরিবর্তন ছাড়াই প্রকাশ করা হয়েছে। সংস্করণ 1.3.0-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
১.২.০ সংস্করণ থেকে গুরুত্বপূর্ণ পরিবর্তনসমূহ
-
AmbientModeSupportLifecycleObserverব্যবহার করার জন্য মাইগ্রেট করুন। নতুন লাইফসাইকেল-সচেতন ক্লাসগুলির প্রচলনের জন্যAmbientModeSupportঅপ্রচলিত ঘোষণা করুন। - নতুন আইকন/লেআউট, ফন্ট এবং ফন্ট মেট্রিক্স দিয়ে
ConfirmationOverlayআপডেট করুন -
FragmentContainerViewব্যবহার করার সময় হওয়া ত্রুটি সংশোধনের জন্য,SwipeDismissTransitionHelperদ্বিতীয়Viewএর পরিবর্তে একটি ব্যাকগ্রাউন্ড ড্রয়েবল ব্যবহার করার জন্য আপডেট করা হয়েছে। - Wear প্ল্যাটফর্ম এবং Wear Compose-এর বাস্তবায়নের সাথে সামঞ্জস্যপূর্ণ করার জন্য
SwipeDismissFrameLayoutঅ্যানিমেশনটি আপডেট করা হয়েছে। - ভার্টিকাল ফ্লিং-এর মাধ্যমে ফ্র্যাগমেন্টগুলির ভুলবশত ডিসমিস হওয়া এড়ানোর জন্য
SwipeDismissFrameLayoutবাগটির সমাধান করা হয়েছে। -
ArcLayoutএখন এক্সপ্যানশন ওয়েট সমর্থন করে, যা সাধারণ লেআউট ওয়েটের মতোই কাজ করে। -
ArcLayoutএlayoutDirectionসমর্থন করুন
সংস্করণ 1.3.0-rc01
২১ জুন, ২০২৩
androidx.wear:wear:1.3.0-rc01 1.3.0-beta01 পর থেকে কোনো পরিবর্তন ছাড়াই প্রকাশ করা হয়েছে। সংস্করণ 1.3.0-rc01-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
সংস্করণ 1.3.0-beta01
৭ জুন, ২০২৩
androidx.wear:wear:1.3.0-beta01 প্রকাশিত হয়েছে। সংস্করণ 1.3.0-beta01-এ এই কমিটগুলো রয়েছে।
এপিআই পরিবর্তন
- মতামতের পর
AmbientLifecycleObserverআপডেট করা হয়েছে।AmbientLifecycleObserverInterfaceনাম পরিবর্তন করেAmbientLifecycleObserverরাখা হয়েছে, এবংAmbientLifecycleObserver(...)কল করে এর একটি ইনস্ট্যান্স পাওয়া যাবে।isAmbientএখন একটি মেথডের পরিবর্তে একটি ফিল্ড হিসেবে স্থানান্তর করা হয়েছে। ( I84b4f )
বাগ সংশোধন
-
SwipeToDismissএ আলফা এবং অনুবাদ রিসেট করার সময় প্যারেন্ট ভিউ নাল (null) হলে, সেই পরিস্থিতি সামাল দেওয়ার জন্য নাল চেক যোগ করা হয়েছে। ( Ib0ec7 )
সংস্করণ 1.3.0-alpha05
১৯ এপ্রিল, ২০২৩
androidx.wear:wear:1.3.0-alpha05 প্রকাশিত হয়েছে। সংস্করণ 1.3.0-alpha05-এ এই কমিটগুলো রয়েছে।
এপিআই পরিবর্তন
-
AmbientModeSupportLifecycleObserverব্যবহার করার জন্য মাইগ্রেট করুন। নতুন লাইফসাইকেল-সচেতন ক্লাসগুলির পক্ষেAmbientModeSupportঅপ্রচলিত ঘোষণা করুন। ( I1593b )
বাগ সংশোধন
-
FragmentContainerViewব্যবহার করার সময় ত্রুটিগুলি সমাধান করার জন্য,SwipeDismissTransitionHelperব্যাকগ্রাউন্ড স্ক্রিম পদ্ধতিটি ভিউ যোগ করার পরিবর্তে ড্রয়েবল ব্যবহার করার জন্য আপডেট করুন। ( I851cd )
সংস্করণ 1.3.0-alpha04
২৫শে জানুয়ারী, ২০২৩
androidx.wear:wear:1.3.0-alpha04 প্রকাশিত হয়েছে। সংস্করণ 1.3.0-alpha04-এ এই কমিটগুলো রয়েছে।
বাগ সংশোধন
- Wear প্ল্যাটফর্ম এবং Wear Compose-এর বাস্তবায়নের সাথে সামঞ্জস্যপূর্ণ করার জন্য আমরা
SwipeDismissFrameLayoutএর অ্যানিমেশন আপডেট করেছি। ( I7261b )
সংস্করণ 1.3.0-alpha03
২৪ আগস্ট, ২০২২
androidx.wear:wear:1.3.0-alpha03 প্রকাশিত হয়েছে। সংস্করণ 1.3.0-alpha03-এ এই কমিটগুলো রয়েছে।
নতুন বৈশিষ্ট্য
-
ArcLayoutএখন এক্সপ্যানশন ওয়েট সাপোর্ট করে, যা সাধারণ লেআউট ওয়েটের মতোই কাজ করে। এর মানে হলো, আপনি চাইল্ড এলিমেন্টগুলোর কোণ সরাসরি গণনা না করেই তাদের আপেক্ষিক আকার নির্দিষ্ট করতে পারবেন। আমরা একটি বেস্ট এফোর্টMaxAngleDegreesযুক্ত করেছি, যা ওয়েটযুক্ত চাইল্ড এলিমেন্টগুলো এক্সপ্যান্ড করার সময়ও কার্যকর থাকে। উদাহরণস্বরূপ, আপনি ওয়েটসহ একাধিক চাইল্ড এলিমেন্টযুক্ত একটি আর্ককে ৯০ ডিগ্রিতে ক্ল্যাম্প করতে পারেন; এটি এক্সপ্যান্ড না হওয়া এলিমেন্টগুলোর জায়গাও মেনে চলবে।
এপিআই পরিবর্তন
- আমরা
ArcLayout.LayoutParamsএ 'weight' যুক্ত করেছি, যা একটি উইজেটকে উপলব্ধ স্থান পূরণ করার জন্য প্রসারিত হতে দেয়। যদি একাধিক উইজেট থাকে, তবে উপলব্ধ স্থানে তাদের অংশ তাদের 'weight'-এর সমানুপাতিক হবে। এছাড়াও, আমরাArcLayout.setMaxAngleDegreesযুক্ত করেছি, যাতে আপনি উদাহরণস্বরূপ প্রসারণকে ৯০ ডিগ্রিতে সীমাবদ্ধ করতে পারেন (উল্লেখ্য, এটি কোনো নির্দিষ্ট আকারের চাইল্ড উইজেটের লেআউটকে প্রভাবিত করে না)। সবশেষে,ArcLayout.WidgetএখনsetSweepAngleDegreesরয়েছে, যাArcLayoutএকটি অশূন্য 'weight' যুক্ত উইজেটকে তার আকার সম্পর্কে জানাতে সাহায্য করে। ( I75f24 ) -
setColorFilterএর নালযোগ্যতা আপডেট করা হয়েছে ( I99ddf , b/236498063 )
সংস্করণ 1.3.0-alpha02
২৩শে ফেব্রুয়ারি, ২০২২
androidx.wear:wear:1.3.0-alpha02 প্রকাশিত হয়েছে। সংস্করণ 1.3.0-alpha02-এ এই কমিটগুলো রয়েছে।
নতুন বৈশিষ্ট্য
-
ArcLayout( I14d49 ) -এlayoutDirectionসমর্থন করুন - ConfirmationOverlay ( I0fdf8 ) এর জন্য উন্নত কন্টেন্ট বিবরণ বার্তা
- নতুন আইকন/লেআউট দিয়ে
ConfirmationOverlayআপডেট করুন। ( If5b54 )
বাগ সংশোধন
- পরিবেশ-সম্পর্কিত কোড ( Idaa10 ) সংরক্ষিত রাখা নিশ্চিত করতে ProGuard নিয়ম যোগ করা হয়েছে।
- একটি ভার্টিকাল ফ্লিং ( Idb6d8 ) ব্যবহার করে SwipeDismissFrameLayout-এ ফ্র্যাগমেন্টগুলির ভুলবশত ডিসমিস হওয়া এড়ান।
- যখন ConfirmationOverlay-তে কোনো বার্তা থাকে না তখন এটি ঠিক করুন ( I63e6f )
বাহ্যিক অবদান
- দে গিউ লি (স্যামসাং) - একটি ভার্টিকাল ফ্লিং ব্যবহার করে SwipeDismissFrameLayout-এ ফ্র্যাগমেন্টগুলির দুর্ঘটনাজনিত ডিসমিস হওয়া এড়ান ( Idb6d8 )
সংস্করণ 1.3.0-alpha01
২৯ সেপ্টেম্বর, ২০২১
androidx.wear:wear:1.3.0-alpha01 প্রকাশিত হয়েছে। সংস্করণ 1.3.0-alpha01-এ এই কমিটগুলো রয়েছে।
বাগ সংশোধন
-
ConfirmationOverlayএখন দীর্ঘ বার্তা প্রদর্শনের জন্য আইকনটিকে উপরে ঠেলে দেয়, ফলে বার্তাটি ডিভাইসের বেজেলে প্রবেশ করে না (বা স্ক্রিনের বাইরে চলে যায় না)। ( I54bff )
সংস্করণ ১.২
সংস্করণ ১.২.০
১৫ সেপ্টেম্বর, ২০২১
androidx.wear:wear:1.2.0 প্রকাশিত হয়েছে। সংস্করণ 1.2.0-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
১.১.০ সংস্করণ থেকে গুরুত্বপূর্ণ পরিবর্তনসমূহ
ভিউতে অঙ্কিত করা যায় এমন বৃহত্তম বৃত্তের বক্রতা অনুসরণ করে সহজে বক্র টেক্সট লেখার জন্য CurvedText কম্পোনেন্ট যোগ করা হয়েছে। ব্যবহারের একটি উদাহরণ:
<androidx.wear.widget.CurvedText android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="example curved text" app:anchorAngleDegrees="180" app:anchorPosition="center" app:clockwise="false" style="@android:style/TextAppearance.Large" />
এর চাইল্ড এলিমেন্টগুলোকে ঘড়ির কাঁটার দিকে বা ঘড়ির কাঁটার বিপরীত দিকে একটি বৃত্তচাপ বরাবর এক এক করে সাজানোর জন্য ArcLayout কন্টেইনার যোগ করা হয়েছে। এর চাইল্ডগুলো সাধারণ অ্যান্ড্রয়েড উইজেট অথবা
ArcLayout.Widgetইন্টারফেস ইমপ্লিমেন্ট করা "বাঁকানো" উইজেট উভয়ই হতে পারে। ( I536da ) ব্যবহারের একটি উদাহরণ:<androidx.wear.widget.ArcLayout android:layout_width="match_parent" android:layout_height="match_parent" app:anchorPosition="center"> <ImageView android:layout_width="20dp" android:layout_height="20dp" android:src="@drawable/ic_launcher" /> <androidx.wear.widget.CurvedText android:layout_width="match_parent" android:layout_height="match_parent" android:text="Curved Text" style="@android:style/TextAppearance.Small" android:padding="2dp" /> </androidx.wear.widget.WearArcLayout>
একটি নতুন লেআউট কন্টেইনার, DismissibleFrameLayout, যোগ করা হয়েছে, যা ব্যাক-বাটন-ডিসমিস এবং/অথবা সোয়াইপ-টু-ডিসমিস পরিচালনা করে এবং এটি একটি অ্যাক্টিভিটির মধ্যে ব্যবহারের জন্য তৈরি। ডিসমিস অ্যাকশন কার্যকর করার জন্য অন্তত একটি লিসেনার যোগ করতে হবে। একটি লিসেনার সাধারণত বর্তমান অ্যাক্টিভিটি থেকে একটি কন্টেইনিং ভিউ বা একটি ফ্র্যাগমেন্ট সরিয়ে দেয়। এই ফিচারগুলোর উপর সরাসরি নিয়ন্ত্রণের জন্য setSwipeDismissible(boolean) এবং setBackButtonDismissible(boolean) প্রদান করা হয়েছে। এই নতুন লেআউটটি বিদ্যমান SwipeDismissFrameLayout-কে প্রতিস্থাপন করার জন্য তৈরি।
AmbientModeSupport ক্লাসে এই বৈশিষ্ট্যটি যোগ করা হয়েছে যে, ডিভাইস অ্যাম্বিয়েন্ট মোড থেকে বেরিয়ে গেলে কোনো অ্যাক্টিভিটি “স্বয়ংক্রিয়ভাবে পুনরায় চালু” হতে পারবে। এই কার্যকারিতাটি পূর্বে WearableSupportLibrary-এর অপ্রচলিত WearableActivity ক্লাসে উপলব্ধ ছিল। ( I336ab )
Wearable Support Library থেকে WearableCalendarContract ক্লাসটি স্থানান্তরিত করা হয়েছে। এই API-টি CalendarContract- এর মাধ্যমে উপলব্ধ ডেটার একটি উপসেট প্রদান করে, কিন্তু এটি পরিধানযোগ্য ডিভাইসগুলির সাথে স্বয়ংক্রিয়ভাবে সিঙ্ক হয়ে যায়। ( I6f2d7 )
প্রদত্ত ওয়্যার ডিভাইসটি চীনের কিনা তা নির্ধারণ করার জন্য
androidx.wear.utilsএWearTypeHelperনামে একটি নতুন API যোগ করা হয়েছে। ( Ib01a9 )androidx.wear.widget.ConfirmationOverlayতে অ্যাক্সেসিবিলিটি বৈশিষ্ট্য যোগ করা হয়েছে, যা সেট করা হলে অ্যানিমেশন বর্ণনাসহ বার্তাগুলো পড়ে শোনাবে। ( I524dd )বার্তা প্রদান না করা হলে ConfirmationActivity ক্র্যাশ করার বাগটি সংশোধন করা হয়েছে। ( Ie6055 )
একটি বাগ সংশোধন করা হয়েছে যেখানে হরাইজন্টালি স্ক্রলিং RecyclerView-এর কারণে সমস্ত ইন্টারঅ্যাকশনে
WearableDrawerLayoutউঁকি দিত। ( I24c7f )
সংস্করণ 1.2.0-rc01
১ সেপ্টেম্বর, ২০২১
শেষ বিটার পর থেকে কোনো পরিবর্তন ছাড়াই androidx.wear:wear:1.2.0-rc01 প্রকাশ করা হয়েছে। সংস্করণ 1.2.0-rc01-এ এই কমিটগুলো রয়েছে।
সংস্করণ 1.2.0-beta01
১৮ আগস্ট, ২০২১
androidx.wear:wear:1.2.0-beta01 প্রকাশিত হয়েছে। সংস্করণ 1.2.0-beta01-এ এই কমিটগুলো রয়েছে।
বাগ সংশোধন
- বার্তা প্রদান না করা হলে ConfirmationActivity ক্র্যাশ করার বাগটি সংশোধন করা হয়েছে। ( Ie6055 )
সংস্করণ ১.২.০-আলফা১৩
৪ আগস্ট, ২০২১
androidx.wear:wear:1.2.0-alpha13 প্রকাশিত হয়েছে। সংস্করণ 1.2.0-alpha13-এ এই কমিটগুলো রয়েছে।
এপিআই পরিবর্তন
-
WearTypeHelper.isChinaDeviceনাম পরিবর্তন করেWearTypeHelper.isChinaBuildরাখা হয়েছে। ( I47302 )
বাগ সংশোধন
- আমরা
androidx.wear.widget.ConfirmationOverlayতে অ্যাক্সেসিবিলিটি বৈশিষ্ট্য যুক্ত করেছি যা সেট করা থাকলে বার্তাগুলি পড়ে শোনাবে এবং তারপরে অ্যানিমেশন বর্ণনা দেবে। ( I524dd )
সংস্করণ ১.২.০-আলফা১২
২১ জুলাই, ২০২১
androidx.wear:wear:1.2.0-alpha12 প্রকাশিত হয়েছে। সংস্করণ 1.2.0-alpha12-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
এপিআই পরিবর্তন
- প্রদত্ত ওয়্যার ডিভাইসটি চীনের কিনা তা নির্ধারণ করার জন্য আমরা
androidx.wear.utilsএWearTypeHelperএকটি নতুন API যুক্ত করেছি। ( Ib01a9 )
সংস্করণ ১.২.০-আলফা১১
৩০ জুন, ২০২১
androidx.wear:wear:1.2.0-alpha11 প্রকাশিত হয়েছে। সংস্করণ 1.2.0-alpha11-এ এই কমিটগুলো রয়েছে।
বাগ সংশোধন
- একটি বাগ সংশোধন করা হয়েছে যেখানে হরাইজন্টালি স্ক্রলিং RecyclerView-এর কারণে সমস্ত ইন্টারঅ্যাকশনে
WearableDrawerLayoutউঁকি দিত। ( I24c7f )
সংস্করণ ১.২.০-আলফা১০
২ জুন, ২০২১
androidx.wear:wear:1.2.0-alpha10 প্রকাশিত হয়েছে। সংস্করণ 1.2.0-alpha10-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
নতুন বৈশিষ্ট্য
- Alpha10 কার্ভড টেক্সট এবং আর্কলেআউটগুলিতে অ্যাক্সেসিবিলিটি সাপোর্ট উন্নত করে। এটি API-কে আরও স্পষ্ট করার জন্য DismissibleFrameLayout-এর কিছু ছোটখাটো নামকরণের পরিবর্তনও যোগ করে।
এপিআই পরিবর্তন
- আমরা
DismissibleFrameLayout( Ib195e )-এ নিম্নলিখিত মেথডগুলির নাম পরিবর্তন করেছি:-
Callback#onDismissed->Callback#onDismissedFinished -
isSwipeDismissible->isDismissableBySwipe -
isBackButtonDismissible->isDismissableByBackButton
-
- আমরা নিম্নলিখিত পদ্ধতিগুলিকে চূড়ান্ত করেছি ( Ib195e ):
-
setBackButtonDismissible -
setSwipeDismissible -
registerCallback -
unregisterCallback
-
বাগ সংশোধন
- Talkback-এ CurvedTextView-এর বিষয়বস্তু ব্যবহার করুন। ( I05798 )
- ArcLayout-এর সাধারণ ভিউগুলির জন্য উন্নততর অ্যাক্সেসযোগ্যতা। ( I4418d )
সংস্করণ ১.২.০-আলফা০৯
১৮ মে, ২০২১
androidx.wear:wear:1.2.0-alpha09 প্রকাশিত হয়েছে। সংস্করণ 1.2.0-alpha09-এ এই কমিটগুলো রয়েছে।
এপিআই পরিবর্তন
- টেক্সটের টাইপফেস এবং বোল্ড/ইটালিক স্টাইল সেট করার জন্য
CurvedTextView.setTypeface()(TextViewএর অনুরূপ) নামে একটি নতুন ফাংশন যোগ করা হয়েছে। ( I4653c ) -
WearArcLayoutকেArcLayout,WearCurvedTextকেCurvedTextএবংWearArcLayout.ArcLayoutWidgetকেArcLayout.Widgetএ পুনঃনামকরণ করা হয়েছে। ( I6e5ce )-
ArcLayout.WidgetএgetThicknessPxনাম পরিবর্তন করেgetThicknessরাখা হয়েছে। -
ArcLayout.LayoutParamsএর ভার্টিকাল অ্যালাইনমেন্ট কনস্ট্যান্টগুলোর নাম এখন থেকেVERTICAL_ALIGN_দিয়ে শুরু হবে (আগেরVALIGN_পরিবর্তে)।
-
-
CurvedTextViewতে,setMinSweepDegreesএবংsetMaxSweepDegreesমেথডগুলোকেsetSweepRangeDegrees( I7a9d9 ) দ্বারা প্রতিস্থাপন করা হয়েছে।
সংস্করণ 1.2.0-alpha08
৫ মে, ২০২১
androidx.wear:wear:1.2.0-alpha08 প্রকাশিত হয়েছে। সংস্করণ 1.2.0-alpha08-এ এই কমিটগুলো রয়েছে।
এপিআই পরিবর্তন
- কোডের স্বচ্ছতা বাড়ানোর জন্য, আমরা কিছু অ্যাঙ্গেল প্যারামিটার এবং রিটার্ন টাইপে
@FloatRangeঅ্যানোটেশন যুক্ত করেছি। ( I430dd ) -
WearArcLayout.ArcLayoutWidgetইন্টারফেসে,insideClickAreaমেথডটির নাম এখন isPointInsideClickArea রাখা হয়েছে। ( Ia7307 )
সংস্করণ ১.২.০-আলফা০৭
২৪ মার্চ, ২০২১
androidx.wear:wear:1.2.0-alpha07 প্রকাশিত হয়েছে। সংস্করণ 1.2.0-alpha07-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
বাগ সংশোধন
- প্রস্থের চেয়ে উচ্চতা বেশি এমন স্ক্রিন সাইজ ব্যবহারের কারণে WearArcLayout-এর ভিতরে থাকা অ-বক্র চাইল্ডগুলোর ত্রুটি সংশোধন করা হয়েছে। এই অ-বক্র চাইল্ডগুলো এখন সব ধরনের স্ক্রিনে একটি আর্কের ভিতরে সঠিকভাবে স্থাপন করা হয়।
সংস্করণ ১.২.০-আলফা০৬
২৭ জানুয়ারী, ২০২১
androidx.wear:wear:1.2.0-alpha06 প্রকাশিত হয়েছে। সংস্করণ 1.2.0-alpha06-এ এই কমিটগুলো রয়েছে।
এপিআই পরিবর্তন
- Ongoing Activities লাইব্রেরিটিকে একটি নতুন সাব-লাইব্রেরিতে স্থানান্তর করা হয়েছে: wear-ongoing। ক্লাসগুলো এখন androidx.wear.ongoing প্যাকেজে থাকবে (পূর্বে ছিল androidx.wear.ongoingactivities) ( I7c029 )
- Wearable Support Library থেকে WearableCalendarContract ক্লাসটি AndroidX-এ স্থানান্তর করুন। এই API-টি CalendarContract- এর মাধ্যমে উপলব্ধ ডেটার একটি উপসেট প্রদান করে, কিন্তু এটি পরিধানযোগ্য ডিভাইসগুলিতে স্বয়ংক্রিয়ভাবে সিঙ্ক হয়। ( I6f2d7 )
বাগ সংশোধন
- Dismissible FrameLayout-এ ব্যাক বাটন ডিসমিস ফিচারটি ডিফল্টরূপে নিষ্ক্রিয় করুন, যেহেতু Wearable ডিভাইসগুলিতে ( Ic24e3 ) ফুল স্ক্রিন পিছনে যাওয়ার প্রধান উপায় হিসেবে সোয়াইপ-টু-ডিসমিসই রয়ে গেছে।
- WearArcLayout ( Icf912 )-এর চাইল্ড ভিজিবিলিটি হ্যান্ডলিং সংক্রান্ত কিছু সমস্যা সমাধান করা হয়েছে।
সংস্করণ ১.২.০-আলফা০৫
১৩ জানুয়ারী, ২০২১
androidx.wear:wear:1.2.0-alpha05 প্রকাশিত হয়েছে। সংস্করণ 1.2.0-alpha05-এ এই কমিটগুলো রয়েছে।
বাগ সংশোধন
- এই ক্লাসের সাধারণ ব্যবহার আরও ভালোভাবে দেখানোর জন্য, AmbientModeSupport ক্লাসের javadoc আপডেট করে নমুনা কোড যুক্ত করুন।
সংস্করণ 1.2.0-alpha04
১৬ ডিসেম্বর, ২০২০
androidx.wear:wear:1.2.0-alpha04 প্রকাশিত হয়েছে। সংস্করণ 1.2.0-alpha04-এ এই কমিটগুলো রয়েছে।
এপিআই পরিবর্তন
- AmbientModeSupport ক্লাসে এই বৈশিষ্ট্যটি যোগ করা হয়েছে যে, ডিভাইস অ্যাম্বিয়েন্ট মোড থেকে বেরিয়ে গেলে কোনো অ্যাক্টিভিটি “স্বয়ংক্রিয়ভাবে পুনরায় চালু” হতে পারবে। এই কার্যকারিতাটি পূর্বে WearableSupportLibrary-এর অপ্রচলিত WearableActivity ক্লাসে উপলব্ধ ছিল। ( I336ab )
- চলমান কার্যকলাপ
- এখন OngoingActivity তৈরি করার সময় ক্যাটাগরি সেট করা যাবে, যেমন
OngoingActivitiy.Builder.getCategory(String) - OngoingActivityData-তে এখন OngoingActivity-টি কখন তৈরি হয়েছিল তার একটি টাইমস্ট্যাম্প রয়েছে -
OngoingActivityData.getTimestamp() - ( I91cb4 )
- এখন OngoingActivity তৈরি করার সময় ক্যাটাগরি সেট করা যাবে, যেমন
- WearArcLayout-এর চাইল্ডদের মার্জিন সেট করার জন্য লেআউট প্যারামিটার পরিবর্তন করে MarginLayoutParams-কে এক্সটেন্ড করার সুবিধা যোগ করা হয়েছে, অর্থাৎ WearArcLayout.LayoutParams extends android.view.ViewGroup.MarginLayoutParams। ( I2cd88 )
- WearCurvedTextView-এর অ্যাঙ্কর টাইপ ডিফল্টভাবে
WearArcLayout.ANCHOR_CENTERএ পরিবর্তন করুন (আগে ছিলWearArcLayout.ANCHOR_START)। এটি আর্ক লেআউট এবং কার্ভড টেক্সটের মধ্যে সংযোগকে সহজ করে, কারণ কার্ভড টেক্সট ডিফল্টভাবে উপরে x-কেন্দ্রীয়ভাবে নিজেকে অঙ্কন করে, এবং প্যারেন্ট আর্ক লেআউট এটিকে প্রয়োজন অনুযায়ী ঘোরাতে পারে। ( I105ff )
সংস্করণ 1.2.0-alpha03
২ ডিসেম্বর, ২০২০
androidx.wear:wear:1.2.0-alpha03 প্রকাশিত হয়েছে। সংস্করণ 1.2.0-alpha03-এ এই কমিটগুলো রয়েছে।
নতুন বৈশিষ্ট্য
একটি নতুন লেআউট কন্টেইনার DismissibleFrameLayout, যা একটি অ্যাক্টিভিটির মধ্যে ব্যবহারের জন্য তৈরি এবং ব্যাক-বাটন-ডিসমিস এবং/অথবা সোয়াইপ-টু-ডিসমিস পরিচালনা করে। ডিসমিস অ্যাকশন কার্যকর করার জন্য অন্তত একটি লিসেনার যোগ করতে হবে। একটি লিসেনার সাধারণত বর্তমান অ্যাক্টিভিটি থেকে একটি কন্টেইনিং ভিউ বা একটি ফ্র্যাগমেন্ট সরিয়ে দেয়। এই ফিচারগুলোর উপর সরাসরি নিয়ন্ত্রণের জন্য setSwipeDismissible(boolean) এবং setBackButtonDismissible(boolean) প্রদান করা হয়েছে। এই নতুন লেআউটটি বিদ্যমান SwipeDismissFrameLayout-কে প্রতিস্থাপন করার জন্য তৈরি।
কার্ভড উইজেটগুলো এখন টাচ ইভেন্ট হ্যান্ডেল করতে পারে। একটি WearArcLayout-এর ভেতরের সাধারণ উইজেটগুলো তাদের কোঅর্ডিনেট স্পেসে ম্যাপ করা সমস্ত টাচ ইভেন্ট গ্রহণ করবে। WearCurvedTextView (WearArcLayout-এর ভেতরে থাকুক বা না থাকুক) onClick এবং onLongClick হ্যান্ডলার সেট করতে পারে।
চলমান অ্যাক্টিভিটি ক্লাসগুলো এখন কাস্টম সিরিয়ালাইজেশন/ডিসেরিয়ালাইজেশনের পরিবর্তে ভার্সনড পার্সেলেবল (VersionedParcelables) হিসেবে ব্যবহৃত হবে। স্ট্যাটিক আইকন এবং টাচ ইন্টেন্ট এখন বাধ্যতামূলক।
এপিআই পরিবর্তন
- WearCurvedTextView উইজেটটির লেআউটকে আরও নমনীয় করার জন্য এর 'sweepDegrees' অ্যাট্রিবিউটটিকে minSweepDegrees এবং maxSweepDegrees-এ বিভক্ত করা হয়েছে।
সংস্করণ 1.2.0-alpha02
১১ নভেম্বর, ২০২০
androidx.wear:wear:1.2.0-alpha02 প্রকাশিত হয়েছে। সংস্করণ 1.2.0-alpha02-এ এই কমিটগুলো রয়েছে।
এই রিলিজে প্রথমবারের মতো একটি নতুন “অনগোয়িং অ্যাক্টিভিটিজ এপিআই” যুক্ত করা হয়েছে। ডেভেলপাররা এই এপিআই ব্যবহার করে কোনো দীর্ঘস্থায়ী কার্যকলাপ, যেমন ফিটনেস অনুশীলন বা মিডিয়া প্লেব্যাক সেশন চালু আছে কিনা তা সংকেত দিতে পারবেন। এটি ডেভেলপারদের ওয়াচ ফেসে বা অ্যাপ লঞ্চারে প্রদর্শনের জন্য “অতিক্রান্ত দূরত্ব ও সময়” বা “বর্তমানে কোন ট্র্যাক চলছে”-এর মতো পর্যায়ক্রমিক স্ট্যাটাস আপডেট প্রদান করার সুযোগ দেয়। এই কার্যকারিতাটি ভবিষ্যতের সেইসব ডিভাইসের জন্য তৈরি করা হয়েছে, যেগুলিতে অন-গোয়িং অ্যাক্টিভিটি কার্যকারিতা সক্রিয় থাকবে।
এপিআই পরিবর্তন
- চলমান কার্যকলাপের জন্য নতুন এপিআই, এটি 'অসমর্থিত ডিভাইস'-এ কোনো কাজ করে না। ( I69a31 )
সংস্করণ 1.2.0-alpha01
২৮ অক্টোবর, ২০২০
androidx.wear:wear:1.2.0-alpha01 প্রকাশিত হয়েছে। সংস্করণ 1.2.0-alpha01-এ এই কমিটগুলো রয়েছে।
নতুন বৈশিষ্ট্য
- ভিউ-এর মধ্যে অঙ্কনযোগ্য বৃহত্তম বৃত্তের বক্রতা অনুসরণ করে সহজে বক্র টেক্সট লেখার জন্য WearCurvedTextView কম্পোনেন্টটি যোগ করা হয়েছে। ব্যবহারের একটি উদাহরণ:
<androidx.wear.widget.WearCurvedTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="example curved text"
app:anchorAngleDegrees="180"
app:anchorPosition="center"
app:clockwise="false"
style="@android:style/TextAppearance.Large"
/>

- এর চাইল্ড এলিমেন্টগুলোকে ঘড়ির কাঁটার দিকে বা ঘড়ির কাঁটার বিপরীত দিকে একটি বৃত্তচাপ বরাবর এক এক করে সাজানোর জন্য WearArcLayout কন্টেইনার যোগ করা হয়েছে। এর চাইল্ডগুলো সাধারণ অ্যান্ড্রয়েড উইজেট অথবা এর ArcLayoutWidget ইন্টারফেস ইমপ্লিমেন্ট করা "বাঁকানো" উইজেট উভয়ই হতে পারে। ব্যবহারের একটি উদাহরণ:
<androidx.wear.widget.WearArcLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
app:anchorPosition="center">
<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:src="@drawable/ic_launcher"
/>
<androidx.wear.widget.WearCurvedTextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="Curved Text"
style="@android:style/TextAppearance.Small"
android:padding="2dp"
/>
</androidx.wear.widget.WearArcLayout>

( I536da )
সংস্করণ ১.১
সংস্করণ ১.১.০
১৪ অক্টোবর, ২০২০
androidx.wear:wear:1.1.0 প্রকাশিত হয়েছে। সংস্করণ 1.1.0-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
১.০.০ সংস্করণ থেকে বড় পরিবর্তনসমূহ
- অ্যান্ড্রয়েড নামকরণের নিয়ম মেনে চলার জন্য
BoxInsetLayoutএর boxedEdges অ্যাট্রিবিউটে (এখনlayout_BoxedEdges) একটিlayout_প্রিফিক্স যোগ করা হয়েছে। এর ফলে অ্যান্ড্রয়েড স্টুডিওতে এই অ্যাট্রিবিউটগুলোর জন্য লিন্টার এরর ( I4272f ) দূর হবে। - কনফার্মেশন ডায়ালগটি কতক্ষণ প্রদর্শিত হবে তা নির্ধারণ করার জন্য
ConfirmationActivityতে ঐচ্ছিকEXTRA_ANIMATION_DURATION_MILLISযোগ করা হয়েছে। ( adb83ce , b/143356547 ) -
WearableActionDrawViewআপডেট করা হয়েছে, যাতে ড্রয়ারটি প্রথমবার খোলার আগ পর্যন্ত এর স্ফীতি বিলম্বিত হয়। ( I01026 , b/163870541 )
সংস্করণ 1.1.0-rc03
২ সেপ্টেম্বর, ২০২০
androidx.wear:wear:1.1.0-rc03 প্রকাশিত হয়েছে। সংস্করণ 1.1.0-rc03-এ এই কমিটগুলো রয়েছে।
বাগ সংশোধন
- অ্যাকশন ড্রয়ার খোলার সময় কন্টেন্ট না দেখানোর সমস্যাটি সমাধান করা হয়েছে। ( I01026 , b/163870541 )
সংস্করণ 1.1.0-rc02
২৪ জুন, ২০২০
androidx.wear:wear:1.1.0-rc02 প্রকাশিত হয়েছে। সংস্করণ 1.1.0-rc02-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
বাগ সংশোধন
- অ্যান্ড্রয়েড নামকরণের নিয়ম মেনে চলার জন্য
BoxInsetLayoutএর boxedEdges অ্যাট্রিবিউটে একটিlayout_প্রিফিক্স যোগ করা হয়েছে (এখনlayout_boxedEdges)। এর ফলে অ্যান্ড্রয়েড স্টুডিওতে এই অ্যাট্রিবিউটগুলোর জন্য লিন্টার এরর দূর হবে।
সংস্করণ 1.1.0-rc01
১৪ মে, ২০২০
.1.0-beta01 এর পর থেকে কোনো পরিবর্তন ছাড়াই androidx.wear:wear:1.1.0-rc01 প্রকাশ করা হয়েছে। সংস্করণ 1.1.0-rc01-এ এই কমিটগুলো রয়েছে।
সংস্করণ 1.1.0-beta01
২৯ এপ্রিল, ২০২০
androidx.wear:wear:1.1.0-beta01 এর পর থেকে কোনো পরিবর্তন ছাড়াই androidx.wear:wear:1.1.0-alpha01 প্রকাশ করা হয়েছে। সংস্করণ 1.3.0-beta01-এ এই কমিটগুলো রয়েছে।
সংস্করণ 1.1.0-alpha01
১৫ এপ্রিল, ২০২০
androidx.wear:wear:1.1.0-alpha01 প্রকাশিত হয়েছে। সংস্করণ 1.1.0-alpha01-এ এই কমিটগুলো রয়েছে।
এপিআই পরিবর্তন
- কনফার্মেশন ডায়ালগটি কতক্ষণ প্রদর্শিত হবে তা নির্ধারণ করার জন্য
ConfirmationActivityতে ঐচ্ছিকEXTRA_ANIMATION_DURATION_MILLISযোগ করা হয়েছে। ( adb83ce , 134523c , b/143356547 )
বাগ সংশোধন
-
WearableActionDrawViewআপডেট করা হয়েছে, যাতে ড্রয়ারটি প্রথমবার খোলার আগ পর্যন্ত এর স্ফীতি বিলম্বিত হয়। ( 5cd32f7 )
পরিধান-রিমোট-ইন্টারঅ্যাকশন
সংস্করণ ১.৩.০
সংস্করণ 1.3.0-alpha01
১৯ মে, ২০২৬
androidx.wear:wear-remote-interactions:1.3.0-alpha01 প্রকাশিত হয়েছে। সংস্করণ 1.3.0-alpha01-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
এপিআই পরিবর্তন
-
RemoteActivityHelperএstartRemoteActivityAttemptUnlockএবংstartPhoneActivityWithUnlockযোগ করা হয়েছে, যা Wear OS অ্যাপ্লিকেশনগুলিকে ফোন আনলক করার পরে সংযুক্ত ফোনে একটি অ্যাক্টিভিটি শুরু করার অনুমতি দেয়, তবে শর্ত থাকে যে ব্যবহারকারীকে এই ফিচার এবং প্ল্যাটফর্ম সক্ষমতায় নথিভুক্ত হতে হবে। ফিচারটি উপলব্ধ না থাকলেstartRemoteActivityAttemptUnlockবিদ্যমানstartRemoteActivityতে ফিরে যেতে পারে। ( Ic23ae , b/468374830 )
সংস্করণ ১.২
সংস্করণ ১.২.০
২৫শে ফেব্রুয়ারি, ২০২৬
androidx.wear:wear-remote-interactions:1.2.0 প্রকাশিত হয়েছে। সংস্করণ 1.2.0-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
১.১.০ সংস্করণের পর থেকে গুরুত্বপূর্ণ পরিবর্তনসমূহ:
-
RemoteActivityHelper.startRemoteActivityকে আপডেট করা হয়েছে যাতে এটি একটি নতুন পাবলিক Wear SDK API (startRemoteActivity) ব্যবহার করে, যদি তা উপলব্ধ থাকে (Wear 6 এবং তার পরবর্তী সংস্করণ থেকে)। Id1e77 - প্লে বেসমেন্ট সংস্করণের উপর নির্ভরতা আপডেট করা হয়েছে, যেটিতে CVE-2022-2390 দুর্বলতা ছিল।
সংস্করণ 1.2.0-rc01
২৮ জানুয়ারী, ২০২৬
androidx.wear:wear-remote-interactions:1.2.0-rc01 প্রকাশিত হয়েছে। সংস্করণ 1.2.0-rc01-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
বাগ সংশোধন
- প্লে বেসমেন্ট সংস্করণের উপর নির্ভরতা আপডেট করা হয়েছে, যেটিতে CVE-2022-2390 দুর্বলতা ছিল।
সংস্করণ 1.2.0-beta01
১৭ ডিসেম্বর, ২০২৫
androidx.wear:wear-remote-interactions:1.2.0-beta01 প্রকাশিত হয়েছে। সংস্করণ 1.2.0-beta01-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
- পূর্ববর্তী আলফা রিলিজের পর থেকে কোনো উল্লেখযোগ্য নতুন পরিবর্তন নেই।
সংস্করণ 1.2.0-alpha01
২ জুলাই, ২০২৫
androidx.wear:wear-remote-interactions:1.2.0-alpha01 প্রকাশিত হয়েছে। সংস্করণ 1.2.0-alpha01-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
নতুন বৈশিষ্ট্য
-
RemoteActivityHelper.startRemoteActivityকে আপডেট করা হয়েছে যাতে এটি নতুন পাবলিক Wear SDK API (startRemoteActivity) ব্যবহার করে, যদি তা উপলব্ধ থাকে (Wear 6 এবং তার পরবর্তী সংস্করণ থেকে)। ( Id1e77 )
সংস্করণ ১.১
সংস্করণ ১.১.০
১১ ডিসেম্বর, ২০২৪
androidx.wear:wear-remote-interactions:1.1.0 প্রকাশিত হয়েছে। সংস্করণ 1.1.0-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
১.০.০ সংস্করণ থেকে গুরুত্বপূর্ণ পরিবর্তনসমূহ
- আমরা
RemoteActivityHelper.isRemoteActivityHelperAvailableযোগ করেছি, যা একটি রিমোট অ্যাক্টিভিটি চালু করার কার্যকারিতা উপলব্ধ আছে কিনা তা পরীক্ষা করতে সাহায্য করে। ( I107a9 )
সংস্করণ 1.1.0-rc01
১৬ অক্টোবর, ২০২৪
androidx.wear:wear-remote-interactions:1.1.0-rc01 1.1.0-beta01 পর থেকে কোনো পরিবর্তন ছাড়াই প্রকাশ করা হয়েছে। সংস্করণ 1.1.0-rc01-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
সংস্করণ 1.1.0-beta01
২৪ জুলাই, ২০২৪
androidx.wear:wear-remote-interactions:1.1.0-beta01 প্রকাশিত হয়েছে। সংস্করণ 1.1.0-beta01-এ এই কমিটগুলো রয়েছে। Wear Remote Interactions-এর 1.3.0-beta01 রিলিজটি নির্দেশ করে যে লাইব্রেরির এই রিলিজটি ফিচার-সম্পূর্ণ এবং এপিআইটি লক করা আছে (যেখানে পরীক্ষামূলক হিসেবে চিহ্নিত করা হয়েছে, তা ছাড়া)।
সংস্করণ 1.1.0-alpha02
১০ জানুয়ারী, ২০২৪
androidx.wear:wear-remote-interactions:1.1.0-alpha02 প্রকাশিত হয়েছে। সংস্করণ 1.1.0-alpha02-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
এপিআই পরিবর্তন
- আমরা
RemoteActivityHelper.isRemoteActivityHelperAvailableযোগ করেছি, যা একটি রিমোট অ্যাক্টিভিটি চালু করার কার্যকারিতা উপলব্ধ আছে কিনা তা পরীক্ষা করতে সাহায্য করে। ( I107a9 ) - আমরা
RemoteActivityHelperএর কনস্ট্রাক্টরকে জাভার সাথে সামঞ্জস্যপূর্ণ ঐচ্ছিক প্যারামিটার অন্তর্ভুক্ত করার জন্য আপডেট করেছি। ( I75554 )
সংস্করণ 1.1.0-alpha01
২১ জুন, ২০২৩
androidx.wear:wear-remote-interactions:1.1.0-alpha01 প্রকাশিত হয়েছে। সংস্করণ 1.1.0-alpha01-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
বাগ সংশোধন
-
RemoteActivityHelperএ কমপ্লিশন এবং এরর হ্যান্ডলিং করার পদ্ধতি উন্নত করা হয়েছে। ( I60d60 )
বাহ্যিক অবদান
-
wear-remote-interactionsথেকে Guava-র উপর নির্ভরতা দূর করুন এবং এর চেয়ে ছোট বিকল্প ব্যবহার করুন।
পরিধান-ইনপুট
সংস্করণ ১.২
সংস্করণ ১.২.০
১০ সেপ্টেম্বর, ২০২৫
androidx.wear:wear-input:1.2.0 এবং androidx.wear:wear-input-testing:1.2.0 রিলিজ করা হয়েছে। ভার্সন 1.2.0-তে এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
১.১.০ সংস্করণের পর থেকে গুরুত্বপূর্ণ পরিবর্তনসমূহ:
- উন্মুক্ত ভৌত বোতামের অবস্থান ধ্রুবকসমূহ।
-
android.app.RemoteInputএ Wear-এর নির্দিষ্ট অতিরিক্ত বৈশিষ্ট্য (যেমন, ইমোজি ইনপুট চালু করা) সেট করার জন্যWearableRemoteInputExtenderযোগ করা হয়েছে।
সংস্করণ 1.2.0-rc01
২৭ আগস্ট, ২০২৫
androidx.wear:wear-input:1.2.0-rc01 এবং androidx.wear:wear-input-testing:1.2.0-rc01 সর্বশেষ বিটার পর থেকে কোনো পরিবর্তন ছাড়াই প্রকাশ করা হয়েছে। সংস্করণ 1.2.0-rc01-এ এই কমিটগুলো রয়েছে।
সংস্করণ 1.2.0-beta01
৩০ জুলাই, ২০২৫
androidx.wear:wear-input:1.2.0-beta01 এবং androidx.wear:wear-input-testing:1.2.0-beta01 পূর্ববর্তী আলফা সংস্করণগুলোর পর থেকে কোনো উল্লেখযোগ্য পরিবর্তন ছাড়াই প্রকাশ করা হয়েছে। সংস্করণ 1.2.0-beta01-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
সংস্করণ 1.2.0-alpha04
১৬ জুলাই, ২০২৫
androidx.wear:wear-input:1.2.0-alpha04 এবং androidx.wear:wear-input-testing:1.2.0-alpha04 প্রকাশিত হয়েছে। সংস্করণ 1.2.0-alpha04-এ এই কমিটগুলো রয়েছে।
নতুন বৈশিষ্ট্য
- স্ক্রিনের সাপেক্ষে ভৌত বাটনগুলির অবস্থান গণনা করার সময় স্ক্রিন ঘূর্ণন বিবেচনা করুন। ( 87a57e )
এপিআই পরিবর্তন
- wear-input-এ LOC * কে LOCATION * এ পরিবর্তন করুন। ( I5e879 )
বাগ সংশোধন
- এই লাইব্রেরিটি এখন JSpecify নালনেস অ্যানোটেশন ব্যবহার করে, যা টাইপ-ইউজ। সঠিক ব্যবহার নিশ্চিত করতে কোটলিন ডেভেলপারদের নিম্নলিখিত কম্পাইলার আর্গুমেন্টগুলো ব্যবহার করা উচিত:
-Xjspecify-annotations=strict,-Xtype-enhancement-improvements-strict-mode( Icbfb9 , b/326456246 )
সংস্করণ 1.2.0-alpha02
২৯ সেপ্টেম্বর, ২০২১
androidx.wear:wear-input:1.2.0-alpha02 এবং androidx.wear:wear-input-testing:1.2.0-alpha02 রিলিজ করা হয়েছে। ভার্সন 1.2.0-alpha02-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
এপিআই পরিবর্তন
-
WearableRemoteInputExtenderএ ইমোজি আঁকার বিকল্পটি দেখানো হবে কিনা তা নির্ধারণ করার জন্যdisallowEmojiনাম পরিবর্তন করেsetEmojisAllowedহয়েছে। ( I28393 )
সংস্করণ 1.2.0-alpha01
১৫ সেপ্টেম্বর, ২০২১
androidx.wear:wear-input:1.2.0-alpha01 এবং androidx.wear:wear-input-testing:1.2.0-alpha01 রিলিজ করা হয়েছে। ভার্সন 1.2.0-alpha01-এ এই কমিটগুলো রয়েছে।
এপিআই পরিবর্তন
-
WearableButtonsথেকে সমস্ত বাটনের অবস্থান ধ্রুবক উন্মুক্ত করা হয়েছে। ( Ibb12c ) -
WearableRemoteInputExtenderক্লাসটি যোগ করা হয়েছে যা android.app.RemoteInput-এ Wear-এর নিজস্ব অতিরিক্ত বৈশিষ্ট্য যোগ করার জন্য ব্যবহার করা যাবে। ( I01903 )
সংস্করণ ১.১
সংস্করণ ১.১.০
১৮ আগস্ট, ২০২১
androidx.wear:wear-input:1.1.0 এবং androidx.wear:wear-input-testing:1.1.0 রিলিজ করা হয়েছে। ভার্সন 1.1.0-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
১.০.০ সংস্করণ থেকে গুরুত্বপূর্ণ পরিবর্তনসমূহ
-
RemoteInputIntentHelperযোগ করা হয়েছে।- এই ক্লাসটি ব্যবহার করে একটি RemoteInput Intent তৈরি করা যায়। এরপর এটি ব্যবহার করে একটি কাস্টমাইজযোগ্য অ্যাক্টিভিটিতে আপনার ব্যবহারকারীদের কাছ থেকে ইনপুট চাওয়া যেতে পারে।
সংস্করণ 1.1.0-rc01
৪ আগস্ট, ২০২১
androidx.wear:wear-input:1.1.0-rc01 এবং androidx.wear:wear-input-testing:1.1.0-rc01 রিলিজ করা হয়েছে। ভার্সন 1.1.0-rc01-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
androidx.wear:wear-input:1.1.0-beta01 এবং androidx.wear:wear-input-testing:1.1.0-beta01 এর পর থেকে API-তে কোনো পরিবর্তন করা হয়নি।
সংস্করণ 1.1.0-beta01
২১ জুলাই, ২০২১
androidx.wear:wear-input:1.1.0-beta01 এবং androidx.wear:wear-input-testing:1.1.0-beta01 সংস্করণ দুটি 1.1.0-alpha03 পর থেকে কোনো পরিবর্তন ছাড়াই প্রকাশ করা হয়েছে। সংস্করণ 1.1.0-beta01-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
সংস্করণ 1.1.0-alpha03
৩০ জুন, ২০২১
androidx.wear:wear-input:1.1.0-alpha03 এবং androidx.wear:wear-input-testing:1.1.0-alpha03 রিলিজ করা হয়েছে। ভার্সন 1.1.0-alpha03-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
বাগ সংশোধন
- একটি বাগ সংশোধন করা হয়েছে যার কারণে
RemoteInputHelper.putRemoteInputsExtraএর মাধ্যমেRemoteInputইন্টেন্টগুলো প্রত্যাখ্যাত হচ্ছিল।
সংস্করণ 1.1.0-alpha02
১৮ মে, ২০২১
androidx.wear:wear-input:1.1.0-alpha02 এবং androidx.wear:wear-input-testing:1.1.0-alpha02 রিলিজ করা হয়েছে। ভার্সন 1.1.0-alpha02-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
এপিআই পরিবর্তন
-
RemoteInputIntentHelperএর যে মেথডগুলো টাইটেল, ক্যানসেল, কনফার্ম এবং ইন প্রগ্রেস লেবেল বোঝানোর জন্য এক্সট্রা গেট বা পুট করতে ব্যবহৃত হয়, সেগুলোতে এখন থেকে এই লেবেলগুলোর জন্যStringএর পরিবর্তেCharSequenceব্যবহার করা হচ্ছে। ( I0e71f )
সংস্করণ 1.1.0-alpha01
২৭ জানুয়ারী, ২০২১
androidx.wear:wear-input:1.1.0-alpha01 এবং androidx.wear:wear-input-testing:1.1.0-alpha01 প্রকাশিত হয়েছে। সংস্করণ 1.1.0-alpha01-এ এই কমিটগুলো রয়েছে।
এপিআই পরিবর্তন
- Wearable Support Library থেকে AndroidX-এ RemoteInputIntent ক্লাসটি মাইগ্রেট করা হয়েছে। মাইগ্রেট করা ক্লাসটির নাম পরিবর্তন করে RemoteInputIntentHelper রাখা হয়েছে, যা একটি ইন্টেন্ট শুরু করার মাধ্যমে রিমোট ইনপুট সমর্থন করার জন্য সহায়ক ফাংশন সরবরাহ করে। ( I47cee )
সংস্করণ ১.০
সংস্করণ ১.০.০
২ ডিসেম্বর, ২০২০
androidx.wear:wear-input:1.0.0 এবং androidx.wear:wear-input-testing:1.0.0 রিলিজ করা হয়েছে। ভার্সন 1.0.0-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
এই রিলিজটি 1.0.0-rc01 এর অনুরূপ।
১.০.০ এর প্রধান বৈশিষ্ট্যসমূহ
Wearable Support Library থেকে Jetpack-এ WearableButtons কার্যকারিতা স্থানান্তর।
androidx.wear:wear-inputলাইব্রেরি দিয়ে তৈরি অ্যাপ্লিকেশন পরীক্ষা করার সুবিধার্থেandroidx.wear.input.test.TestWearableButtonsProviderযোগ করা হয়েছে, যাandroidx.wear.input.WearableButtonsProviderকে ইমপ্লিমেন্ট করে।
সংস্করণ 1.0.0-rc01
১১ নভেম্বর, ২০২০
androidx.wear:wear-input:1.0.0-rc01 এবং androidx.wear:wear-input-testing:1.0.0-rc01 রিলিজ করা হয়েছে। ভার্সন 1.0.0-rc01-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
এই রিলিজটি 1.0.0-beta01 এর অনুরূপ।
সংস্করণ 1.0.0-beta01
২৮ অক্টোবর, ২০২০
androidx.wear:wear-input:1.0.0-beta01 এবং androidx.wear:wear-input-testing:1.0.0-beta01 সংস্করণ দুটি 1.1.0-alpha01 পর থেকে কোনো পরিবর্তন ছাড়াই প্রকাশ করা হয়েছে। সংস্করণ 1.0.0-beta01-এ এই কমিটগুলো অন্তর্ভুক্ত রয়েছে।
Wear-Input-Testing সংস্করণ 1.0.0-alpha01
১৪ অক্টোবর, ২০২০
androidx.wear:wear-input-testing:1.0.0-alpha01 প্রকাশিত হয়েছে। সংস্করণ 1.0.0-alpha01-এ এই কমিটগুলো রয়েছে।
এপিআই পরিবর্তন
-
androidx.wear.input.test.TestWearableButtonsProviderandroidx.wear:wear-inputলাইব্রেরি দিয়ে তৈরি অ্যাপ্লিকেশন পরীক্ষা করার সুবিধার্থে androidx.wear.input.test.TestWearableButtonsProvider যোগ করা হয়েছে, যাandroidx.wear.input.WearableButtonsProviderকে ইমপ্লিমেন্ট করে। ( I0ed0c )
Wear-Input সংস্করণ 1.0.0-alpha01
২ সেপ্টেম্বর, ২০২০
androidx.wear:wear-input:1.0.0-alpha01 is released. Version 1.0.0-alpha01 contains these commits.
নতুন বৈশিষ্ট্য
Migration of WearableButtons functionality from Wearable Support Library to Jetpack. Additional testing support will be provided in androidx.wear:wear-input-testing library in the next Jetpack release.
Wear-Ongoing
Version 1.1
Version 1.1.0
১০ সেপ্টেম্বর, ২০২৫
androidx.wear:wear-ongoing:1.1.0 is released. Version 1.1.0 contains these commits .
Important changes since 1.0.0:
- Added a content description field to Ongoing Activities, which is used by accessibility services.
- Added
RequiresPermissionannotations to APIs that requirePOST_NOTIFICATIONSpermission on SDK 33 and above.
Version 1.1.0-rc01
August 27, 2025
androidx.wear:wear-ongoing:1.1.0-rc01 is released with no changes since the last beta. Version 1.1.0-rc01 contains these commits .
Version 1.1.0-beta01
৩০ জুলাই, ২০২৫
androidx.wear:wear-ongoing:1.1.0-beta01 is released with no notable changes since the last alpha. Version 1.1.0-beta01 contains these commits .
Version 1.1.0-alpha01
২৩শে আগস্ট, ২০২৩
androidx.wear:wear-ongoing:1.1.0-alpha01 is released. Version 1.1.0-alpha01 contains these commits.
API Changes
- Add a content description field to Ongoing Activity. This will be used by accessibility services to describe the Ongoing Activity. ( I79fc6 )
Bug Fixes
- Added
@RequiresPermissionto APIs that require granting thePOST_NOTIFICATIONSpermission on SDK 33 and above. ( Ie542e , b/238790278 )
সংস্করণ ১.০
সংস্করণ ১.০.০
১ সেপ্টেম্বর, ২০২১
androidx.wear:wear-ongoing:1.0.0 is released. Version 1.0.0 contains these commits.
Major features of 1.0.0
- The Wear Ongoing Activities API is an API for developers, including third party developers, used to mark their activity as an “Ongoing Activity”, and provide the needed information.
- Ongoing Activities refer to activities that could be running in the background of the watch (eg workouts, calls and media). On Wear 3, an activity declared as ongoing will be made more prominent through a dedicated overlay icon on the watchface and a different rendering in the app launcher.
- For more information, see the Wear Ongoing Activity Guide
Version 1.0.0-rc01
August 18, 2021
androidx.wear:wear-ongoing:1.0.0-rc01 is released with no changes since 1.0.0-beta01 . Version 1.0.0-rc01 contains these commits.
Version 1.0.0-beta01
August 4, 2021
androidx.wear:wear-ongoing:1.0.0-beta01 is released. Version 1.0.0-beta01 contains these commits.
API Changes
- Some setters on OngoingActivity.Builder now accept a null argument in order to give symmetry and consistency to the setters and getters ( I17ee5 )
Version 1.0.0-alpha06
June 2, 2021
androidx.wear:wear-ongoing:1.0.0-alpha06 is released. Version 1.0.0-alpha06 contains these commits.
API Changes
- Add Title field to Ongoing Activity. ( I7a405 )
Bug Fixes
-
SerializationHelper.copy()now does a defensive copy of the information ( I8b276 ) - Improved setCategory documentation ( Iff01f )
Version 1.0.0-alpha05
May 18, 2021
androidx.wear:wear-ongoing:1.0.0-alpha05 is released. Version 1.0.0-alpha05 contains these commits.
API Changes
OngoingActivitynow has getters to retrieve all values directly set via the Builder (or the defaults taken from the associated Notification). ( Id8ac8 )- The new class
Statusis now used to create the status of the theOngoingActivity -
OngoingActivityDataandOngoingActivityStatusare no longer part of the public API.
- The new class
The classes
TextStatusPartandTimerStatusPartare no longer part of the public API. ( I57fb6 )- To create a
Partwith a static text, useStatus.TextPart. - To create a
Partwith a stopwatch (counting up), useStatus.Stopwatch - To create a
Partwith a timer (counting down), useStatus.Timer
- To create a
Version 1.0.0-alpha04
May 5, 2021
androidx.wear:wear-ongoing:1.0.0-alpha04 is released. Version 1.0.0-alpha04 contains these commits.
API Changes
- On OngoingActivity, the methods fromExistingOngoingActivity are now called recoverOngoingActivity.
- OngoingActivity now has a full set of getters, the same previously only available at OngoingActivityData. ( I0ee4d )
Wear-Phone-Interactions
Version 1.1
Version 1.1.0
২৬ ফেব্রুয়ারি, ২০২৫
androidx.wear:wear-phone-interactions:1.1.0 is released. Version 1.1.0 contains these commits .
Important changes since 1.0.0
- This version contains crucial bug fix for Apps running on Wear OS 5 (API level 34) or higher and targeting API level 35 or higher.
- Apps should update to this version of the library before updating their
targetSdkVersionto 35 or higher. - Otherwise, runtime exception will be thrown.
- A new definition for paired device type -
none, when the device is not paired with the phone, has been added.
Version 1.1.0-rc01
১২ ফেব্রুয়ারী, ২০২৫
androidx.wear:wear-phone-interactions:1.1.0-rc01 is released with no notable changes since the last beta. Version 1.1.0-rc01 contains these commits .
Version 1.1.0-beta01
January 29, 2025
androidx.wear:wear-phone-interactions:1.1.0-beta01 is released. Version 1.1.0-beta01 contains these commits .
নতুন বৈশিষ্ট্য
The 1.1.0-beta01 release of Wear Phone Interactions indicates that this release of the library is feature complete and the API is locked (except where marked as experimental). Wear Phone Interactions 1.1 includes the following new functionalities and APIs:
- Added property
redirectUrltoOAuthRequest. - Documentation fixes
- Additional type in
PhoneTypeHelperto specify when device is not paired with phone, instead of using existing unknown type.
API Changes
- Added new definition for paired device type - none, when device is not paired with the phone. ( I06cb8 )
Version 1.1.0-alpha05
December 11, 2024
androidx.wear:wear-phone-interactions:1.1.0-alpha05 is released. Version 1.1.0-alpha05 contains these commits .
Bug Fixes
- Fix a crash bug when running on Wear OS 5 (API level 34) or higher while targeting API level 35 or higher. Apps should update to this version of the library before updating their
targetSdkVersionto 35 or higher.
Version 1.1.0-alpha04
১০ জানুয়ারী, ২০২৪
androidx.wear:wear-phone-interactions:1.1.0-alpha04 is released. Version 1.1.0-alpha04 contains these commits.
API Changes
- We have added
RemoteAuthClient.isRemoteAuthAvailablewhich checks whether remote auth is available. ( Ibc10c )
Version 1.1.0-alpha03
March 9, 2022
androidx.wear:wear-phone-interactions:1.1.0-alpha03 is released. Version 1.1.0-alpha03 contains these commits.
Bug Fixes
-
redirectUrlfromOAuthRequestnow returns an empty String if there the redirect URL is not set in the given request URL. ( I44242 )
Version 1.1.0-alpha02
December 15, 2021
androidx.wear:wear-phone-interactions:1.1.0-alpha02 is released. Version 1.1.0-alpha02 contains these commits.
Bug Fixes
- Fix the errors in
RemoteAuthClientdocumentation, including error in code sample snippet and the dead link toErrorCode( I260e8 )
Version 1.1.0-alpha01
১৫ সেপ্টেম্বর, ২০২১
androidx.wear:wear-phone-interactions:1.1.0-alpha01 is released. Version 1.1.0-alpha01 contains these commits.
API Changes
সংস্করণ ১.০
Wear-Phone-Interactions Version 1.0.1
December 15, 2021
androidx.wear:wear-phone-interactions:1.0.1 is released. Version 1.0.1 contains these commits.
Bug Fixes
- Fixed exception was thrown from the
BridgingManagerwhen trying to disable bridging notifications withoutexcludedTags.
Wear-Phone-Interactions Wear-Remote-Interactions
সংস্করণ ১.০
সংস্করণ ১.০.০
১৫ সেপ্টেম্বর, ২০২১
androidx.wear:wear-phone-interactions:1.0.0 and androidx.wear:wear-remote-interactions:1.0.0 are released. Version 1.0.0 contains these commits.
Major features of 1.0.0
The Phone Interaction Library contains APIs for interactions from the Wearables to Phones. It contains the following:
-
PhoneDeviceType, providing helper methods for determining the type of phone the current watch is paired to, for use on Wearable devices only. -
BridgingManager,BridgingManagerServiceandBridgingConfigAPIs to enable/disable notifications at runtime and optionally set tags for notifications that are exempt from the bridging mode. -
RemoteAuthClient, providing support for remote authentication on Wearables together with support for adding OAuth PKCE extension. Additional handlers and helper classes for communication are provided.
The Remote Interaction Library contains APIs for interactions between the Wearables and Phones. It contains the following:
-
WatchFaceConfigIntentHelper, providing helper functions to specify the ID and component name in the watch face configuration activities for the companion on the phone. -
RemoteActivityHelperclass which can be used for opening intents on other devices (ie from watch to phone).
Version 1.0.0-rc01
১ সেপ্টেম্বর, ২০২১
androidx.wear:wear-phone-interactions:1.0.0-rc01 and androidx.wear:wear-remote-interactions:1.0.0-rc01 are released. Version 1.0.0-rc01 contains these commits.
Bug Fixes
- Fix bug preventing errors raised within Google Play Services from being propagated to the caller when using RemoteActivityHelper ( I60d60 )
- Fix bug where RemoteActivityHelper would never fulfill its Future if there were no connected nodes, or if the requested nodeId was not found ( I60d60 )
Version 1.0.0-beta01
August 18, 2021
androidx.wear:wear-phone-interactions:1.0.0-beta01 and androidx.wear:wear-remote-interactions:1.0.0-beta01 are released. Version 1.0.0-beta01 contains these commits.
API Changes
- Renamed class
RemoteIntentHelpertoRemoteActivityHelper. Renamed functionsRemoteIntentHelper#getRemoteIntentExtraIntentandRemoteIntentHelper#getRemoteIntentNodeIdtoRemoteActivityHelper#getTargetIntentandRemoteActivityHelper#getTargetNodeId, respectively. ( Id2042 )
Wear-Phone-Interactions Version 1.0.0-alpha07
August 4, 2021
androidx.wear:wear-phone-interactions:1.0.0-alpha07 is released. Version 1.0.0-alpha07 contains these commits.
API Changes
- Renamed
WearTypeHelper.isChinaDevicetoWearTypeHelper.isChinaBuild. ( I47302 ) - We have updated RemoteAuthClient library to automatically pick redirect_uri based on device type (RoW/China). ( I38866 )
- Fixed bug that caused converting BridgingConfig to/from Bundle to fail with ClassCastException. Added unit tests for BridgingManagerService class. ( I68ecb )
Wear-Remote-Interactions Version 1.0.0-alpha06
August 4, 2021
androidx.wear:wear-remote-interactions:1.0.0-alpha06 is released. Version 1.0.0-alpha06 contains these commits.
Wear-Phone-Interactions Version 1.0.0-alpha06
July 21, 2021
androidx.wear:wear-phone-interactions:1.0.0-alpha06 is released. Version 1.0.0-alpha06 contains these commits.
API Changes
-
BridgingManagerSeviceBinderclass is now a subclass of Service and is renamed to BridgingManagerSevice. ( I9fca2 ) - Method
RemoteAuthClient.Callback.onAuthorizationErroris changed to include OAuthRequest parameter. Methods requiring callback now also require an executor for the callback to be run on. ( I35e11 )
Bug Fixes
- We have made the authentication API clearer with more documented parameters and by using properties where possible. ( I12287 )
Wear-Phone-Interactions Version 1.0.0-alpha05
June 30, 2021
androidx.wear:wear-phone-interactions:1.0.0-alpha05 is released. Version 1.0.0-alpha05 contains these commits.
Bug Fixes
- Documented parameters that should be passed in constructor for
BridgingConfig.Builder.
Wear-Remote-Interactions Version 1.0.0-alpha05
July 21, 2021
androidx.wear:wear-remote-interactions:1.0.0-alpha05 is released. Version 1.0.0-alpha05 contains these commits.
API Changes
We have added the
RemoteIntentHelperclass (previously RemoteIntent in the Wearable Support Library) which can be used for opening intents on other devices (ie from watch to phone). ( I1d7e0 )The PlayStoreAvailability class has been removed from the AndroidX library. To detect whether the Play Store is available on a connected phone, use the
androidx.phone.interactions.PhoneTypeHelper.getPhoneDeviceTypemethod to determine if the connected phone is an Android phone. Then use theandroidx.wear.utils.WearTypeHelper.isChinaDevicemethod to determine if the connected phone is a Chinese device. If the phone is an Android phone and if it is not a Chinese device then the Play Store will be available. ( Ie7dec )
Wear-Phone-Interactions Version 1.0.0-alpha04
April 7, 2021
androidx.wear:wear-phone-interactions:1.0.0-alpha04 is released. Version 1.0.0-alpha04 contains these commits.
API Changes
- Updated
ErrorCodeconstants to make the new library backwards compatible with the implementation in Wearable Support Library.
Bug Fixes
- Fixed exception caused by new OAuth API when starting an OAuth session.
Wear-Remote-Interactions Version 1.0.0-alpha03
April 7, 2021
androidx.wear:wear-remote-interactions:1.0.0-alpha03 is released. Version 1.0.0-alpha03 contains these commits.
API Changes
- Changed
PlayStoreAvailabilityto be a class that contains companion object with static methods. Usage stays the same.
Bug Fixes
- Fixed summary doc for
WatchFaceConfigIntentHelperto correctly show sample code with actual HTML characters.
Wear-Ongoing Wear-Phone-Interactions Version 1.0.0-alpha03
March 10, 2021
androidx.wear:wear-ongoing:1.0.0-alpha03 and androidx.wear:wear-phone-interactions:1.0.0-alpha03 are released. Version 1.0.0-alpha03 contains these commits.
নতুন বৈশিষ্ট্য
- Migrate OAuthClient from Wearable Support Library to AndroidX. This migrated class is renamed to RemoteAuthClient and it gives support for remote authentication on Wearables together with support for adding OAuth PKCE extension. Additional handlers and helper classes for communication are provided.
- Ongoing activities can now be associated with a Notification that has a tag, using the new OngoingActivity.Builder constructor.
API Changes
- Added support for notification tags on the Ongoing Activities Library ( I653b4 )
- Migrate OAuthClient from Wear Support Library to AndroidX, and add support for OAuth PKCE extension ( I3eaaa )
Wear-Remote-Interactions Version 1.0.0-alpha02
March 10, 2021
androidx.wear:wear-remote-interactions:1.0.0-alpha02 is released. Version 1.0.0-alpha02 contains these commits.
নতুন বৈশিষ্ট্য
- Migrating PlayStoreAvailability class from Wearable Support Library to AndroidX which provides an API for checking whether the Play Store is available on the Phone.
Bug Fixes
- Migrating PlayStoreAvailability class from Wearable Support Library to AndroidX. ( I69bfe )
Version 1.0.0-alpha02
February 10, 2021
androidx.wear:wear-ongoing:1.0.0-alpha02 and androidx.wear:wear-phone-interactions:1.0.0-alpha02 are released. Version 1.0.0-alpha02 contains these commits.
API Changes
- Added support for more complex status. They are composed of a template (or several) and a series of Parts that will be used to fill the template's placeholders. OngoingActivityStatus now has a static method to create simple statuses with only one part (a Text or a Timer), and a Builder to create more complex statuses. ( I1fe81 )
- Move BridgingManager and BridgingConfig classes from Wear Support Library to AndroidX which provides APIs to enable/disable notifications at runtime and optionally set tags for notifications that are exempt from the bridging mode. ( I3a17e )
Version 1.0.0-alpha01
January 27, 2021
androidx.wear:wear-ongoing:1.0.0-alpha01 , androidx.wear:wear-phone-interactions:1.0.0-alpha01 , and androidx.wear:wear-remote-interactions:1.0.0-alpha01 are released. Version 1.0.0-alpha01 contains these commits.
API Changes
Migrate the Ongoing Activities library to a new sub-library: wear-ongoing. Classes now live in the androidx.wear.ongoing package (previously was androidx.wear.ongoingactivities) ( I7c029 )
Create a new support library to contain classes that support interactions from the Wearables to Phones. It is initially populated with classes migrated from Wearable Support Library. ( Id5180 )
Migrate PhoneDeviceType class from Wearable Support Library to AndroidX. The migrated class is renamed as PhoneTypeHelper which provides helper methods for determining the type of phone the current watch is paired to, for use on Wearable devices only. ( Ibd947 )
Create a new support library to contain classes that support interactions between the Wearables and Phones. It is initially populated with classes migrated from Wearable Support Library. ( I9deb4 )
Migrate WatchFaceCompanion class from Wearable Support Library to AndroidX. The migrated class is renamed as WatchFaceConfigIntentHelper which provides helper functions to specify the ID and component name in the watch face configuration activities in companion on the phone, it can also be used locally to configure the watch face on the wearable device. ( Ia455f )
Wear-Tooling-Preview
সংস্করণ ১.০
সংস্করণ ১.০.০
November 29, 2023
androidx.wear:wear-tooling-preview:1.0.0 is released. Version 1.0.0 contains these commits.
Features in 1.0.0
- Add
WearDevicesto list valid wear devices that can be used for UI previews.
Version 1.0.0-rc01
১৫ নভেম্বর, ২০২৩
androidx.wear:wear-tooling-preview:1.0.0-rc01 is released with no changes. Version 1.0.0-rc01 contains these commits.
Version 1.0.0-beta01
১৮ অক্টোবর, ২০২৩
androidx.wear:wear-tooling-preview:1.0.0-beta01 is released with no changes. Version 1.0.0-beta01 contains these commits.
Version 1.0.0-alpha01
২৩শে আগস্ট, ২০২৩
androidx.wear:wear-tooling-preview:1.0.0-alpha01 is released. Version 1.0.0-alpha01 contains these commits.
API Changes
- Add
WearDevicesto list valid wear devices that can be used for UI previews ( Ib036e )
Wear Complications and Watchface
সংস্করণ ১.০
Version 1.0.0-alpha22
১৫ সেপ্টেম্বর, ২০২১
androidx.wear:wear-*:1.0.0-alpha22 is released. Version 1.0.0-alpha22 contains these commits.
নতুন বৈশিষ্ট্য
- The EditorSession now subscribes to lifecycle observers so you no longer have to explicitly close it when your activity goes away.
API Changes
- EditorSession and ListenableEditorSession now use kotlin StateFlows for complicationSlotsState, ComplicationsPreviewData and ComplicationsDataSourceInfo. ( I761d9 )
- EditorSession#userStyle is now a
MutableStateFlow<UserStyle>( I32ca9 ) - EditorSession.createOnWatchEditorSession now uses a lifecycle observer and it automatically closes when it observes onDestroy. In addition
createOnWatchEditorSessionnow only requires the activity to be passed in. Identical changes have also been applied to ListenableEditorSession. ( Ic6b7f ) - CustomValueUserStyleSetting's constructor has been reinstated as part of the public API. ( I2e69a )
-
UserStylenow inherits fromMap<UserStyleSetting, UserStyleSetting.Option>andMutableUserStyleSetting#putthrows IllegalArgumentException if the setting is not in the schema or if the option doesn't match the setting. ( Iba40f )
Version 1.0.0-alpha21
১ সেপ্টেম্বর, ২০২১
androidx.wear:wear-*:1.0.0-alpha21 is released. Version 1.0.0-alpha21 contains these commits.
API Changes
- All public watch face, client, editor and complication APIs now use java.time.Instant for times rather than a Long, as a consequence the minimum API level has increased to 26. ( I3cd48 )
- The watchface and complication APIs now use the immutable ZonedDateTime instead of Calendar. ( I25cf8 )
- ComplicationSlots are now initialized with NoDataComplicationData, ComplicationSlot.complicationData now always has a value and CanvasComplicationDrawable.complicationData is no longer nullable. ( I4dfd6 ) This reduces (but doesn't eliminate) complication flickering when switching between watch faces.
Version 1.0.0-alpha20
August 18, 2021
androidx.wear:wear-*:1.0.0-alpha20 is released. Version 1.0.0-alpha20 contains these commits.
API Changes
- We have added createFallbackPreviewData to ComplicationDataSourceInfo which can be used when ComplicationDataSourceInfoRetriever.retrievePreviewComplicationData returns null. ( I38c4d )
- ComplicationDataSourceUpdateRequester has been turned into an interface to allow mocking in unit tests. You can construct a concrete ComplicationDataSourceUpdateRequester with ComplicationDataSourceUpdateRequester.create(). ( I7da22 )
- RenderParameters.pressedComplicationSlotIds has been replaced by RenderParameters.lastComplicationTapDownEvents which exposes the new TapEvent class which contains a triple of x, y coordinates of the tap in pixels and a time stamp.
WatchFace.TapListener.onTaphas been replaced byonTapEvent(@TapType tapType: Int, tapEvent: TapEvent). In addition,InteractiveWatchFaceClient.displayPressedAnimationhas been removed. ( Id87d2 ) - Added explicit threading annotation for setImportantForAccessibility ( I990fa )
- ComplicationSlotBoundsType has been moved to androidx-wear-watchface.ComplicationSlotBoundsType in wear/wear-watchface. ( I09420 )
- We have added support for passing string resource ids into UserStyleSetting and Options. This is now the recommended way to construct those objects. ( I03d5f )
- Limits have been imposed upon the maximum wire size of a UserStyle Schema. Also Icons in the schema must not be bigger than 400x400 pixels. ( I3b65b )
- We added a MutableUserStyle class to support changes to UserStyle instances ( I95a40 )
- We have renamed
ListenableWatchFaceMetadataClient.Companion#listenableCreateWatchFaceMetadataClienttoListenableWatchFaceMetadataClient.Companion#createListenableWatchFaceMetadataClient. ( I64ce2 ) - We've modified EditorState.previewComplicationsData to only contain data for enabled complications, and we've added
EditorSession.DEFAULT_PREVIEW_TIME_MILLISwhich if passed torenderWatchFaceToBitmaporPreviewScreenshotParamsrequests rendering with the watch face's default preview time. ( If7b3c ) - We have removed UserStyleSetting constructors taking CharSequence from the public API. It's recommended to use the constructors that require StringResource IDs instead. ( I8537b )
-
CurrentUserStyleRepository.UserStyleChangeListenernow supports SAM conversion. ( I85989 )
Version 1.0.0-alpha19
August 4, 2021
androidx.wear:wear-*:1.0.0-alpha19 is released. Version 1.0.0-alpha19 contains these commits.
API Changes
- We've added
ListenableWatchFaceMetadataClient.listenableCreateWatchFaceMetadataClientwhich provides aListenableFuturewrapper forWatchFaceMetadataClient.createWatchFaceMetadataClient. ( I5fa37 ) -
UserStyleOption.getOptionForIdnow acceptsUserStyleOption.Idinstead of a byte array. ( I469be ) - Provide constants
BooleanOption.TRUEandBooleanOption.FALSEand disallow instance creation ( I46e09 ) - Methods in wear-watchface-client that can throw RemoteException have now been annotated accordingly. ( Ib8438 )
- For consistency we've renamed
EditorSession.createOnWatchEditingSessiontocreateOnWatchEditorSession, similarlycreateHeadlessEditingSessionis nowcreateHeadlessEditorSession. Their guava wrappers have also been renamed. ( I1526b ) -
EditorSessionis now an interface andListenableEditorSession.commitChangesOnCloseis now properly delegated. ( I7dc3e ) - We now reject any user style schema that has settings or options with conflicting IDs ( Ic2715 )
- We have added an overloaded
UserStyle.getwhich acceptsUserStyleSetting.Id. ( I2aa0f )
Version 1.0.0-alpha18
July 21, 2021
androidx.wear:wear-*:1.0.0-alpha18 is released. Version 1.0.0-alpha18 contains these commits.
API Changes
- We moved
ComplicationHelperActivitytoandroidx.wear:wear-watchfacelibrary. ( I39e76 ) - For consistency and clarity,
ComplicationProviderhas been renamed toComplicationDataSourceand all classes with Provider in their name have been similarly renamed. ( Iaef0b ) -
CanvasComplication.isHighlightedhas been moved intoRenderParameters.pressedComplicationSlotIdsthis is a step towards makingCanvasComplicationstateless. To support this changeCanvasComplication.rendernow also takes theslotIdas a parameter and we now pass theComplicationSlotintoGlesTextureComplication. ( I50e6e ) - We have added
headlessDeviceConfigtoEditorRequest, if non null this parameter is used to construct a headless instance to back the EditorSession rather than acting on the interactive instance. This allows the editor to be invoked for a watch face that isn't the current one. ( I0a820 ) - We've added an experimental
WatchFaceMetadataClientwhich allows efficient retrieval of static watch face metadata such as theUserStyleSchemaand fixed details aboutComplicationSlots. ( I6bfdf ) - We have renamed
CanvasRenderer.uiThreadInitto init. ( I6fff9 ) - We've added PreviewScreenshotParams an optional new parameter for EditorRequest which instructs EditorSession to take a preview screenshot on commit with these parameter. The preview image is exposed on
EditorState.previewImage. ( Ic2c16 )
Bug Fixes
- Developers no longer need to add ComplicationHelperActivity to their own manifest. ( I6f0c2 )
Version 1.0.0-alpha17
June 30, 2021
androidx.wear:wear-*:1.0.0-alpha17 is released. Version 1.0.0-alpha17 contains these commits.
নতুন বৈশিষ্ট্য
In
GlesRenderer,makeUiThreadContextCurrentandmakeBackgroundThreadContextCurrenthave been replaced byrunUiThreadGlCommandsandrunBackgroundThreadGlCommandswhich both accept aRunnable. The library ensures that only one GL command runnable is executing at any given time.To make UiThread initialziaion easier we've added
CanvasRenderer.uiThreadInitwhich is called once on the UiThread before any calls to render. We've also addedonRendererCreatedtoCanvasComplicationwhich makes it easier forRendererandCanvasComplicationto share state.For clarity we have renamed
ComplicationtoComplicationSlotandcomplicationIdto eithercomplicationSlotIdorcomplicationInstanceIddepending on usage
API Changes
- For clarity we have renamed
ComplicationtoComplicationSlotandcomplicationIdto eithercomplicationSlotIdorcomplicationInstanceIddepending on usage. Classes using Complication have similarly been renamed eg ComplicationsManager is now called ComplicationSlotsManager. ( I4da44 ) - In GlesRenderer
makeUiThreadContextCurrentandmakeBackgroundThreadContextCurrenthave been replaced byrunUiThreadGlCommandsandrunBackgroundThreadGlCommandswhich both accept aRunnable. These functions are only needed if you need to make GL calls outside of render,runBackgroundThreadGlCommandsandonUiThreadGlSurfaceCreated. This is required because there can be multiple GlesRenderers each with their own contexts in the same process, potentially from different watch faces. In addition access to the shared current GL context is now synchronized. ( I04d59 ) - We have added
CanvasRenderer.uiThreadInitwhich is called once on the UiThread before any calls to render. Also for clarity in GlesRenderer we have renamedonGlContextCreatedtoonBackgroundThreadGlContextCreated, andonGlSurfaceCreatedtoonUiThreadGlSurfaceCreated. ( If86d0 ) -
HeadlessWatchFaceClient&InteractiveWatchFaceClientgetComplicationsSlotStatehas been renamed togetComplicationSlotsState. InComplicationSlot:createRoundRectComplicationBuilder,createBackgroundComplicationBuilder, andcreateEdgeComplicationBuilderhave been renamed tocreateRoundRectComplicationSlotBuilder,createBackgroundComplicationSlotBuilder, andcreateEdgeComplicationSlotBuilderrespectively. ( Ib9adc ) - We have added onRendererCreated to CanvasComplication which makes it easier for Renderer and CanvasComplication to share state. ( I5e1ac )
Version 1.0.0-alpha16
June 16, 2021
androidx.wear:wear-*:1.0.0-alpha16 is released. Version 1.0.0-alpha16 contains these commits.
নতুন বৈশিষ্ট্য
- We've fixed a number of bugs related to the recent threading model changes as well as addressing other issues with the on watch face editor.
Bug Fixes
- Prevent NPE in
onComplicationProviderChooserResult( b/189594557 ) - Fix issues with stale surfaces and drawBlack ( b/189452267 )
- Fix race in accessing
complicationsManager.watchState( b/189457893 ) - Fix background thread lifetime bug ( b/189445428 )
- Fix Pre-R Watch face Editor issues ( b/189126313 )
- Don't update direct boot params for editor style changes ( b/187177307 )
Version 1.0.0-alpha15
June 2, 2021
androidx.wear:wear-*:1.0.0-alpha15 is released. Version 1.0.0-alpha15 contains these commits.
নতুন বৈশিষ্ট্য
The majority of watch face initialization is now done on a background thread, however after loading all watch face rendering etc is done on the UiThread. There is a memory barrier between loading and rendering so most user watch faces don't need to do anything special. Watch faces using GLES may be an exception since the context is thread specific and we create two linked contexts so it's possible to upload GL resources (eg textures and shaders) on the background thread and use them on the UiThread.
We have split the construction of watchfaces into three functions: createUserStyleSchema, createComplicationsManager and createWatchFace. We assume that createUserStyleSchema and createComplicationsManager are fast and createWatchFace may take some time to load assets. Taking advantage of this we have introduced WatchFaceControlClient.getDefaultProviderPoliciesAndType which returns a map of Complication Ids to DefaultComplicationProviderPolicies and the default ComplicationType. This is faster than creating a headless instance since it doesn't need to fully initialize the watch face to perform the query.
Finally complications are now constructed with a CanvasComplicationFactory which allows for lazy construction of the CanvasComplication renderers.
API Changes
- Replaced
@TargetApiwith@RequiresApi. ( I0184a , b/187447093 , b/187447094 ) - We have introduced
WatchFaceControlClient.getDefaultProviderPoliciesAndTypewhich returns a map of Complication Ids to DefaultComplicationProviderPolicies and the default ComplicationType. Where possible a fast path is used that avoids fully constructing a watch face. To facilitate this the WatchFaceService API has had to change with two new methods being: createUserStyleSchema and createComplicationsManager the results of which are passed into createWatchFace. In addition Complications are now constructed with a CanvasComplicationFactory which allows for lazy construction of the CanvasComplication renderers. ( Iad6c1 ) - We have removed MOST_RECENT_APP from SystemProviders. ( I3df00 )
- ObservableWatchData is now a sealed class. ( Ic940d )
- CanvasComplicationFactory.create (which is typically io bound) is now called on a background thread for each complication before ui thread rendering commences. There is a memory barrier between construction and rendering so no special threading primitives are required. ( Ia18f2 )
- Watchface construction is now done on a background thread although all rendering is done on the ui thread, GlesRenderer supports two linked contexts to support this. WatchFaceControlClient.createHeadlessWatchFaceClient and WatchFaceControlClient.getOrCreateInteractiveWatchFaceClient may resolve before WatchFaceService.createWatchFace has completed. Subsequent API calls will block until watchFace initialization has completed. ( Id9f41 )
- EXPANSION_DP and STROKE_WIDTH_DP are no longer visible in api.txt. ( I54801 )
- We have made EditorSession.createOnWatchEditingSession throw TimeoutCancellationException if there's an error instead of sending a null session. Additionally, the return value of EditorRequest.createFromIntent and EditorSession.createOnWatchEditingSession is now NonNull. ( I41eb4 )
Version 1.0.0-alpha14
May 18, 2021
androidx.wear:wear-*:1.0.0-alpha14 is released. Version 1.0.0-alpha14 contains these commits.
নতুন বৈশিষ্ট্য
-
EditorSession.openComplicationProviderChoosernow returns ChosenComplicationProvider which contains the complication id,ComplicationProviderInfoand a Bundle containing any additional extras returned by the provider chooser. - In addition we have been steadily migrating code to Kotlin and the majority of the watch face API is now defined in Kotlin.
API Changes
- GlesRenderer properties
eglContextandeglDisplayare now non-nullable. Any GL errors are now reported viaGlesRenderer.GlesExceptionrather than via RuntimeExceptions. ( Ib1005 ) - We have migrated
androidx.wear.watchface.complications.rendering.ComplicationDrawablefrom Java to Kotlin ( Ibc3eb ) - We have migrated
androidx.wear.watchface.complications.rendering.ComplicationStylefrom Java to Kotlin ( I3375e ) - We added information about the complication provider for each complication within EditorSession. ( I37f14 )
- We extended the result of
EditorSession.openComplicationProviderChooserto include information returned by the chosen. ( Iead6d )
Wear Complications & Watchface Version 1.0.0-alpha13
May 5, 2021
androidx.wear:wear-*:1.0.0-alpha13 is released. Version 1.0.0-alpha13 contains these commits.
নতুন বৈশিষ্ট্য
Watch faces can have important visual elements beyond showing the time and complications. To provide screen reader support for this, watchface can now specify accessibility ContentDescriptionLabels via the Renderer's additionalContentDescriptionLabels property. In addition, to control the ordering of ContentDescriptionLabels accessibilityTraversalIndex has been added to complications. This can be modified by a ComplicationsUserStyleSetting.
To encourage developers to carefully consider screen readers we have made
ShortTextComplicationData.Builder's,LongTextComplicationData.Builder's andRangedValueComplicationData.Builder'scontentDescriptionfield mandatory to be passed into their constructors. IfComplicationText.EMPTYis passed in for thecontentDescription, acontentDescriptionwill be automatically generated from the text and title.WatchFaceControlClient.getOrCreateInteractiveWatchFaceClientnow throwsServiceStartFailureExceptionif the watchface throws an exception during init, this makes it much easier to diagnose issues during watch face startup.
API Changes
- We added support for having a null component name in ComplicationProviderInfo, which is needed to support older versions of Wear OS. ( I744d2 )
- We have migrated
androidx.wear.complications.SystemProvidersfrom Java to Kotlin. ( Ia1f8b ) - We have hidden all classes from public API that are in android.support.wearable.complications and created corresponding wrappers in AndroidX where needed. ( I7bd50 )
- We have renamed method in
TimeDifferenceComplicationText.BuilderfromsetMinimumUnittosetMinimalTimeUnit. ( I20c64 ) - We have made
ShortTextComplicationData.Builder's,LongTextComplicationData.Builder's andRangedValueComplicationData.Builder'scontentDescriptionfield mandatory to be passed in constructor. ( I8cb69 ) - We have renamed ComplicationProviderService.onComplicationUpdate to onComplicationRequest and encapsulated id and type parameter of this method into data ComplicationRequest. Corresponding listener has been renamed to ComplicationRequestListener and its method ComplicationRequestListener.onComplicationData. ( Iaf146 )
- We have removed method
isActiveAtfromComplicationDataand exposed fieldvalidTimeRangeinstead of it. This method call can be replaced withvalidTimeRange.contains. ( I65936 ) - We have changed description of the method ComplicationProviderService.onComplicationActivated to receive a ComplicationType instead of an int. ( Idb5ff )
- Migrated ProviderUpdateRequester from Java to Koltin. ( Ibce13 )
- GlesRender.makeContextCurrent is now public. Watch face code may need to make gl calls outside of render and onGlContextCreated and because there may be both an interactive and a headless context its necessary to call this. ( I8a43c )
- WatchFaceControlClient.getOrCreateInteractiveWatchFaceClient now throws ServiceStartFailureException if the watchface throws during init. In addition WatchFaceService now throws an exception if createWatchFace takes longer than 6 seconds. ( I59b2f )
- We have removed the unused id property of
GlesTextureComplication. ( I28958 ) - The watchface can now specify accessibility ContentDescriptionLabels via the
Renderer's additionalContentDescriptionLabels property. In addition to controlling the ordering of ContentDescriptionLabels accessibilityTraversalIndex has been added to complications. This can be modified by a ComplicationsUserStyleSetting. ( Ib7362 ) - Expand documentation about touch event handling in the watch face. ( Iaf31e )
Bug Fixes
-
EditorSession.getComplicationsPreviewData()now returns a map for every rather only non-empty complications. An instance of EmptyComplicationData is used for empty complications. ( I1ef7e )
Wear Complications & Watchface Version 1.0.0-alpha12
April 21, 2021
androidx.wear:wear-*:1.0.0-alpha12 is released. Version 1.0.0-alpha12 contains these commits.
নতুন বৈশিষ্ট্য
Watch face editors need to highlight parts of the watch face to help convery which aspect of a watch is being configured. We've extended RenderParameters to allow styles as well as complications to be highlighted. There's a new optional HighlightLayer which is intended to be matted on top of the watch face with alpha transparency (the screenshot apis can do this matting for you, or provide the HighlightLayer on its own for maximum flexibility). Eg suppose you had a style that lets you configure the appearance of the watch hands, your renderer in its renderHighlightLayer can draw an outline around them.
To encourage Complication Provider support for accessibility we have made PhotoImageComplicationData.Builder's, MonochromaticImageComplicationData.Builder's and SmallImageComplicationData.Builder's contentDescription field to be a mandatory constructor argument. ComplicationTapFilter and Complication.createEdgeComplicationBuilder have been added to support edge complications (drawn around the edge of the screen). Rendering and hit testing of edge complications is left up to the watch face. Edge hit testing isn't supported from the companion editor.
API Changes
- Added
PROVIDER_prefix to constants in SystemProviders. ( I1e773 ) - We have made
PhotoImageComplicationData.Builder's,MonochromaticImageComplicationData.Builder's andSmallImageComplicationData.Builder'scontentDescriptionfield mandatory to be passed in constructor. ( I9643a ) -
ProviderInfoRetriever.requestPreviewComplicationDatahas been renamed toretrievePreviewComplicationData. ( I911ee ) - Migrated
ComplicationProviderServicefrom Java to Koltin. ( I849f2 ) - Method
ComplicationProviderService.onBindis now final ( I39af5 ) - We've reinstated interface
CanvasComplicationand movedCanvasComplicaitonDrawable,GlesTextureComplicationandComplicationHighlightRenderertowear-watchface-complications-rendering. ( I84670 ) -
RenderParametershas been refactored to support extended highlight rendering. It's now possible to request rendering of highlights for styles as well as all or a single complication. In addition CanvasRenderer and GlesRenderer how have a new abstract renderHighlightLayer method for rendering any highlighting requested by the editor. Layer has been renamed to WatchFaceLayer. ( Ic2444 ) -
ComplicationTapFilterandComplication.createEdgeComplicationBuilderhave been added to support edge complications. Rendering and hit testing of edge complications is left up to the watch face. Hit testing isn't supported from within editors. ( Ia6604 ) - For
DoubleRangeUserStyleSetting&LongRangeUserStyleSetting:defaultValue,maximumValueandminimumValueare now kotlin properties. In addition,UserStyleSetting.Optionfunctions like toBooleanOption, toCoplicationOptions, toListOption and similar have been removed. ( I52899 ) - Add chin size to the properties of the device available to the watch face. ( I76e1e )
-
ComplicationHighlightRenderer's constructor now acceptsoutlineExpansionandoutlineStrokeWidthparameters. ( I87009 ) -
ComplicationDrawable.getNoDataTextis now part of the public API. ( I00598 )
Version 1.0.0-alpha11
April 7, 2021
androidx.wear:wear-*:1.0.0-alpha11 is released. Version 1.0.0-alpha11 contains these commits.
নতুন বৈশিষ্ট্য
- More polish has been applied to the watch face APIs. Most of the changes are simple renamings but
InteractiveWatchFaceWcsClientandInteractiveWatchFaceSysUiClienthave been merged intoInteractiveWatchFaceClient.
API Changes
- ContentDescriptionLabel.text is now a ComplicationText rather than the old wearable support library TimeDependentText. ( I80c03 )
-
SystemProviders.GOOGLE_PAYis not guaranteed to be present on all Android R devices so it has been removed from the list. It's still possible to use this provider viaDefaultComplicationProviderPolicy( If01b5 ) - We've renamed ComplicationUpdateCallback to ComplicationUpdateListener for consistency. ( I61ec7 )
- The UserStyle wire format map has been changed to
Map<String, byte[]>and for convenience aUserStyleDataclass has been added to the public API and is now used by wear-watchface-client and wear-watchface-editor. In addition CustomValueUserStyleSetting.CustomValueOption.value is nowbyte[]instead ofString. ( Iaa103 ) -
UserStyleSettingandUserStyleSetting.Optionnow useUserStyleSetting.IdandUserStyleSetting.Option.Idrespectively to store their ids rather than a String. ( I63f72 ) -
InteractiveWatchFaceClient.SystemStatehas been renamed toWatchUiState. ( I6a4e0 ) -
InteractiveWatchFaceWcsClientandInteractiveWatchFaceSysUiClienthave been merged because it was hard to explain the division of responsibility ( Iff3fa ) - Layer enum values have been renamed for clarity.
Layer#TOP_LAYERis nowLayer#COMPLICATIONS_OVERLAYandLayer#BASE_LAYERis nowLayer#BASE( Ia144e ) -
UserStyleListenerhas been renamed toUserStyleChangeListener( I18524 ) -
UserStyleRepositoryhas been renamed toCurrentUserStyleRepository( I6ea53 ) -
InteractiveWatchFaceWcsClient.updateInstancehas been renamed toupdateWatchfaceInstance. ( I321dc ) - WatchFace TapType events have been renamed to align with MotionEvents / Compose. ( I0dfd0 )
- takeWatchfaceScreenshot has been renamed to renderWatchFaceToBitmap, and takeComplicationScreenshot has been renamed to renderComplicationToBitmap ( Ie0697 )
- The CanvasComplication interface has been removed in favor of the open class CanvasComplicationDrawable. ( I1f81f )
-
WatcfaceControlServiceFactoryhas been removed from the public api. ( I1f8d3 ) - We've renamed
CanvasComplication.setDatatoCanvasComplication.loadData. ( If1239 ) -
ComplicationsManager.bringAttentionToComplicationhas been renamed todisplayPressedAnimation. ( Ic4297 ) -
WatchFaceService.createWatchFacenow has an@UiThreadannotation. ( Ib54c2 ) - Changed the name of a CanvasComplicationDrawable parameter to fix a bug. ( I50dac )
- We've added
HeadlessWatchFaceClient.toBundle()andHeadlessWatchFaceClient.createFromBundleto support sendingHeadlessWatchFaceClientover AIDL. ( I07c35 ) - HeadlessWatchFaceClient and InteractiveWatchFaceClient now have ClientDisconnectListener and isConnectionAlive() to allow you to observe if the connection is broken for some reason (eg the watchface being killed). ( Ie446d )
-
WatchFaceControlClient#getOrCreateWallpaperServiceBackedInteractiveWatchFaceWcsClientAsyncis now a suspend function and has been renamed togetOrCreateInteractiveWatchFaceClient. ( Ib745d ) -
EditorState.commitChangesandhasCommitChanges()has been renamed toshouldCommitChanges(). ( I06e04 ) -
previewComplicationDatahas been renamed topreviewComplicationsDatato indicate theres (usually) more than one complication in the map. ( I56c06 ) -
InteractiveWatchFaceWcsClient.bringAttentionToComplicationhas been renamed todisplayPressedAnimationfor consistency withComplicationsManager.displayPressedAnimation. ( Ic9999 ) - All instances of watchface instance id have been encapsulated in a new WatchFaceId class ( I45fdf )
-
complicationStateproperty has been renamed tocomplicationsStateto indicate plurality. ( Ided07 ) - We've removed the various wear-watchface-client Binder conversions, they should be necessary. ( Icc4c0 )
- For consistency
EditorServiceClienthas been refactored to use listeners instead of observers. ( Iec3a4 ) - We've added a couple of missing
@Pxannotations toInteractiveWatchFaceSysUiClientandWatchFaceControlClient. ( I3277a ) - Renamed EditorObserverCallback to EditorObserverListener for consistency. ( Ie572d )
- EditorState.watchFaceInstanceId is restricted to Android R API level and above and is no longer nullable. ( Id52bb )
-
EditorSession.launchComplicationProviderChooserhas been renamed toopenComplicationProviderChooser. ( I9d441 ) -
EditorSession.createOnWatchEditingSessionAsynchas been renamed tocreateOnWatchEditingSessionand is now a suspend function. ( Id257b ) - Added several missing
@UiThreadannotations onEditorSession. ( I6935c ) -
UserStyleSetting.affectsLayershas been renamed toaffectedLayers. ( I6e22b )
Version 1.0.0-alpha10
March 24, 2021
androidx.wear:wear-*:1.0.0-alpha10 is released. Version 1.0.0-alpha10 contains these commits.
নতুন বৈশিষ্ট্য
- It's now possible to create open gl objects (eg textures) during WatchFaceService.createWatchFace because GlesRenderer now requires an explicit call to initOpenGLContext which can be done inside createWatchFace.
API Changes
-
IdAndComplicationDatawas a bit awkward and has been removed from the public API. Classes & interfaces that used it have been refactored. ( I4c928 ) - We've replaced
ReferenceTimewithCountUpTimeReferenceandCountDownTimeReferencewhich are more self explanatory. ( Ib66c6 ) - Added some missing
@Pxand@ColorIntannotations. ( I9bbc3 ) -
Complication.complicationConfigExtrasis now non-nullable and defaults toBundle.EMPTY. ( Iad04f ) -
GlesRenderernow requires you to callinitOpenGLContextafter construction. This function was an internal detail but is now on the public API to allow GL calls earlier inside createWatchFace. ( I726c2 ) - We've removed
Complication.setRendereras it should not be needed. ( Ie992f ) -
Complicaiton.setComplicationBoundsis no longer part of the public API. If you need to adjust the position of a complication, this can be done viaComplicationsUserStyleSetting. ( Ibd9e5 ) -
ComplicationsManager.TapCallback.onComplicationSingleTappedhas been renamed toonComplicationTapped. ( I3a55c ) -
ComplicationOutlineRenderer.drawComplicationSelectOutlinehas been renamed todrawComplicationOutline. ( I14b88 )
Version 1.0.0-alpha09
March 10, 2021
androidx.wear:wear-complications-*:1.0.0-alpha09 and androidx.wear:wear-watchface-*:1.0.0-alpha09 are released. Version 1.0.0-alpha09 contains these commits.
নতুন বৈশিষ্ট্য
- The interface between WCS/SysUI host and the on watch face has evolved. It's now possible for an editor to determine if a style change will enable or disable a complication (enabled = initiallyEnabled plus any override from ComplicationsUserStyleSetting). Also
EditorService.closeEditorallows SysUI to remotely close an on watch face editor if needed. - In addition
InteractiveWatchFaceWcsClient.setUserStylewith a more powerful commandupdateInstancewhich: changes the instance ID, sets the style, and clears complications all in one go.
API Changes
- TraceEvents have been added to the watchface libraries. ( I1a141 )
-
ComplicationStatenow has a new propertyinitiallyEnabledwhich is useful for predicting the consequences of switching styles. ( I8c905 ) - We've replaced
InteractiveWatchFaceWcsClient.setUserStylewith a more powerful commandupdateInstancewhich: changes the instance ID, sets the style, and clears complications. ( Ife6f6 ) - WatchFaceClient screenshot APIs no longer compress the screenshots because that was slow, instead we leave any post processing up to the caller. ( Id35af )
- It's now possible to remotely close an on watchface editor via
EditorService.closeEditor. ( Ic5aa4 ) - Added nullability annotations ( Ic16ed )
Version 1.0.0-alpha08
February 24, 2021
androidx.wear:wear-*:1.0.0-alpha08 is released. Version 1.0.0-alpha08 contains these commits.
নতুন বৈশিষ্ট্য
- Some watch faces are designed around one or more specific complications, to support this we've added Complication.Builder#setFixedComplicationProvider which if set to true prevents the user from changing the complication in that slot.
- The watchface libraries are Kotlin first and use coroutines (eg suspend functions). For Java users we've provided ListenableFuture wrappers to improve interoperability in the following libraries: wear/wear-watchface-guava, wear/wear-watchface-client-guava & wear/wear-watchface-editor-guava.
API Changes
- We've removed support for double taps on complications launching the provider chooser, this feature wasn't common in watchfaces and complicated the implementation of SysUI. ( I3ef24 )
- ProviderInfoRetriever methods may throw ServiceDisconnectedException if the binder closes unexpectedly. ( Ib2cc4 )
- From Android 11 onwards, there are restrictions on when the ProviderChooser can be run, in addition we'd like editors to be built with the new
wear-watchface-editorso ComplicationHelperActivity is being removed from the public API. ( Ib19c1 ) - Remove ComplicationText static methods in favor of builders. ( Ibe399 )
- We have introduced guava ListenableFuture wrappers for the various watch face library suspended methods. ( I16b2c )
- For API clarity we've added a secondary constructor to RenderParameters which doesn't require a tint, for use with LayerModes other than
LayerMode.DRAW_OUTLINED. ( I497ea ) - Previously ListUserStyleSetting was different from the other because it had a default argument. Now all the StyleSetting subclass constructors take the default value last. ( I9dbfd )
- CanvasComplication has been refactored to use have a hidden method, which makes it easier to implement a subclass ( I5b321 )
- We have refactored away EditorResult in favor of a new EditorService and
EditorSession.broadcastState()to stream updates to an observer (typically SysUI). ( Ic4370 ) - Some watchfaces are built around a particular complication as an integral part of the watch face where the provider is not user configurable. To support this we've added
Complication.Builder#setFixedComplicationProvider. ( I4509e ) - EditorRequest now specifies package name rather than ComponentName because it was inconvenient for SysUI to look up the class name of the editor, and we only really need the package name. ( Ib6814 )
Version 1.0.0-alpha07
February 10, 2021
androidx.wear:wear-*:1.0.0-alpha07 is released. Version 1.0.0-alpha07 contains these commits.
নতুন বৈশিষ্ট্য
- WatchFaceService.createWatchFace is now a suspend function which means the watchface no longer has to block the ui thread while waiting for IO. Similarly wear-watchface-editor and wear-complications-data
API Changes
- Remove PhotoImage class and use Icon directly. ( I8a70b )
- Expose the validTimeRange of ComplicationData. ( I91366 )
- Make image-like attributes more explicit. ( I81700 )
- wear-watchface-editor and wear-complications-data have been refactored to use suspend functions instead of coroutines. Rx java & Future compat wrappers to follow. ( If3c5f )
- ProviderInfoRetriever now now throws PreviewNotAvailableException if requestPreviewComplicationData can't return preview data due to connection issues or lack of API support. ( I4964d )
- WatchFaceControlService::createWatchFaceControlClient is now a suspended fuction and getOrCreateWallpaperServiceBackedInteractiveWatchFaceWcsClient is now called getOrCreateWallpaperServiceBackedInteractiveWatchFaceWcsClientAsync returning
Deferred<InteractiveWatchFaceWcsClient>. RX java and Future compat wrappers to follow. ( I5d461 ) - Rename
CATEGORY_PROVIDER_CONFIG_ACTIONtoCATEGORY_PROVIDER_CONFIG. ( I7c068 ) - Please note createOnWatchEditingSession is now a suspended function because the watchface sometimes isn't available until shortly after the editor activity has started. ( Ida9aa )
- WatchFaceService.createWatchFace is now a suspend function which allows for async initialization, previously you would have had to block the main thread. ( If076a )
- UserStyle now has an array operator and we've added casting helpers to UserStyle.Option. ( I35036 )
- We've fixed a marshalling bug with UserStyle wireformats changing some of the unstable hidden API. ( I8be09 )
- We've added CustomValueUserStyleSetting which lets you store a single application specific string within a UserStyle. The default watch face editors will ignore this value. ( Ic04d2 )
- InstanceID is not passed in the intent extras for R and older versions of Android WearOS which we can't upgrade. To support this we now allow InstancID to be null. ( Id8b78 )
- EditorRequest now includes the editor ComponentName which is set as the component in WatchFaceEditorContract.createIntent ( I3cd06 )
- The watchface EditorResult now includes preview ComplicationData to allow the caller to take a screenshot of the watchface after editing. ( I2c561 )
Bug Fixes
- Added toString() overrides to UserStyle, UserStyleSetting and UserStyleSchema which makes working with these classes a bit nicer. ( I9f5ec )
Version 1.0.0-alpha06
January 27, 2021
androidx.wear:wear-*:1.0.0-alpha06 is released. Version 1.0.0-alpha06 contains these commits.
নতুন বৈশিষ্ট্য
- We've introduced a new library wear/wear-watchface-editor which allows watch face developers and potentially OEMs to build a style and complication editor. SysUI will send an Intent to the watch face which will use the new EditorSession class to access WatchFace details and record the result via Activity.setWatchRequestResult. To support this we've added ProviderInfoRetriever.requestPreviewComplicationData which allows watch face editors to request preview ComplicationData. The advantage of preview ComplicationData is unlike live data you don't have to worry about showing permission dialogs when rendering your editor (note if a user selects a provider with a permission they will still be prompted to grant the permission).
API Changes
- ComplicationProviderInfo now has a field for the provider's ComponentName, support for this field will be added to WearOS at a later date and in the meantime, it will be null. ( Id8fc4 )
- We've added ProviderInfoRetriever.requestPreviewComplicationData which allows watch face editors to request preview ComplicationData. This is useful because live complications may require permissions and you can now display preview data for complications that are not active. ( I2e1df )
- ComplicationManager is now an optional parameter of WatchFace constructor and the arguments have been reordered to allow this. ( I66c76 )
- We've added an optional Bundle to Complications which if set gets merged in with the intent sent to launch the provider chooser activity. ( Ifd4ad )
- We've added a new
wear-watchface-editorlibrary to support on watch face and SysUi hosted editors. SysUI will launch these editors by sending an intent. The watch face activity service can use the new EditorSession class to access WatchFace details and record the result via Activity.setWatchRequestResult. ( I2110d ) - LayerMode.DRAW_HIGHLIGHTED is now called LayerMode.DRAW_OUTLINED and RenderParameters.highlightComplicationId is now called RenderParameters.selectedComplicationId which draws a highlight on the specified complication in addition to an outline. ( I90a40 )
- WatchFaceControlClient.getOrCreateWallpaperServiceBackedInteractiveWatchFaceWcsClient's future can now resolve with a ServiceStartFailureException if the service dies while waiting for the watchface to be created. ( I0f509 )
- EditorSession.complicationPreviewData is now a ListenableFuture because fetching this data is an asynchronous process. ( Iead9d )
Bug Fixes
- We're removing unused fields from ComplicationOverlay leaving enabled and complicationBounds. ( I17b71 )
Version 1.0.0-alpha05
January 13, 2021
androidx.wear:wear-*:1.0.0-alpha05 is released. Version 1.0.0-alpha05 contains these commits.
নতুন বৈশিষ্ট্য
Watchfaces often support a number of complication configurations with varying numbers of complications shown. To make this easier to set up we now support initially disabled complications by calling setEnabled(false) on the builder. These can be enabled later via ComplicationsUserStyleSetting.
API Changes
- ComplicationHelperActivity now accepts
Collection<ComplicationType>rather than an int array making it easier to use. ( I1f13d ) -
ProviderInfoRetriever.retrieveProviderInfonow correctly returnsListenableFuture<ProviderInfo[]>. ( If2710 ) - You can now create an initially disabled complication by calling setEnabled(false) on the builder. ( Idaa53 )
- WatchFaceState now has an isHeadless property which is only true for headless instances. ( Ifa900 )
- ComplicationDrawable now optionally supports synchronous loading of drawables. This is used by the screenshot APIs. ( I34d4a )
Version 1.0.0-alpha04
December 16, 2020
androidx.wear:wear-*:1.0.0-alpha04 is released. Version 1.0.0-alpha04 contains these commits.
নতুন বৈশিষ্ট্য
- The wear watch face library now supports setting bounds per type. Eg you can switch to a wide bounding box for ComplicationType.LONG_TEXT whilst using a smaller bounding box for other types.
API Changes
- Complications now use ComplicationBounds which wraps a
Map<ComplicationType, RectF>to support per complication type sizes. ( I1ebe7 ) - RenderParameters now lets you specify the highlight tint for use in screen shots. ( Iff42b )
- With the exception of bounds you now have to use ComplicationsUserStyleSetting to modify complications, this is to ensure the OS is kept in sync. ( I8dc5d )
- Renderer is now a sealed class. This means CanvasRenderer and GlesRenderer are now inner classes of Renderer. ( Iab5d4 , b/173803230 )
- CanvasComplicationDrawable.drawHighlight renamed to drawOutline. ObservableWatchData now has a few missing UiThread annotations. ScreenState has now been fully removed from WatchState. ( If1393 )
- The minimum API level for wear-watchface is now 25. Note hardware canvas support requires API level 26 or above. ( Ic9bbd )
- InteractiveWatchFaceWcsClient now has a getComplicationIdAt helper. ( I05811 )
- The API level for wear-watchface-client has been reduced to 25, however the screen shot APIs require API level 27. ( Id31c2 )
Bug Fixes
- We now expose the complication's current ComplicationData's ComplicationType in ComplicationState. ( I9b390 )
- InteractiveWatchFaceWcs now has a method `bringAttentionToComplication to briefly highlight the specified complication. ( I6d31c )
-
InteractiveWatchFaceWcsClient#setUserStylenow has an overload accepting Mapwhich can potentially avoid an extra IPC round trip necessary to construct UserStyle. ( I24eec )
Version 1.0.0-alpha03
December 2, 2020
androidx.wear:wear-*:1.0.0-alpha03 is released. Version 1.0.0-alpha03 contains these commits.
নতুন বৈশিষ্ট্য
The Complication class now has a compicationData property letting watch faces observe ComplicationData changes. This makes it possible to change the complication's dimensions based on the type of the complication.
Variable frame rates are now supported by assigning to Renderer.interactiveDrawModeUpdateDelayMillis. For watch faces which run short animations every second this can lead to good power savings by going to sleep when not animating.
API Changes
-
BACKGROUND_IMAGEhas been renamed toPHOTO_IMAGEalong with related classes. This type of complication is not exclusively used for backgrounds hence the name change. ( I995c6 ) - DefaultComplicationProviderPolicy properly annotated with IntDefs. ( I3b431 )
- The hidden TimeDependentText class is no longer exposed via ContentDescriptionLabel, instead we add an accessor to get the text at a specified time. ( Ica692 )
- ObservableWatchData's constructor is now internal. ( I30121 , b/173802666 )
- Complication now has compicationData letting watch faces observe ComplicationData changes. Complication also has a new isActiveAt call which can be used to tell if anything should be rendered at the provided datetime. ( Ic0e2a )
- The empty
SharedMemoryImageis no longer in the public API. ( I7ee17 ) -
WatchFace.overridePreviewReferenceTimeMillisnow has an IntRange annotation and the getter and setter have consistent names. ( Ia5f78 ) -
Complication.Builderis now created viaComplication.createRoundRectComplicationBuilderorComplication.createBackgroundComplicationBuilderfor clarity ( I54063 ) - Added WatchFace.TapListener which allows taps not consumed by complications to be observed by the WatchFace. ( Ic2fe1 , b/172721168 )
- WatchFace now supports variable frame rates by assigning to
Renderer.interactiveDrawModeUpdateDelayMillis. This can help preserve battery life by sleeping when not animating. ( I707c9 ) - WatchFace.Builder is no longer needed and invalidate() and interactiveUpdateRateMillis have been moved to Renderer. ( I329ea )
- For better java interoperability renamed getters for boolean properties in WatchState ( I6d2f1 )
- Renamed TapListener to TapCallback and InvalidateCallback to InvalidateListener for consistency. ( I9414e )
- Wear 2.0 watchface style options have been moved to their own class for clarity. WatchFace.Builder setters now have symmetrical WatchFace class getters. ( Iefdfc )
- Added InteractiveWatchFaceWcsClient and
WatchFaceControlClient.getOrCreateWallpaperServiceBackedInteractiveWatchFaceWcsClientwhich either gets an existing instance or creates it once the wallaper service has connected and made the engine. ( Id666e ) - WatchFaceControlClient is now an interface to allow tests to mock it. ( I875d9 )
- HeadlessWatchFaceClient, InteractiveWatchFaceSysUiClientImpl, InteractiveWatchFaceWcsClient are now interfaces to better facilitate testing. ( I7cdc3 )
- Added annotations to methods in
wear-watchface-complications-rendering( I0d65c )
Bug Fixes
- Remove screen shape from DeviceConfig, which was duplicating
android.content.res.Configuration#isScreenRound()( Ifadf4 ) - Changed
WatchFaceControlClient.getOrCreateWallpaperServiceBackedInteractiveWatchFaceWcsClientto accept aMap<String, String>instead ofUserStylebecause it's hard to create aUserStylewithout knowing the schema which you can only get after the client has been created. ( Iea02a ) - Fix
InteractiveWatchFaceWcsClientto useComplicationStateinstead of the wire format. ( Icb8a4 ) -
UserStyleSettingsis now a sealed class because the watch face editors only understand the built in classes. ( I2d797 )
Version 1.0.0-alpha02
November 11, 2020
androidx.wear:wear-*:1.0.0-alpha02 is released. Version 1.0.0-alpha02 contains these commits.
API Changes
-
ComplicationDetailsis now calledComplicationStateand is properly wrapped and usages of wearable support@ComplicationData.ComplicationTypehave been migrated to androidxComplicationType. ( I4dd36 ) - Add an optional
highlightedComplicationIdparameter to RenderParameters which allows you to request highlighting of a single complication in screenshots. ( I66ce9 ) -
ComplicationProviderServiceto use new style complication api for consistency ( Id5aea ) -
getPreviewReferenceTimeMillisnow gets reference times fromDeviceConfig. ( I779fe ) - Simplifying Renderer API surface, can use
SurfaceHolder.Callbackto observe changes instead. ( I210db ) -
CanvasComplicationRendererdoesn't extend fromRenderer, renaming it for clarity. ( Ibe880 )
Bug Fixes
- First version of
androidx.wear:wear-watchface-client( I1e35e ) - Changed the name of
GlesTextureComplication#rendererfor clarity ( Ib78f7 ) - Rename
StyleCategorytoStyleSettingfor clarity ( I488c7 ) - Adding
UserStyleSchemafor a cleaner API ( If36f8 )
Version 1.0.0-alpha01
October 28, 2020
androidx.wear:wear-complications-*:1.0.0-alpha01 and androidx.wear:wear-watchface-*:1.0.0-alpha01 are released. Version 1.0.0-alpha01 contains these commits.
API Changes
- Removed some things we didn't intend to expose in public api. ( I41669 )
- Create
androidx.wear:wear-complications-providerlibrary. ( I77f1f ) - ComplicationsUserStyleCategory the new recommended category for configuring complications ( I96909 )
- Add wear-complication-data API. ( I7c268 )
- Functions with boolean return values to be prefixed with “is” rather than “get” ( If36ff )
- API advice is to avoid using protected so this class has been refactored to take parameters in via the constructor. ( I61644 )
- Rename setBackgroundComplication for clarity. ( I96fe3 )
- Use Kotlin properties for ComplicationDrawable isHighlighted & data ( I4dcc8 )
- Instead of ComplicationRenderer.InvalidateCallback we add Complication#invalidate() ( I4f4c6 )
- These APIs are being deprecated in WearableSupport and are removed here. ( Ib425c )
- Renamed some WatchFace builder methods to emphasize their wear 2.0 legacy nature. ( Idb775 )
- First beta API candidate for wear/wear-watchface ( Id3981 )
- First tracked version of the API. ( Ie9fe6 )
- Properly hiding ComplicationDrawable.BorderStyle IntDef and move to ComplicationStyle for consistency. ( I27f7a )
- Adding missing annotations for ComplicationStyle methods ( I838fd )
- This library has no public API surface ( I88e2b )
- All style category Option classes are now properly final. ( Ib8323 )
- First tracked version of the API. ( I27c85 )
Bug Fixes
- Changed ComplicationProviderService to have an explicit getComplicationPreviewData method. ( I4905f )
- API lint check for MissingGetterMatchingBuilder is enabled for androidx ( I4bbea , b/138602561 )
- Rename wear-complications-rendering. ( Ifea02 )
- Style category display names are now CharSequences ( I28990 )
- Replacing Override with Overlay to match current themes & styles naming conventions. ( I4fde9 )
- Renamed UserStyle#getOptions for clarity. ( I695b6 )