ng-yunzai-mobile
Version:
1. 适配yunzai_uni_app_x
43 lines (42 loc) • 1.98 kB
TypeScript
import { BaseDevice } from "./base.device";
import { HttpClient } from "@angular/common/http";
import { BaseClient } from "../client/base.client";
import { IWindow } from "./model/window";
import { ITitle } from "./model/title";
import { NavigationBar } from "./model/navigationbar";
import { IShare } from "./model/share";
import { Itoken } from "../auth/itoken";
import { Observable } from "rxjs";
import { UserLocation } from "./model/location";
import { Title } from "@angular/platform-browser";
import { TokenService } from "../token/token.service";
import { UserService } from "../user/user.service";
export declare class WechatMp extends BaseDevice {
private tokenService;
private http;
private user;
private title;
private baseclient;
constructor(tokenService: TokenService, http: HttpClient, user: UserService, title: Title, baseclient: BaseClient);
auth(): Promise<any>;
private authByConfiguredUserPass;
openWindow(iwindow: IWindow): void;
setTitle(ititle: ITitle): void;
setNavigationBar(navigationBar: NavigationBar): void;
share(ishare: IShare): void;
getToken(): Itoken;
scanCode(): Observable<string>;
userLocation(): Observable<UserLocation>;
validateInWifi(bssids: string[]): Observable<boolean>;
getWifiMac(): Observable<string>;
generateWechatConfig(): void;
chooseContacts(count: number): Observable<any>;
contactDetails(targetUserId: string): Observable<any>;
uploadImage(count: number, sourceType: any): Observable<any>;
openReadWithTimer(url: any, openType: any, title: any, id: any, type: any): Observable<any>;
uploadMovie(limitMinute: number): Observable<any>;
fileBrowser(url: string, title: string): Observable<any>;
startSearchBeacons(ticket: string, callback: (argv: any) => void): void;
stopSearchBeacons(callback: (argv: any) => void): void;
onSearchBeacons(callback: (argv: any) => void): void;
}