CN106959847A - The login method and device of a kind of application program - Google Patents

The login method and device of a kind of application program Download PDF

Info

Publication number
CN106959847A
CN106959847A CN201710091102.2A CN201710091102A CN106959847A CN 106959847 A CN106959847 A CN 106959847A CN 201710091102 A CN201710091102 A CN 201710091102A CN 106959847 A CN106959847 A CN 106959847A
Authority
CN
China
Prior art keywords
login
registration conditions
application program
login frame
frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710091102.2A
Other languages
Chinese (zh)
Other versions
CN106959847B (en
Inventor
汪刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710091102.2A priority Critical patent/CN106959847B/en
Publication of CN106959847A publication Critical patent/CN106959847A/en
Application granted granted Critical
Publication of CN106959847B publication Critical patent/CN106959847B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present invention provides a kind of login method and device of application program, and this method includes:Operation scenario based on user, sets certain amount registration conditions;Create the login frame of each registration conditions of correspondence;And when trigger registration conditions when, eject to should registration conditions login frame.The present invention solving the problem of eject at random login frame, influence Consumer's Experience regardless of occasion, while the login frame by creating each registration conditions of correspondence, solve causes the problem of user can not effectively distinguish different operating scene because login frame is identical.

Description

The login method and device of a kind of application program
Technical field
The present invention relates to field of computer technology, more particularly, to the login method and device of application program.
Background technology
With the development of internet, user is more and more using app scene, either electric business class, social class, video class Or game class app, is intended to user and goes login, and user data can just be recorded by logging in app, track user behavior, some app User is forced to go to log in, such as QQ or wechat.
For Stream Media Application program, the Stream Media Application program live in particular for playing main broadcaster, user's is minimum Use demand is that viewing main broadcaster is live, and does not need login application program, only when user needs and main broadcaster interacts, for example, is closed Note main broadcaster, give a present thing to main broadcaster or just needs login application program when main broadcaster room sends barrage, if application program is not Consider the demand of user, login frame is arbitrarily ejected regardless of occasion, part app even forces User logs in, has a strong impact on user Experience, and experience the bad loyalty and degree of liking that will necessarily reduce user to the application program.
Therefore, when eject login frame and eject which kind of login frame, urgent need finds out a rational scheme.
The content of the invention
The present invention provides a kind of login for the application program for overcoming above mentioned problem or solving the above problems at least in part Method and apparatus.
According to an aspect of the present invention there is provided a kind of login method of application program, including:
S1, the operation scenario based on user, set certain amount registration conditions;
S2, the login frame for creating each registration conditions of correspondence;And
S3, when trigger registration conditions when, eject to should registration conditions login frame.
According to another aspect of the present invention there is provided a kind of entering device of application program, including:
Registration conditions module, for the operation scenario based on user, sets registration conditions;
Login frame module is created, the login frame for creating each registration conditions of correspondence;And
Eject login frame module, for when trigger registration conditions when, eject to should registration conditions login frame.
The application proposes a kind of login method and device of application program, is set and logged in by the operation scenario based on user Condition, solving the problem of eject at random login frame influence Consumer's Experience regardless of occasion, while by creating each login bar of correspondence The login frame of part, solving all login frames and duplicating causes user effectively to distinguish different operating scene, or even aestheticly tired The problem of.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the login method of the application program according to the embodiment of the present invention.
Embodiment
With reference to the accompanying drawings and examples, the embodiment to the present invention is described in further detail.Implement below Example is used to illustrate the present invention, but is not limited to the scope of the present invention.
In order to overcome application program in the prior art not consider the demand of user, regardless of any ejection login frame in occasion ground, The problem of caused reduction user is to the loyalty of the application program and degree of liking, the present invention provides a kind of login of application program Method.
Fig. 1 shows the schematic flow sheet of the login method of the application program of the embodiment of the present invention, as figure shows, including:
S1, the operation scenario based on user, set certain amount registration conditions;
S2, the login frame for creating each registration conditions of correspondence;And
S3, when trigger registration conditions when, eject to should registration conditions login frame.
The present invention sets registration conditions by the operation scenario based on user, solves and ejects login frame at random regardless of occasion The problem of influenceing Consumer's Experience, while the login frame by creating each registration conditions of correspondence, solves that all login frames are identical to lead Family of applying can not effectively distinguish different operating scene, or even the problem of aestheticly tired.
In one embodiment, the application program is for playing live Stream Media Application program.
Streaming Media, is called streaming video, is the media broadcast when passing, is multimedia one kind.Broadcast when passing and refer to media Provider is at " simultaneously " of transmission over networks media, and user one side constantly receives and watched or listened to the media being transmitted. " stream " of " stream " media refers to the transmission means (mode of stream) of this media, and does not imply that media in itself.
Live is a kind of entertainment form of current popular, and main broadcaster is by live platform application direct broadcasting room, you can exist at any time Carried out in direct broadcasting room it is live, user can main broadcaster carry out it is live when, watch that main broadcaster's is live in direct broadcasting room.
In one embodiment, the registration conditions in the step S1 include:When user interacts or logged in main broadcaster During the individual center of application program, login frame is ejected.
In one embodiment, user and main broadcaster interact including:User pays close attention to the direct broadcasting room of main broadcaster, given a present to main broadcaster Thing, in main broadcaster room send barrage and main broadcaster's live broadcasting reminding.
After user pays close attention to the direct broadcasting room of main broadcaster, the information of the direct broadcasting room is to be attributed in the personal information of user, Yong Hu When next time opens application program, the direct broadcasting room can be quickly found by the concern column in personal information.
It is so-called to be given a present thing to main broadcaster, i.e., the behavior for evaluating main broadcaster's popularity value is sent to main broadcaster, present is not limited to charge or exempted from Take.
Main broadcaster's live broadcasting reminding, for remind user main broadcaster of interest/start it is live.
In the present invention, the operation scenario of user is different, and login frame is also different, and user can be strengthened to difference by so setting The familiarity of operation scenario.
For the consideration of use habit, the screen of most of Intelligent mobile equipment (such as mobile phone or panel computer) is rectangular Shape, at conventional use situation (such as browse webpage, using chat software or listen song), at the display interface of Intelligent mobile equipment In portrait layout state, but when browsing video or playing game, the display interface of Intelligent mobile equipment is in transverse screen state.Due to There is difference in the engineer's scale of display interface pop-up or icon in portrait layout state and transverse screen state, therefore prior art usually needs Pop-up or the icon of two kinds of engineer's scales will be pre-set, bothered very much.
In one embodiment, the step S3 further comprises:
When triggering registration conditions and current display interface and being in portrait layout state, eject to should registration conditions login Frame.
In one embodiment, the step S3 further comprises:
When triggering registration conditions and current display interface is in transverse screen state, current display interface is adjusted to portrait layout shape State;And
Eject to should registration conditions login frame.
In one embodiment, the step S3 further comprises:
When triggering registration conditions, the figure layer in current display interface is confirmed.Figure layer, is like containing text generally The film of the element such as word or figure, is stacked together in order a sheet by a sheet, combines to form the final effect of the page.Figure layer can So that the element on the page to be accurately positioned.Text, picture, form, plug-in unit can be added in figure layer, can also be nested again inside Figure layer.
The new figure layer for showing login frame is created, by top layer of the new figure layer as current All Layers, when Figure layer for it is nontransparent when, the figure layer positioned at last layer will cover next layer of figure layer, that is to say, that the figure layer positioned at top layer will be by User observes directly.
Ejected in the new figure layer it is described to should registration conditions login frame.
It by being shown login frame as the superiors, can observably remind user to carry out register, improve aobvious Show efficiency.
In one embodiment, when screen is portrait layout ,-(void) showLoginWithType is directly invoked:(int) type completion:(void (^) (BOOL)) completion functions, are ejected in login frame, the function, type represents bullet Go out the type of input frame, different type values represent the type of different login frames, and completion is the readjustment of a function, The callback code block of a function is represented, completion is made up of the sentence of a plurality of execution, and completion is typedef void(^UserManagerLoginAlertBlock)(BOOL isSucceed,BOOL isCancel,NSString* message);Sentence.
Call back function is exactly a function called by function pointer.If you assign the pointer (address) of function as ginseng Number passes to another function, and when this pointer is used to call the function pointed by it, we just say that this is call back function. Call back function is directly invoked by the realization side of the function, but when specific event or condition occur by an other side Call, for being responded to the event or condition.
In one embodiment, type=0, represents the login frame ejected during normal operations, for example, send fish ball, hair barrage, Neck fish ball (fish ball is the integration that live platform rewards user) etc.;
Type=1, represents the login frame clicked on and ejected during concern room;
Type=2 represents the login frame for operating and being ejected before prompting of starting broadcasting.
In one embodiment ,-(void) showLoginWithType:(int)type completion:(void(^) (BOOL)) compiling procedure of completion functions is as follows
1) AppDelegate*dele=(AppDelegate*) [[UIApplication is used sharedApplication]delegate];Function command, obtains the agency of application program, and agency is a kind of right in iOS As for realizing some functions.
2) UIViewController*topViewController=is used dele.window.rootViewController;On function command, the window for obtaining agency rootViewController
3) using topViewController=[topViewController tvc_topViewController];Obtain The controller of top is obtained, tvc_topViewController functions are used to obtain tvc_topViewController controls Device.
In view of playing during frame, there is other bullet frames or floating layer, therefore traversal source is on window The uppermost controllers of rootViewController, then bullet layer is added on uppermost controller, if there is PresentViewcontroler, will play frame and loads on this presentViewcontroler controller, can so protect The level of bullet layer is demonstrate,proved topmost.
In one embodiment, tvc_topViewController functions include:
Current controller object UIViewController*topViewController=self is obtained using order;
Function while (topViewController.presentedViewController) while is checked for presentedViewController;
If presentedViewController controllers are present, this presentedViewController controls Device processed is exactly the controller of top.
4) to obtain and can create login frame to use this top controller as parameter after the controller of top layer, establishment is stepped on The function for recording frame is self.loginAlertView=[[DYLoginAlertView alloc] initWithVC: viewController completion:^ (BOOL isSuccess, BOOL isCancel), the compiling procedure of the function It is
4.1)-(instancetype)initWithVC:(UIViewController*)vc completion:(void (^) (BOOL isSuccess, BOOL isCancel)) completionBlock this be one include completionBlock Call back function, completionBlock is some things for needing to do after this function call is finished
4.2) using sentence self=[super initWithMaskBackground:YES];Call the self-defined of parent Building method
4.3) the various controls at interface, such as UIButton, UILable, UIView are added below
4.4) finally according to the self-defined building method of apple language the characteristics of needs to perform sentence return self
4.5) disappeared if logged on frame, use order selfWeak.loginAlertView=nil;Login frame is emptied, is made Login frame is set to nil
Step 4) have the advantages that:
A readjustment is defined using block, it is only necessary to which the incoming parameter in outside and a readjustment can just eject one Individual landing frame;
This function write is a customized building method, can call the self-defined building method of parent, this Sample can just inherit some initial methods performed by parent, without repeating to write a code again;
The bullet frame added according to top controller on the controller of this top, advantage of this is that any Interface only needs to invocation step 4) (instancetype) initWithVC:(UIViewController*)vc completion:(void (^) (BOOL isSuccess, BOOL isCancel)) completionBlock functions just can be with structure A bullet frame is made, construction is greatly facilitated and plays frame.
In one embodiment, the present invention also provides a kind of entering device of application program, including:
Registration conditions module, for the operation scenario based on user, sets registration conditions;
Login frame module is created, the login frame for creating each registration conditions of correspondence;And
Eject login frame module, for when trigger registration conditions when, eject to should registration conditions login frame.
In one embodiment, the registration conditions include:When user and main broadcaster interact or login application program During individual center, login frame is ejected.
In one embodiment, the ejection login frame module is additionally operable to, and when triggering registration conditions, is confirmed currently displaying Interface be in portrait layout state, eject to should registration conditions login frame.
In one embodiment, the ejection login frame module is additionally operable to, and when triggering registration conditions, confirms current layer Number and order;
The new figure layer for showing login frame is created, by top layer of the new figure layer as current layer;And
Ejected in the new figure layer it is described to should registration conditions login frame.
In one embodiment, the present invention discloses a kind of computer program product, and the computer program product includes depositing The computer program on non-transient computer readable storage medium storing program for executing is stored up, the computer program includes programmed instruction, when described When programmed instruction is computer-executed, computer is able to carry out the method that above-mentioned each method embodiment is provided, for example including:
S1, the operation scenario based on user, set certain amount registration conditions;
S2, the login frame for creating each registration conditions of correspondence;And
S3, when trigger registration conditions when, eject to should registration conditions login frame.
In one embodiment, the invention discloses a kind of non-transient computer readable storage medium storing program for executing, the non-transient meter Calculation machine readable storage medium storing program for executing stores computer instruction, and the computer instruction makes the computer perform above-mentioned each method embodiment The method provided, for example including:
S1, the operation scenario based on user, set certain amount registration conditions;
S2, the login frame for creating each registration conditions of correspondence;And
S3, when trigger registration conditions when, eject to should registration conditions login frame.
Finally, the present processes are only preferably embodiment, are not intended to limit the scope of the present invention.It is all Within the spirit and principles in the present invention, any modifications, equivalent substitutions and improvements made etc. should be included in the protection of the present invention Within the scope of.

