All Projects → Lobster-King → IQService

Lobster-King / IQService

Licence: MIT license
iOS端模块间通信解决方案。

Programming Languages

objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to IQService

snippets-service
Service powering snippets on Firefox's about:home.
Stars: ✭ 32 (+88.24%)
Mutual labels:  service
ngx-malihu-scrollbar
Angular 2+ scrollbar customization using Malihu jQuery Custom Scrollbar plugin
Stars: ✭ 59 (+247.06%)
Mutual labels:  service
webApi-angularjs
⚓ Definitely simplifies your work with server side & organizes webApi layout to further managing.
Stars: ✭ 15 (-11.76%)
Mutual labels:  service
MiniSuperApp-fastcampus
슈퍼앱 운영을 위한 확장성 높은 앱 아키텍처 구축 by 노수진 https://fastcampus.co.kr/dev_red_rsj
Stars: ✭ 209 (+1129.41%)
Mutual labels:  ios-architecture
chrly
Lightweight implementation of Minecraft skins system server. It's packaged and distributed as a Docker image.
Stars: ✭ 23 (+35.29%)
Mutual labels:  service
super-mario-message
Display custom messages in a Super Mario Bros environment
Stars: ✭ 18 (+5.88%)
Mutual labels:  service
background-service-lib
Essential classes for reliable background services.
Stars: ✭ 24 (+41.18%)
Mutual labels:  service
dklb
Expose Kubernetes services and ingresses through EdgeLB.
Stars: ✭ 13 (-23.53%)
Mutual labels:  service
lion
A simple, modular Discord bot from scratch
Stars: ✭ 15 (-11.76%)
Mutual labels:  service
My Android Garage
A quick reference guide for Android development.
Stars: ✭ 66 (+288.24%)
Mutual labels:  service
gps-permission-checks-livedata
Sample project to demonstrate how GPS and Runtime Location Permission checks can be done on UI and Background Service using LiveData
Stars: ✭ 37 (+117.65%)
Mutual labels:  service
tower-lsp
Language Server Protocol implementation written in Rust
Stars: ✭ 455 (+2576.47%)
Mutual labels:  service
intuit-spring-cloud-config-inspector
Inspection of Spring Cloud Config properties made easy using React
Stars: ✭ 18 (+5.88%)
Mutual labels:  service
ember-contextual-services
Services in Ember are scoped to the app as a whole and are singletons. Sometimes you don't want that. :) This addon provides ephemeral route-based services.
Stars: ✭ 20 (+17.65%)
Mutual labels:  service
ngx-localstorage
An Angular wrapper for localstorage/sessionstorage access.
Stars: ✭ 27 (+58.82%)
Mutual labels:  service
WPWatcher
Wordpress Watcher is a wrapper for WPScan that manages scans on multiple sites and reports by email and/or syslog. Schedule scans and get notified when vulnerabilities, outdated plugins and other risks are found.
Stars: ✭ 34 (+100%)
Mutual labels:  service
InitKit
Neo-InitWare is a modular, cross-platform reimplementation of the systemd init system. It is experimental.
Stars: ✭ 364 (+2041.18%)
Mutual labels:  service
gogen
Command-line tool to generate GO applications and libraries
Stars: ✭ 17 (+0%)
Mutual labels:  service
LGTVCompanion
Power On and Off WebOS LG TVs together with your PC
Stars: ✭ 420 (+2370.59%)
Mutual labels:  service
mqtt-android-tutorial
A tutorial for using the MQTT Android Service.
Stars: ✭ 37 (+117.65%)
Mutual labels:  service

IQService

iOS端模块间通信解决方案。

使用方式

一、通过Cocoapods引入工程。

pod 'IQService'

二、编写一个服务类。

首先创建LoginModuleCookieService类,并将该类注册到LoginModule中。

.h声明
#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface LoginModuleCookieService : NSObject

- (NSString *)getCookieWithSignature:(NSString *)signature;

@end

NS_ASSUME_NONNULL_END
.m实现
#import "LoginModuleCookieService.h"

@implementation LoginModuleCookieService

- (NSString *)getCookieWithSignature:(NSString *)signature {
    return [NSString stringWithFormat:@"%@->cookie",signature];
}

@end

三、调用该服务:

同步调用
NSString *cookie = [IQService invokeMicroServiceSync:@"GetCookieSyncService",@"我是同步调用",nil];
NSLog(@"%@",cookie);
异步调用
void (^callBack)(NSString *) = ^(NSString *cookie){
        NSLog(@"%@",cookie);
    };
[IQService invokeMicroService:@"GetCookieAsyncService",@"我是异步调用",callBack,nil];

IQService路线图

  • 支持多种注册方式,动态注册,注解方案等。目前仅支持静态注册。
  • 在编译期进行参数有效性校验。

联系我

PRs or Issues.
Email:[email protected]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].