Skip to content

Commit

Permalink
fix. typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Matrixbirds committed Aug 18, 2019
1 parent f036b50 commit 913c058
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 74 deletions.
2 changes: 1 addition & 1 deletion android/src/main/java/com/syan/agora/AgoraModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -1572,7 +1572,7 @@ public void createDataStream(ReadableMap options, Promise promise) {
}

@ReactMethod
public void methodisSpeakerphoneEnabled(Callback callback) {
public void isSpeakerphoneEnabled(Callback callback) {
WritableMap map = Arguments.createMap();
map.putBoolean("status", AgoraManager.getInstance().mRtcEngine.isSpeakerphoneEnabled());
callback.invoke(map);
Expand Down
2 changes: 1 addition & 1 deletion ios/RCTAgora/RCTAgora.m
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ - (NSDictionary *)constantsToExport {
}

// is speaker phone enabled
RCT_EXPORT_METHOD(methodisSpeakerphoneEnabled:(RCTResponseSenderBlock)callback) {
RCT_EXPORT_METHOD(isSpeakerphoneEnabled:(RCTResponseSenderBlock)callback) {
callback(@[@{@"status": @([self.rtcEngine isSpeakerphoneEnabled])}]);
}

Expand Down
42 changes: 21 additions & 21 deletions lib/RtcEngine.native.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ declare class RtcEngine {
* @param callback
* @return any
*/
static methodisSpeakerphoneEnabled(callback: Callback<any>): any;
static isSpeakerphoneEnabled(callback: Callback<any>): any;
/**
* enable in-ear monitor
*
Expand Down Expand Up @@ -566,7 +566,7 @@ declare class RtcEngine {
/**
* stop play effect for audio mixing
*
* This methods stops the specified effect for audio mixing file by soundid.
* This methods stops the specified effect for audio mixing file by soundId.
* @param sounid
* @return Promise<{success, value}>
*/
Expand All @@ -581,41 +581,41 @@ declare class RtcEngine {
/**
* preload effect for audio mixing file.
*
* This methods preloads the specified audio mixing file to memory by the soundid
* @param soundid
* @param filepath
* This methods preloads the specified audio mixing file to memory by the soundId
* @param soundId
* @param filePath
* @return Promise<{success, value}>
*/
static preloadEffect(soundId: number, filepath: string): Promise<any>;
static preloadEffect(soundId: number, filePath: string): Promise<any>;
/**
* unload effect
*
* This methods unload the already loaded audio mixing file from memory by the soundid.
* @param soundid
* This methods unload the already loaded audio mixing file from memory by the soundId.
* @param soundId
* @return Promise<{success, value}>
*/
static unloadEffect(soundId: number): Promise<any>;
/**
* pause the specified effect for audio mixing by soundid
* pause the specified effect for audio mixing by soundId
*
* This method pauses the specified effect for audio mixing by soundid.
* @param soundid
* This method pauses the specified effect for audio mixing by soundId.
* @param soundId
* @return Promise<{success, value}>
*/
static pauseEffect(soundId: number): Promise<any>;
/**
* pause all effects for audio mixing
*
* This method pause all effects for audio mixing.
* @param soundid
* @param soundId
* @return Promise<{success, value}>
*/
static pauseAllEffects(): Promise<any>;
/**
* resume audio mixing effect by the specified soundid
* resume audio mixing effect by the specified soundId
*
* This method resumes audio mixing effect by the specified soundid
* @param soundid
* This method resumes audio mixing effect by the specified soundId
* @param soundId
* @return Promise<{success, value}>
*/
static resumeEffect(soundId: number): Promise<any>;
Expand Down Expand Up @@ -728,7 +728,7 @@ declare class RtcEngine {
*
* @return Promise<{success, value}>
*/
static removclearVideoWatermarkse(): Promise<any>;
static clearVideoWatermarks(): Promise<any>;
/**
* set local publish fallback
*
Expand Down Expand Up @@ -897,12 +897,12 @@ declare class RtcEngine {
*
* This method sets the log file generated path and specified the log level.
*
* @param filepath string
* @param filePath string
* @param level enum
* @param maxfileSize integer (KB)
* @return Promise<{success, value}>
*/
static setLog(filepath: string, level: number, maxfileSize: number): Promise<any>;
static setLog(filePath: string, level: number, maxfileSize: number): Promise<any>;
/**
* add publish stream url
*
Expand Down Expand Up @@ -1037,17 +1037,17 @@ declare class RtcEngine {
*
* This method sets the priority of a remote user's media stream.
* @param uid number
* @param userPriority number | The value range is [50 is "user's priority is hgih", 100 is "the default user's priority is normal"]
* @param userPriority number | The value range is [50 is "user's priority is high", 100 is "the default user's priority is normal"]
*
* @return Promise<any>
*/
static setRemoteUserPriority(uid: number, userPrority: number): Promise<any>;
static setRemoteUserPriority(uid: number, userPriority: number): Promise<any>;
/**
* start an audio call test.
*
* note:
* Call this method before joining a channel.
* After calling this method, call the stopEchoTest method to end the test. Otherwise, the app cannot run the next echo test, or call the joinchannel method.
* After calling this method, call the stopEchoTest method to end the test. Otherwise, the app cannot run the next echo test, or call the joinChannel method.
* In the Live-broadcast profile, only a host can call this method.
* This method will start an audio call test with interval parameter.
* In the audio call test, you record your voice. If the recording plays back within the set time interval, the audio devices and the network connection are working properly.
Expand Down
50 changes: 25 additions & 25 deletions lib/RtcEngine.native.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 913c058

Please sign in to comment.