Claims (10)

1. a kind of login method of application program, it is characterised in that including:
S1, the operation scenario based on user, set certain amount registration conditions;
S2, the login frame for creating each registration conditions of correspondence;And
S3, when trigger registration conditions when, eject to should registration conditions login frame.
2. the login method of application program as claimed in claim 1, it is characterised in that the application program is straight for playing Broadcast the Stream Media Application program of program.
3. the login method of application program as claimed in claim 2, it is characterised in that the registration conditions bag in the step S1 Include:When user and main broadcaster interact or login application program individual center when, eject login frame.
4. the login method of application program as claimed in claim 2, it is characterised in that the step S3 further comprises:
When triggering registration conditions and current display interface and being in portrait layout state, eject to should registration conditions login frame.
5. the login method of application program as claimed in claim 2, it is characterised in that the step S3 further comprises:
When triggering registration conditions and current display interface is in transverse screen state;
Current display interface is adjusted to portrait layout state;And
Eject to should registration conditions login frame.
6. the login method of application program as claimed in claim 2, it is characterised in that the step S3 further comprises:
When triggering registration conditions, the number and order of current layer are checked;
The new figure layer for showing login frame is created, the new figure layer is placed in the top layer of current layer;And
Ejected in the new figure layer it is described to should registration conditions login frame.
7. a kind of entering device of application program, it is characterised in that including:
Registration conditions module, for the operation scenario based on user, sets registration conditions;
Login frame module is created, the login frame for creating each registration conditions of correspondence;And
Eject login frame module, for when trigger registration conditions when, eject to should registration conditions login frame.
8. the entering device of application program as claimed in claim 7, it is characterised in that the registration conditions include:Work as user Interacted with main broadcaster or login application program individual center when, eject login frame.
9. the entering device of application program as claimed in claim 7, it is characterised in that the ejection login frame module is also used In, when triggering registration conditions and current display interface and being in portrait layout state, eject to should registration conditions login frame.
10. the entering device of application program as claimed in claim 7, it is characterised in that the ejection login frame module is also used In, when triggering registration conditions, the number and order of inspection current layer;
The new figure layer for showing login frame is created, the new figure layer is placed in the top layer of current layer;And
Ejected in the new figure layer it is described to should registration conditions login frame.
CN201710091102.2A 2017-02-20 2017-02-20 Login method and device for application program Active CN106959847B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710091102.2A CN106959847B (en) 2017-02-20 2017-02-20 Login method and device for application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710091102.2A CN106959847B (en) 2017-02-20 2017-02-20 Login method and device for application program

