Android Wear Reply

Library to simplify replying on a wearable device

Лицензия

Лицензия

Группа

Группа

com.klinkerapps
Идентификатор

Идентификатор

wearable-reply
Последняя версия

Последняя версия

1.0.1
Дата

Дата

Тип

Тип

aar
Описание

Описание

Android Wear Reply
Library to simplify replying on a wearable device
Ссылка на сайт

Ссылка на сайт

https://github.com/klinker24/wearable-reply
Система контроля версий

Система контроля версий

https://github.com/klinker24/wearable-reply

Скачать wearable-reply

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.klinkerapps/wearable-reply/ -->
<dependency>
    <groupId>com.klinkerapps</groupId>
    <artifactId>wearable-reply</artifactId>
    <version>1.0.1</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.klinkerapps/wearable-reply/
implementation 'com.klinkerapps:wearable-reply:1.0.1'
// https://jarcasting.com/artifacts/com.klinkerapps/wearable-reply/
implementation ("com.klinkerapps:wearable-reply:1.0.1")
'com.klinkerapps:wearable-reply:aar:1.0.1'
<dependency org="com.klinkerapps" name="wearable-reply" rev="1.0.1">
  <artifact name="wearable-reply" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.klinkerapps', module='wearable-reply', version='1.0.1')
)
libraryDependencies += "com.klinkerapps" % "wearable-reply" % "1.0.1"
[com.klinkerapps/wearable-reply "1.0.1"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
com.android.support » recyclerview-v7 jar 25.4.0

Модули Проекта

Данный проект не имеет модулей.

feature graphic

Wearable Reply

While Google made a very nice wearable activity to reply to notifications, they didn't make a good Intent to compose text within apps running Android Wear 2.0. This library aims to simplify allowing text input in your app, via voice, keyboard, or canned responses. Google really should have provided something like this from the start, and not juse kept it for notifications.

Including It In Your Project

To include it in your project, add this to your module's build.gradle file:

dependencies {
	...
	compile 'com.klinkerapps:wearable-reply:1.0.01
}

Usage is really simple. Start the reply activity with:

WearableReplyActivity.start(activity);
WearableReplyActivity.start(activity, R.array.reply_options);
WearableReplyActivity.start(activity, new String[] {"test 1", "test 2" });

If you omit the String[] or the array resource, the WearableReplyActivity will display the default canned responses: "Yes", "No", "Maybe", "Ok", and "Thanks".

When the user has done the text input, the results will be delivered to your Activity#onActivityResult method, and can be pulled with:

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);

    String result = WearableReplyActivity.getResultText(data);
    if (result != null) {
        Toast.makeText(this, result, Toast.LENGTH_SHORT).show();
    }
}

Contributing

Please fork this repository and contribute back using pull requests. Features can be requested using issues. All code, comments, and critiques are greatly appreciated.

Changelog

The full change log for the library can be found here.

License

Copyright 2017 Luke Klinker

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Версии библиотеки

Версия
1.0.1
1.0.0