Ergo


Лицензия

Лицензия

Группа

Группа

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

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

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

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

0.2.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

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

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

https://github.com/nhaarman/Ergo
Система контроля версий

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

https://github.com/nhaarman/Ergo

Скачать library

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

<!-- https://jarcasting.com/artifacts/com.nhaarman.ergo/library/ -->
<dependency>
    <groupId>com.nhaarman.ergo</groupId>
    <artifactId>library</artifactId>
    <version>0.2.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.nhaarman.ergo/library/
implementation 'com.nhaarman.ergo:library:0.2.2'
// https://jarcasting.com/artifacts/com.nhaarman.ergo/library/
implementation ("com.nhaarman.ergo:library:0.2.2")
'com.nhaarman.ergo:library:jar:0.2.2'
<dependency org="com.nhaarman.ergo" name="library" rev="0.2.2">
  <artifact name="library" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.nhaarman.ergo', module='library', version='0.2.2')
)
libraryDependencies += "com.nhaarman.ergo" % "library" % "0.2.2"
[com.nhaarman.ergo/library "0.2.2"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

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

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

Ergo (Deprecated) Build Status

Ergo is an Android library for easily executing tasks using IntentServices. Feel free to use it all you want in your Android apps provided that you cite this project and include the license in your app.

About

Often developers use an AsyncTask for executing tasks such as downloading data. Handling state changes can be a real PITA.
Ergo provides a way of executing these tasks using IntentServices and ResultReceivers. State changes are handled by storing the ResultReceiver (which is bound to the IntentService), and binding proper callbacks again.

Usage

Add the following to your build.gradle:

dependencies {
    compile 'com.nhaarman.ergo:library:0.2.+'
}
  • Extend ErgoService
    • Implement createTask(Intent)
  • Extend ErgoActivity or ErgoFragment
    • Implement onCreateReceivers()
    • Start your ErgoService using ErgoService.startService(Context, Intent, ResultReceiver)

A code example will be available soon.

License

Copyright 2014 Niek Haarman

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.

έργο is Greek for 'task'.

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

Версия
0.2.2
0.2.1
0.2.0
0.1.0