Publications (2)

Publication Number Publication Date
CN106959847A true CN106959847A (en) 2017-07-18
CN106959847B CN106959847B (en) 2021-04-27

Family

ID=59481667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710091102.2A Active CN106959847B (en) 2017-02-20 2017-02-20 Login method and device for application program

Country Status (1)

Country Link
CN (1) CN106959847B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019232674A1 (en) * 2018-06-04 2019-12-12 Weng Shaoming Community media live-streaming information advertisement method
WO2022127743A1 (en) * 2020-12-18 2022-06-23 华为技术有限公司 Content display method and terminal device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1842003A (en) * 2005-03-30 2006-10-04 广州市领华科技有限公司 Method for realizing instant communication with a plurality of linkmen in single conversational window
CN101188625A (en) * 2007-12-26 2008-05-28 腾讯科技(深圳)有限公司 A method and system for realizing information content subscription
CN101242377A (en) * 2008-03-18 2008-08-13 腾讯科技(深圳)有限公司 Method and user terminal for user prompt message
CN103176800A (en) * 2013-03-06 2013-06-26 北京百纳威尔科技有限公司 Application program login method and device
US20150181065A1 (en) * 2013-12-25 2015-06-25 Canon Kabushiki Kaisha Image forming apparatus, method for controlling image forming apparatus, and storage medium
CN104954383A (en) * 2015-06-24 2015-09-30 深圳市兰丁科技有限公司 Application program login method and system
CN105491458A (en) * 2015-11-27 2016-04-13 武汉斗鱼网络科技有限公司 Optimization method for speaking time of barrage in live website
CN105516778A (en) * 2014-09-24 2016-04-20 冠捷投资有限公司 Desktop user interface display method for intelligent television
CN105760045A (en) * 2016-01-29 2016-07-13 宇龙计算机通信科技(深圳)有限公司 Application program login method, application program login device and terminal
CN105872604A (en) * 2016-06-15 2016-08-17 武汉斗鱼网络科技有限公司 Live broadcast video stream pushing method based on different user states and live broadcast video stream pushing system based on different user states
US20160360409A1 (en) * 2013-12-16 2016-12-08 Avinash Vijai Singh System and process for controlling a portable device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1842003A (en) * 2005-03-30 2006-10-04 广州市领华科技有限公司 Method for realizing instant communication with a plurality of linkmen in single conversational window
CN101188625A (en) * 2007-12-26 2008-05-28 腾讯科技(深圳)有限公司 A method and system for realizing information content subscription
CN101242377A (en) * 2008-03-18 2008-08-13 腾讯科技(深圳)有限公司 Method and user terminal for user prompt message
CN103176800A (en) * 2013-03-06 2013-06-26 北京百纳威尔科技有限公司 Application program login method and device
US20160360409A1 (en) * 2013-12-16 2016-12-08 Avinash Vijai Singh System and process for controlling a portable device
US20150181065A1 (en) * 2013-12-25 2015-06-25 Canon Kabushiki Kaisha Image forming apparatus, method for controlling image forming apparatus, and storage medium
CN105516778A (en) * 2014-09-24 2016-04-20 冠捷投资有限公司 Desktop user interface display method for intelligent television
CN104954383A (en) * 2015-06-24 2015-09-30 深圳市兰丁科技有限公司 Application program login method and system
CN105491458A (en) * 2015-11-27 2016-04-13 武汉斗鱼网络科技有限公司 Optimization method for speaking time of barrage in live website
CN105760045A (en) * 2016-01-29 2016-07-13 宇龙计算机通信科技(深圳)有限公司 Application program login method, application program login device and terminal
CN105872604A (en) * 2016-06-15 2016-08-17 武汉斗鱼网络科技有限公司 Live broadcast video stream pushing method based on different user states and live broadcast video stream pushing system based on different user states

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
卩丬MY泠ER: ""手机直播软件的使用方法"", 《HTTPS://JINGYAN.BAIDU.COM/ARTICLE/FF42EFA92A85C9C19E2202B1.HTML》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019232674A1 (en) * 2018-06-04 2019-12-12 Weng Shaoming Community media live-streaming information advertisement method
WO2022127743A1 (en) * 2020-12-18 2022-06-23 华为技术有限公司 Content display method and terminal device

Also Published As

Publication number Publication date
CN106959847B (en) 2021-04-27

Similar Documents

Publication Publication Date Title
CN104540000B (en) The generation method and terminal of a kind of dynamic thumbnail
CN107050850A (en) The recording and back method of virtual scene, device and playback system
CN105812941A (en) Video playing method and device and electronic equipment
US10271105B2 (en) Method for playing video, client, and computer storage medium
CN107590006A (en) Document handling method, device and mobile terminal
CN106648535A (en) Live client voice input method and terminal device
CN105847932A (en) Pop-up information display method, device and system
CN103634199A (en) Notification message display method and notification message display device
US10014030B2 (en) Method, device and system for playing video
CN106713965A (en) Information display method and device
WO2020220773A1 (en) Method and apparatus for displaying picture preview information, electronic device and computer-readable storage medium
CN111601141A (en) Barrage display method and device, electronic equipment and readable storage medium
CN108574618A (en) Pushed information methods of exhibiting and device based on social networks chain
CN108170416A (en) A kind of method and system for building web front-end
CN106648666A (en) User interface generating method and user interface generating system
CN106792197A (en) The changing method and system of a kind of video playback area layout
CN107958058A (en) Learning behavior acquisition method, device and readable storage medium storing program for executing
CN107741902A (en) Program application detection method and program application detection means
CN106959847A (en) The login method and device of a kind of application program
CN106294827A (en) The caching method of multimedia resource and device
CN107783807A (en) A kind of method and device of screenshot capture
CN104978124A (en) Picture display method for terminal and terminal
CN115729416A (en) Information reply method, device, electronic equipment, readable storage medium and program product
CN109726335A (en) Waterfall stream page presentation, interest information providing method, device, equipment and medium
US20130060975A1 (en) Assistive Buffer Usage Techniques

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant